The first thing I did was create a .LIB file by typing "lib
/DEF:bwcc32.dll" at the DOS prompt. That's where my problems began.
Although a .lib file was created, the lib program gave me the error:
"MZPstatement not supported for target platform." Anyway, back in VC++, I
went to Build|Settings|Link and made sure that bwcc32.lib file that I just
created was being linked to my project. Next, I tried to compile the .cpp
file that made use of bwcc, and I got 12 warnings and 0 errors. Each of the
12 warnings said: "warning C4236: nonstandard extension used : '_export' is
an obsolete keyword, see documentation for __declspec(dllexport)" Because
the .cpp file compiled with no errors (but 12 warnings), I figured that I'd
try linking my program. This didn't work. The VC++ linker said: "unresolved
external symbol _BWCCRegister@4." BWCCRegister() is the name of a function
that I am calling in my program. The code for BWCCRegister() lives
somewhere in BWCC32.DLL. I'm not sure why the linker is coming up with
"_BWCCRegister@4" as the name of the unresolved function.
I've tried to explore the InfoView help and it appears that my problem has
something to do with an inappropriate "calling convention". I'm not sure
what this term means, though :(.
Here are some excerpts from BWCC.H:
#if defined( __cplusplus )
extern "C" {
#if !defined(__FLAT__) && !defined(WIN32)
#define BWCCAPI FAR EXPORT PASCAL
#else
#define BWCCAPI APIENTRY EXPORT
#endif
...
//Here is the definition of the function that I am trying to call.
extern BOOL BWCCAPI BWCCRegister(HINSTANCE hInsta);
...
}
I would appreciate any idea/suggestions that you might have! Thanks!
David Sworder
...Craig...
> Craig Fischer <cra...@visio.com> wrote in article
<32F60D...@visio.com>...
Greg Mullins <mull...@juno.com> wrote in article
<01bc12f7.956b71c0$ea13ae84@mullins>...
If VC++ would give users the freedom to manipulate files, link options,
etc., like BC++ does, then I'd be a very happy camper!
...Craig...
Actually, I'm very pleased with Borland's product...but from what everyone
is telling me, Microsoft's product is quickly becoming the standard and I
don't want to get left behind, ya know? I hope I'm making the right
decision, but only time will tell..
David Sworder