creating dll question

Questions about MultiCharts and user contributed studies.
rst
Posts: 8
Joined: 19 Aug 2011
Has thanked: 2 times

creating dll question

Postby rst » 17 Mar 2012

Is it possible to link with PLkit.dll with mingw gcc?

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Re: creating dll question

Postby Dave Masalov » 19 Mar 2012

rst wrote:Is it possible to link with PLkit.dll with mingw gcc?


Hello rst,

Could you be more precise? What exactly are you trying to achieve?

rst
Posts: 8
Joined: 19 Aug 2011
Has thanked: 2 times

Re: creating dll question

Postby rst » 19 Mar 2012

Hi I follow the example in extension SDK for implementing an external function inside a dll.
For my reasons I want to compile with free windows compiler mingw-gcc that can creates essentially a dll with -shared flag.

The following line for mingw gcc seems to have a different behavior than Visual Studio env,
#import "c:\Program Files\TS\Program\PLkit.dll" no_namespace

It seems that in order to build a custom dll with gcc under Windows I would require a header file which I don't find inside MC installation and then link with PLkit.dll

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 485 times

Re: creating dll question

Postby Dave Masalov » 19 Mar 2012

rst wrote:Hi I follow the example in extension SDK for implementing an external function inside a dll.
For my reasons I want to compile with free windows compiler mingw-gcc that can creates essentially a dll with -shared flag.

The following line for mingw gcc seems to have a different behavior than Visual Studio env,
#import "c:\Program Files\TS\Program\PLkit.dll" no_namespace

It seems that in order to build a custom dll with gcc under Windows I would require a header file which I don't find inside MC installation and then link with PLkit.dll


rst,

Please find attached the file that you were looking for.
Attachments
MC_x32_plkit.h
(23.34 KiB) Downloaded 103 times
These users thanked the author Dave Masalov for the post:
Fu510n

rst
Posts: 8
Joined: 19 Aug 2011
Has thanked: 2 times

Re: creating dll question

Postby rst » 19 Mar 2012

Thanks a lot! Would you consider putting this .h file in future relases?

Fu510n
Posts: 14
Joined: 05 May 2011
Has thanked: 18 times
Been thanked: 4 times

Re: creating dll question

Postby Fu510n » 27 Mar 2012

Dave Masalov wrote:
rst wrote:Hi I follow the example in extension SDK for implementing an external function inside a dll.
For my reasons I want to compile with free windows compiler mingw-gcc that can creates essentially a dll with -shared flag.

The following line for mingw gcc seems to have a different behavior than Visual Studio env,
#import "c:\Program Files\TS\Program\PLkit.dll" no_namespace

It seems that in order to build a custom dll with gcc under Windows I would require a header file which I don't find inside MC installation and then link with PLkit.dll


rst,

Please find attached the file that you were looking for.


Is this the version of the .h/include we should use for x64 DLLs as well or is there a different one for that environment?

Thanks in advance,
-Guy


Return to “MultiCharts”