Saturday, January 18, 2003, 12:13:29 AM, you wrote:

> OK-

> I've got the test sample converted to Borland C++ Builder, I can build
> it and attempt to install it. When I do, I first get a call to
> DLL_PROCESS_ATTACH followed by an immediate call to
> DLL_PROCESS_DETACH. Then I end up with the dreaded "Couldn't
> initialize" message.

To me, it appears as though TB is not finding the functions at all.
Even if you aren't using stdcall, it should still find the functions.
TBP_GetStatus is called first, so in that case it wouldn't matter what
calling convention you used since there are no params.


> My guess is that the DLL header conventions are different in C++ and
> Pascal and when TB is trying to initialize the plugin it can't find
> the TBP_Initialize() function. Here's what's in my DLL header:

Where is TBP_Initialize defined in the plugin API?  I am not using
such a function.  In mingw there is an option
(--no-export-all-symbols) to prevent exporting all functions.  It
appears that you are exporting more than you should be.  Are you
defining these functions as normal methods or are they members of a
class?  Where is the "short" coming from?

That's all I can think of off of my head.

Rob


________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to