Page 1 of 1

Compiling to HMG applications to DLL for use in C/C++

Posted: Sat Aug 28, 2010 12:59 am
by FrankE
Ed: now reposted here: viewtopic.php?f=5&t=1664


Hi

I'd like to know if it is possible to have HMG applications compile to DLL.

I'm not great C/C++ programmer, but have a need to accomplish this as an adjunct for developing 3rd party plugins for software that currently requires C/C++ for developing plugins.

From my limited understanding, compiling something to DLL means that it can't have a main() function ... is this correct?

I suspect this can't be done from within HMG ... can anyone give me some practical advice regarding how this may be achieved, perhaps with a HMG app DLL equivalent "Hello World" example?

Cheers and thanks in advance!
Frank E.

Re: Compiling to HMG applications to DLL for use in C/C++

Posted: Sat Aug 28, 2010 1:17 am
by apais
Your question must be directed Harbour compiler team.
All I can say you, since I've not used it yet is that harbour apps, can be COM client and/or server apps.

HTH
Angel

Re: Compiling to HMG applications to DLL for use in C/C++

Posted: Sat Aug 28, 2010 1:23 am
by FrankE
Apologies to forum, as you say I shouldn't have posted this question here ... I had just posted another question and forgot to change :-(

Ed: now reposted here: viewtopic.php?f=5&t=1664

Regards,
Frank E.

Re: Compiling to HMG applications to DLL for use in C/C++

Posted: Sat Aug 28, 2010 1:28 am
by apais
No problem at all.
Your question is still valid.
All I'm saying is that I hardly believe anyone can answer that one here.

Regards
Angel

Re: Compiling to HMG applications to DLL for use in C/C++

Posted: Sat Aug 28, 2010 1:31 am
by FrankE
Yes, thank you!

Now reposted here for further discussion:
viewtopic.php?f=5&t=1664

Cheers,
Frank E.