Re[3]: TBPtest.dpr

2003-01-17 Thread Alex Sanyukovitch
Hello Mark,

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

MW> Addr:004012A0 Ord:   1 (0001h) Name: TBP_Initialize((short,void))
MW> Addr:004012B8 Ord:   2 (0002h) Name: TBP_Finalize((short,void))

What this notation "((short,void))" is supposed to mean anyway?
TBP_Initialize/TBP_Finalize should be declared as
void TBP_Initialize(void);
void TBP_Finalize(void);
Is it what you have?

MW> To me, the names look right - no leading underscore, etc. Can (A)
MW> someone confirm that this is correct
Worked for me without any underscores.

MW> (C) come up with any other ideas?
Wrong function declaration?

-- 
Best regards,
Alex Sanyukovitch
1:14:52 AM Saturday, January 18, 2003



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



Re[3]: TBPtest.dpr

2003-01-17 Thread Robert Rainwater

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