creating dll question
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: creating dll question
Hello rst,Is it possible to link with PLkit.dll with mingw gcc?
Could you be more precise? What exactly are you trying to achieve?
Re: creating dll question
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
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
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: creating dll question
rst,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
Please find attached the file that you were looking for.
- Attachments
-
- MC_x32_plkit.h
- (23.34 KiB) Downloaded 577 times
Re: creating dll question
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?rst,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
Please find attached the file that you were looking for.
Thanks in advance,
-Guy
Re: creating dll question
Dear MC Support Team,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?rst,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
Please find attached the file that you were looking for.
Thanks in advance,
-Guy
This is a very old thread. Is the MC_x32_plkit.h header file provided still the latest version and be compatible with 64-bit DLL? Please provide a new one if any.
Since I use gcc/g++ compiler rather than vc++, I would like to know if any adjustments should be made to the header file to make my DLL work with PLKit.dll properly. Please advise.
Thanks,
McGeorge
- Tammy MultiCharts
- Posts: 200
- Joined: 06 Aug 2020
- Has thanked: 6 times
- Been thanked: 65 times
Re: creating dll question
Hello McGeorge,
Please download this archive that contains MC_x32_plkit.h and MC_x64_plkit.h.
UPD: TLH and TLI files were added.
Please download this archive that contains MC_x32_plkit.h and MC_x64_plkit.h.
UPD: TLH and TLI files were added.
Re: creating dll question
Hi Tammy,
The header file provided only contains declaration codes. Per the SDK, there should be two type library header files with .tlh and .tli file name extension. The former should contain declaration codes and the latter should contain implementation codes. These two files combined form the final header file that can be used by the client DLL. Could you please provide a version of header file that contains both parts?
Thanks,
McGeorge
The header file provided only contains declaration codes. Per the SDK, there should be two type library header files with .tlh and .tli file name extension. The former should contain declaration codes and the latter should contain implementation codes. These two files combined form the final header file that can be used by the client DLL. Could you please provide a version of header file that contains both parts?
Thanks,
McGeorge
- Tammy MultiCharts
- Posts: 200
- Joined: 06 Aug 2020
- Has thanked: 6 times
- Been thanked: 65 times