printing to stdout

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

What I am trying to do is the opposite: make a DLL with HMG and call this DLL from another non-HMG program.

Meanwhile I have another question:

A testprogram, compiled in the minigui directory will run OK.
When I compile or move the compiled program to another directory it does not work.
How come?

example

Code: Select all

#include "minigui.ch"
//---------------------------------------------------------
Function Main()
external dbgoto
use klanten
dbgoto(9)
outstd(naam)
 dbcloseall() 
 wait
 Return
Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

t57042 wrote:What I am trying to do is the opposite: make a DLL with HMG and call this DLL from another non-HMG program.
Why Purebasic is essential ?

Even you haven't source, you can write from draft the application compiled by Purebasic, I hope. And this way may be easier.

For your another question:

What is meaning of does not work ?

- an error occured ( if so what error ? )
- abend
- infinite loop
- etc

And, does klanten table exist in another directory ?

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

I get 'workarea not in use' when doing dbgoto()
The table klanten exists in the same directory as the program.
Van this be a windows 7 issue?
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

And more important, are you sure that your code is a working sample; that is, it compiled and run without any problem ?

If so please let me know :

- "minigui" you are using ( official / extended )
- your C compiler ( BCC, MinGW, ...)
- version of Harbour and HMG you are using
- compile method you are using ( .bat process (compile.bat or build.bat) ), IDE ( HMG-IDE, HMGS-IDE, hbIDE) or MPM.
- the minigui directory you are talking about

What about that questions ?

Because I can't compile / build ( except one method ) and run your sample :(

Sorry, but unless your sample is a working sample, I can't help you.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: printing to stdout

Post by esgici »

t57042 wrote:I get 'workarea not in use' when doing dbgoto()
The table klanten exists in the same directory as the program.
Van this be a windows 7 issue?
Sorry, as I said previous post, since I can't compile and run the sample, I can't made any comment :(

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: printing to stdout

Post by t57042 »

solved, problems with my system
Thanks
Post Reply