DLL with windows Me

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
 
J

John Harrison

JB said:
Hello C++ Gurus:
I'm doing a dll with a very simple function, with this prototype [snip]
I guess that problem are the compiling or llinking options, any help
will be useful.

This is a group for the C++ language, not linking or DLL's or any issues
specific to one compiler or operating system. IOW you are off topic here.
Please ask this question again on a Borland group or a Windows group as you
think best. Borland groups can be fond on the Borland news server, check
their website for the details, there are loads of Windows groups for
instance Please take the trouble
to find out of that group whether your question is on topic or not before
posting.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,167
Messages
2,570,913
Members
47,455
Latest member
Delilah Code

Latest Threads

Top