Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading DWord From Registry Pin
Richard MacCutchan10-Nov-09 5:24
mveRichard MacCutchan10-Nov-09 5:24 
GeneralRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 6:15
Michael Schubert10-Nov-09 6:15 
AnswerRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 6:19
Michael Schubert10-Nov-09 6:19 
QuestionError "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 18:25
Rahul Vaishnav9-Nov-09 18:25 
AnswerRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 18:34
professional Randor 9-Nov-09 18:34 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 18:54
Rahul Vaishnav9-Nov-09 18:54 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 19:03
professional Randor 9-Nov-09 19:03 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 20:00
Rahul Vaishnav9-Nov-09 20:00 
Hi Randor,
thanks for reply..

I have done code like below
but still i have same problem. Frown | :(
Please let me know am i coding in the right direction, because this thing is new for me..

WSADATA wsaData;
    int iResult; 
    DWORD dwRetval;
    int i = 1;    
    char *port = "80"; // I am using http protocol
    struct addrinfo *result = NULL;
    struct addrinfo *ptr = NULL;
    struct addrinfo hints;	 
    // Initialize Winsock
    iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);
    if (iResult != 0) {
        printf("WSAStartup failed: %d\n", iResult);
        return 1;
    }

    //--------------------------------
    // Setup the hints address info structure
    // which is passed to the getaddrinfo() function
    ZeroMemory( &hints, sizeof(hints) );
    hints.ai_family = AF_UNSPEC;
    hints.ai_socktype = SOCK_STREAM;
    hints.ai_protocol = IPPROTO_TCP;

//--------------------------------"
// Call getaddrinfo(). If the call succeeds,
// the result variable will hold a linked list
// of addrinfo structures containing response
// information
	

    dwRetval = getaddrinfo("xx.x.xxx.xxx", "80", &hints, &result);
    if ( dwRetval != 0 ) {
        printf("getaddrinfo failed with error: %d\n", dwRetval);
        WSACleanup();
        return 1;
    }

line 1: CoInitialize(NULL);    
line 2: xyzService::CxyzService test;
line 3: CComBSTR result1;
line 4: test.Methodname(CComBSTR(L"0001"),CComBSTR   (L"0001"),&result1);
line 5: CoUninitialize();

freeaddrinfo(result);
    WSACleanup();

GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 20:39
professional Randor 9-Nov-09 20:39 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Randor 9-Nov-09 21:11
professional Randor 9-Nov-09 21:11 
GeneralRe: Error "the procedure entry point Getaddrinfo could not be located in the dynamic link library WS2_32.dll" Pin
Rahul Vaishnav9-Nov-09 21:59
Rahul Vaishnav9-Nov-09 21:59 
QuestionHow to get x, y coordinates from autocad drawing? Pin
Paulraj G9-Nov-09 17:08
Paulraj G9-Nov-09 17:08 
AnswerRe: How to get x, y coordinates from autocad drawing? Pin
Game-point9-Nov-09 19:53
Game-point9-Nov-09 19:53 
GeneralRe: How to get x, y coordinates from autocad drawing? Pin
Paulraj G10-Nov-09 1:31
Paulraj G10-Nov-09 1:31 
QuestionAnnoying icon on the menu row Pin
T_N_T9-Nov-09 16:33
T_N_T9-Nov-09 16:33 
AnswerRe: Annoying icon on the menu row Pin
PJ Arends9-Nov-09 17:34
professionalPJ Arends9-Nov-09 17:34 
GeneralRe: Annoying icon on the menu row [modified] Pin
T_N_T9-Nov-09 18:35
T_N_T9-Nov-09 18:35 
QuestionComplete Transparency Background of a Shockwave Flash Control Pin
Rb Arguelles9-Nov-09 15:23
Rb Arguelles9-Nov-09 15:23 
QuestionMFC Window (Not Responding) Pin
lawrenca379-Nov-09 10:39
lawrenca379-Nov-09 10:39 
GeneralRe: MFC Window (Not Responding) Pin
David Crow9-Nov-09 10:58
David Crow9-Nov-09 10:58 
AnswerRe: MFC Window (Not Responding) Pin
Tim Craig9-Nov-09 15:26
Tim Craig9-Nov-09 15:26 
Question[Message Deleted] Pin
zweberhardt9-Nov-09 9:34
zweberhardt9-Nov-09 9:34 
AnswerRe: Count, frequency, probability Pin
LunaticFringe9-Nov-09 10:24
LunaticFringe9-Nov-09 10:24 
General[Message Deleted] Pin
zweberhardt9-Nov-09 11:59
zweberhardt9-Nov-09 11:59 
GeneralRe: Count, frequency, probability Pin
LunaticFringe9-Nov-09 12:41
LunaticFringe9-Nov-09 12:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.