Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to convert any format to pdf using C(or)C++ Pin
Franck Paquier10-Nov-09 4:50
Franck Paquier10-Nov-09 4:50 
QuestionMFC-How to fill a polygon with bitmap Pin
chadic9-Nov-09 22:53
chadic9-Nov-09 22:53 
Questionplease guide for me convert image tiff to image bmp ??? (VC++6.0) Pin
aa_zz9-Nov-09 22:21
aa_zz9-Nov-09 22:21 
AnswerRe: please guide for me convert image tiff to image bmp ??? (VC++6.0) Pin
CPallini9-Nov-09 22:45
mveCPallini9-Nov-09 22:45 
Questiondynamic_cast fails Pin
Maxwell Chen9-Nov-09 22:13
Maxwell Chen9-Nov-09 22:13 
AnswerRe: dynamic_cast fails Pin
Randor 9-Nov-09 22:38
professional Randor 9-Nov-09 22:38 
GeneralRe: dynamic_cast fails Pin
Maxwell Chen9-Nov-09 22:40
Maxwell Chen9-Nov-09 22:40 
QuestionReading DWord From Registry Pin
Anil Kumar.Arvapalli9-Nov-09 20:14
Anil Kumar.Arvapalli9-Nov-09 20:14 
AnswerRe: Reading DWord From Registry Pin
Richard MacCutchan9-Nov-09 21:04
mveRichard MacCutchan9-Nov-09 21:04 
AnswerRe: Reading DWord From Registry Pin
Michael Schubert10-Nov-09 1:02
Michael Schubert10-Nov-09 1:02 
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 

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.