J
JB
Hello C++ Gurus:
I'm doing a dll with a very simple function, with this prototype
int suma(int, int). Adds two integers and return an integer.
I'm using the bcc32 compiler, I did get a success compile with the
following command line "BCC32 -tWCR myejedll.cpp", after that
I linked into a DLL with following command line "ilink32 /tPD
myejedll.obj" there I have my dll. Till this point everything on wheel,
when I try to invoke the function I did get two error messages:
1) "Can't load at the desired address, and is not relocatable."
2) "Windows cannot run this program because is in invalid format".
I have settled in the bcc32.cfg the following parameters:
-DWINVER=0x0400
-D_WIN32_WINDOWS=0x0490
My notebook has Windows millenium.
I guess that problem are the compiling or llinking options, any help
will be useful.
TIA
I'm doing a dll with a very simple function, with this prototype
int suma(int, int). Adds two integers and return an integer.
I'm using the bcc32 compiler, I did get a success compile with the
following command line "BCC32 -tWCR myejedll.cpp", after that
I linked into a DLL with following command line "ilink32 /tPD
myejedll.obj" there I have my dll. Till this point everything on wheel,
when I try to invoke the function I did get two error messages:
1) "Can't load at the desired address, and is not relocatable."
2) "Windows cannot run this program because is in invalid format".
I have settled in the bcc32.cfg the following parameters:
-DWINVER=0x0400
-D_WIN32_WINDOWS=0x0490
My notebook has Windows millenium.
I guess that problem are the compiling or llinking options, any help
will be useful.
TIA