Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 04:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# GetProcAddress WS2_32.dll connect

Discussion on C# GetProcAddress WS2_32.dll connect within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
vitalka's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 160
Received Thanks: 23
C# GetProcAddress WS2_32.dll connect

Hello Guys,
I have a problem, if i create my projekt with that:

uint WS2Connect = GetProcAddress(GetModuleHandle("WS2_32.dll"), "connect");

The address is 0x00000000, but if i start debugmodus in the C# Compiler im getting the right address.


With this:

uint GTC = GetProcAddress(GetModuleHandle("kernel32.dll"), "GetTickCount");

I get in both situations the right one.

Where is the problem?
vitalka is offline  
Old 09/17/2011, 00:00   #2
 
bootdisk's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 134
Received Thanks: 41
Could you give more details? if GetProcAddress fails (0/NULL) you can check the error detail with GetLastError.
Most likely ws2_32.dll is not loaded.
bootdisk is offline  
Old 09/17/2011, 10:11   #3
 
vitalka's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 160
Received Thanks: 23
i already found a solution with the API command "LoadLibrary"
vitalka is offline  
Old 09/17/2011, 10:13   #4
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
You need to load the Library before you use GetProcAddress. obviously (Just sayin')
Schickl is offline  
Reply


Similar Threads Similar Threads
Connect DB connect connection refused HILFE!
02/27/2011 - Metin2 Private Server - 4 Replies
Ich habe mir einen server mit 2 Channels erstellt und beim starten kommt immer dieser fehler -.- in navicat hab ich versucht alle tabellen zu reparieren, aber bei information_shema kommt acces diened Bild: http://img825.imageshack.us/i/picturers.jpg/ Server startet und kann mich auch einloggen
proplem (connect: connect refused)
02/20/2010 - Metin2 Private Server - 5 Replies
hi ich habe ein porplem wenn ich mein server starte steht als erstes 8 felher meldungen udn dan ungefähr 11 mal connect: connect refused dan dauert es aufeinmal voll lange bis ich mich einlogge
[C++]ws2_32.dll compilation help
06/10/2009 - C/C++ - 3 Replies
im trying to compile a .DLL for hacking an online game. currently making something like a pocket sender.. anyways, someone told me to use this code.. i've tried to edit it a little. and tried to compile it.. but got errors.. i hope you can help me fix it.. thanks.. #include <Winsock2.h>



All times are GMT +1. The time now is 04:34.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.