Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi WSOCK32.dll name austauchen (https://www.delphipraxis.net/123472-wsock32-dll-name-austauchen.html)

TheRealPaulie 2. Nov 2008 22:52


WSOCK32.dll name austauchen
 
Hallo,

(I will write this in English, but you can answer in German. I hope you won't mind. I understand German but I'm not able to write in it.)

I have an application that is linking two DLL (DLL #1 and DLL #2). Both DLLs are performing a SOCKET communication. The problem is that one DLL #1 requires a version of WSOCK32 and the other DLL #2 required another version of WSOCK32.

Another problem is that I have access only to the code of DLL #2.

That is why I was thinking to use both versions of WSOCK32 but to change the name of the version that is used by DLL #2. E.g. WSOCK32_v2. But I'm not able to do it. In Delphi, in unit WINSOCK.pas there is a a constant:

const
winsocket = 'wsock32.dll';

I changed it in:

const
winsocket = 'wsock32_v2.dll';

But there is no difference. The application is still linking the initial wsock32.dll. I think that there are some precompiled libraries. Do you have any idea how can I solve this problem?

Sorry again for this post written in English and I hope that I was clear enough with my explanation.

Thank you,
Paulie

Bernhard Geyer 3. Nov 2008 06:27

Re: WSOCK32.dll name austauchen
 
Zitat:

Zitat von TheRealPaulie
But I'm not able to do it. In Delphi, in unit WINSOCK.pas there is a a constant:

const
winsocket = 'wsock32.dll';

I changed it in:

const
winsocket = 'wsock32_v2.dll';

Delphi will ignore this new Pas-File and uses the "old" DCU-File. Try to copy WinSock.pas to your Sourcecode-directory and diable Runtime packages and see what happens.


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:37 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz