Why would you use the Delphi project inside C++? Just use the C++ header.
Hi,
I want to use LimeLm with my product.
I 've already signed and download Turbo Activate.
I've found The Delphi example.
I've tried to build a project with Borland C++ Builder6.
I've created a new project and add the pascal files from your example to my project. It compiles but doesn't link.
which files I've to include to my project in order to link this project.
Thanks
Sabetay
Why would you use the Delphi project inside C++? Just use the C++ header.
"Why would you use the Delphi project inside C++?"
Because it is easy to use a 3 party software written with pascal.
" Just use the C++ header."
I've tried to build a project with the C file that you've provided in \API\C
I've added the example.c file to my project.
I've uncommented the following #define in .h file.// To use the static version of TurboActivate then uncomment the next line#define TURBOACTIVATE_STATIC
tried to compile.
I'm getting following error.
TurboActivate.h Unrecognized __declspec modifier
Have you any idea on how to resolve this issue ?
Thanks
Sabetay
I've uncommented the following #define in .h file.// To use the static version of TurboActivate then uncomment the next line#define TURBOACTIVATE_STATIC
Don't do that. You can't use the static library version of TurboActivate in Borland C++.
I'm getting following error.
TurboActivate.h Unrecognized __declspec modifier
If you still get the error after recommenting that line I told you, then please copy & paste the full error you get. Also, make sure you're compiling your app with the TurboActivate.lib. See: How to import external dll library to Borland C++ 6?.
"Don't do that. You can't use the static library version of TurboActivate in Borland C++."
I do as you suggested. I've commented the line.
"Also, make sure you're compiling your app with the TurboActivate.lib."
When I add TurboActivate.lib to my project the compiler complains wrong OMF format.
As far as I know I've to import a type library in order to use with C++ Builder.
Here is the full error I'get.
Thanks
Sabetay
[C++ Warning] Example.c(57): W8075 Suspicious pointer conversion [C++ Warning] Example.c(112): W8075 Suspicious pointer conversion [C++ Warning] Example.c(130): W8075 Suspicious pointer conversion [C++ Warning] Example.c(136): W8065 Call to function 'Activate' with no prototype [Linker Error] 'C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\MY DOCUMENTS\LIMELM\API\C\X86\TURBOACTIVATE.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
Oh, I see C++ builder is being difficult. Here's the solution: Linker error contains invalid OMF record.