CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: practisevoodoo

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Re: FD_CLOSE problem with asynchronous sockets

    Thanks you were right, the problem was with client and not with the server.
  2. Replies
    5
    Views
    835

    Re: A question about 2d pictures.

    try http://cimg.sourceforge.net/, it is possible to get it to support all the main formats, it supports bmp and a few others staight off and it can do a fair about of image processing features itself
  3. Re: FD_CLOSE problem with asynchronous sockets

    I have broken execution several times, every time it has been in this part of the code



    index = WSAWaitForMultipleEvents( clientsConnected +1, EventArray, FALSE, 1000, FALSE );

    // check...
  4. Re: FD_CLOSE problem with asynchronous sockets

    Ok, what I have done it rip out everything except the code needed for FD_ACCEPT, FD_CLOSE and FD_READ. This code still displays the same FD_CLOSE problem as before. I am using a telnet putty session...
  5. Re: FD_CLOSE problem with asynchronous sockets

    I had tried it but since it hadn't fixed the problem and it was possible for if statements to cause certain other problems I changed it back



    struct networkHandle
    {
    bool available;
    char...
  6. Re: FD_CLOSE problem with asynchronous sockets

    The exact same problem exists even with if statements.
  7. Re: FD_CLOSE problem with asynchronous sockets

    Ok, I have made the network code changes (most of them anyway, needs proper error handling) but the same problem still exists. The server outputs the message "Wait for event" so I now that it is not...
  8. Re: FD_CLOSE problem with asynchronous sockets

    I have tried that code but it still isnt returning a close event until the second connected client has returned one as for the polling I might bother changing it but at the moment it isnt causing a...
  9. Re: FD_CLOSE problem with asynchronous sockets

    I do not think that this is the problem, if I put printf statements before and after the WSAEnumNetworkEvents() then I can see that it is not hanging in there. I am also able to send and receive data...
  10. FD_CLOSE problem with asynchronous sockets

    I have some code that I am working where I am using asynchronous sockets for the first time. I have encounted a problem with the FD_CLOSE events in my code. When I have more than one client (putty in...
  11. Replies
    4
    Views
    1,275

    Re: Catching Ctrl-C in debug mode

    Yes it is a console application

    This is the code from the msdn site that I tried using when I couldn't get mine working.



    #include <windows.h>
    #include <stdio.h>

    BOOL CtrlHandler(...
  12. Replies
    4
    Views
    1,275

    Catching Ctrl-C in debug mode

    I am trying to get catch ctrl-c (and other) events in my code to ensure that I close my code correctly cleaning everything up etc. However if I control C while in debug mode it skips the ctrl-c...
  13. Replies
    2
    Views
    1,148

    Re: g++ defines

    _POSIX_VERSION worked thanks but apparently 'linux' (all lowercase) also works
  14. Replies
    2
    Views
    1,148

    g++ defines

    Is there someway to see exactly what g++ has defined before it starts trying to do precompilation. Specifically I am trying to add some code which should only be included on linux and not on aix or...
  15. Replies
    5
    Views
    2,544

    Re: char* to unsigned long long

    I wanted to convert the actual data but that boost suggestion has worked thanks.
  16. Replies
    5
    Views
    2,544

    char* to unsigned long long

    I need to convert a char* to an unsigned long long. How can I pull this off?
    Thanks in advance.
  17. Re: LoadLibary() with unicode character set

    OK thanks, I think I understand now. I was trying to load a file called "QADATEB.DLL" not "Q A D A T E B . D L L" but using the CString trick to convert it into the correct format it now works
  18. Re: LoadLibary() with unicode character set

    The exact same code which works when compiled using mutli-byte characters fails to load the dll when using unicode characters.
  19. LoadLibary() with unicode character set

    Is it possible to use LoadLibrary() in a vc++ program when you have it set to use to use the unicode character set? No matter what I try I can not get LoadLibrary() to work.
  20. Replies
    9
    Views
    3,074

    Re: Linker error, link against dll?

    Thanks for the help everyone, just in case anyone else comes along looking for the answer to the same problem check out this link....
    http://msdn2.microsoft.com/en-us/library/ms686944.aspx
  21. Replies
    9
    Views
    3,074

    Re: Linker error, link against dll?

    The trouble is that that is still giving the same errors

    1>test.obj : error LNK2019: unresolved external symbol __imp__QADP_Shutdown@0 referenced in function _main
    1>test.obj : error LNK2019:...
  22. Replies
    9
    Views
    3,074

    Re: Linker error, link against dll?

    Do you mean like this?



    HINSTANCE instLib;
    instLib = LoadLibary( TEXT("QATUIEM.DLL") );
  23. Replies
    9
    Views
    3,074

    Linker error, link against dll?

    I'm trying to use this new api and it only comes with a .h and a .dll file. Everytime that I try to compile the project it gives me a linker error. Normally I would think that this was caused by my...
  24. Replies
    0
    Views
    520

    Calling c++ code from VB

    I am working on a project at the moment and either I can port this VB code to C++ or I can get the existing VB code to call the C++ classes required. I am just wondering if this is possible and if so...
  25. Replies
    2
    Views
    740

    Re: cvs versions

    sorry, i wasnt thinking, i can just do a #define VERSION "$Revision: 1.4 $"
Results 1 to 25 of 74
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured