Re: Re[2]: using DLL built with VC6

"Timur Safin" <[email protected]> Tue, 23 Aug 2005 23:40:32 +0400
Newsgroups gmane.comp.lang.delphi.jedi
Message-ID <[email protected]>
If I would you I wouldn't hurried up that much implementing that in Delphi. 
This ?WRAPIDisassociate@@YAJXZ name is not that bad (and you could easily use 
it in the Delphi if you would put this name literally into the external part 
of function declaration). Fortunately this C++ name is plain C style function 
name, just with decorated argument list and return type. There is no any 
trouble as with C++ class-methods and their incompatible THISCALL convention 
(where this is passed via ECX).

Before returning to the code please use another tool for your help - 
undname.exe from Visual Studio.

C:\Visual Studio\Common\Tools>undname -f ?WRAPIDisassociate@@YAJXZ
Microsoft(R) Windows NT(R) Operating System
UNDNAME Version 5.00.1768.1Copyright (C) Microsoft Corp. 1981-1998

>> ?WRAPIDisassociate@@YAJXZ == long __cdecl WRAPIDisassociate(void)

Regards,
Timur

----- Original Message ----- 
From: "soya protein" <[email protected]>
To: "Timur Safin" <[email protected]>
Sent: Tuesday, August 23, 2005 8:19 PM
Subject: Re[2]: [Delphi-JEDI] using DLL built with VC6


> Hello Timur,
>
> Tuesday, August 23, 2005, 2:17:11 PM, you wrote:
>
>> For the beginning I'd look into the real names exported. What do you see 
>> after
>> this command?
>
>> tdump -ee wrapi.dll | findstr isas
>
> Here :
>
> EXPORT ord:0001='?WRAPIDisassociate@@YAJXZ'
>
> Thanks for the help. It's a name mangling that killed it ...
>
>  In the meantime, i "blew a fuse" (Cpp really is nice language, but
> i don't wan't mess with it too much), so i ported the whole thing into
> delphi.
>
> It is designed as single object with methods and properties. It still
> needs some work, namely wrapping critical sections in try/finally blocks
> and additional checking of translation of types from cpp into delphi pascal.
> And there will certainly be some design and functional changes.
>
> After everything is done, i'll build a test application to see if all coding
> is OK.
>
> -- 
> regards,
> soya
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h5rg9el/M=362329.6886308.7839368.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1124833254/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Delphi-JEDI/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/