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

Search:

Type: Posts; User: Alphadan

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    151

    Re: GeoIP lib Wrapper

    solved using this GeoIp.Lib
    http://anonsvn.wireshark.org/wireshark-win32-libs/tags/2012-12-11/packages/GeoIP-1.4.6-win32ws.zip
  2. Replies
    1
    Views
    151

    GeoIP lib Wrapper

    Hello is there a lib wrapper around to query IP precedences from GEOIP databases?


    I been looking in Google alot but seens hard to find at least what im looking for i found this one but i cant...
  3. Replies
    9
    Views
    394

    Re: Questions about New and Delete

    its official im using vectors, thx everyone!!
  4. Replies
    9
    Views
    394

    Re: Questions about New and Delete

    hmmm interesting ill consider using STL vectors, do they add much overhead? since im trying to work with time critical functions.

    Thx for ur time once again.
  5. Replies
    9
    Views
    394

    Questions about New and Delete

    Hi


    im afraid to create leaks while using heap, I have few questions,

    how does delete [] knows how many memory was allocated in th 1st place.

    Is it stored somewhere in the memory layout?
    ...
  6. Re: Displaying a bitmap from memory to a Dialog or CStatic

    thx gonna try it
  7. Re: Displaying a bitmap from memory to a Dialog or CStatic

    thx for ur answer

    May be i didnt explain myself properly what i dont understand is where do i get the CDC* from my CStatic to draw there.

    in few words i need to make this example work cause i...
  8. Displaying a bitmap from memory to a Dialog or CStatic

    Dear Experts.

    Im trying to Display BMP file, but that is stored in a buffer in memory I dont want to write it down to a file to re-open later im trying to find an elegant solution since I want to...
  9. Replies
    4
    Views
    482

    Re: PictureBoxes and VC6

    Thx its true it reconices SetBitmap as member just that isnt shown in the intelisence.
  10. Replies
    4
    Views
    482

    PictureBoxes and VC6

    when try to asign a member variable to it on the IDE it shows like CStatic Member variable

    i seen another examples in vc6 which shows this member on the picturebox when i create a CStatic the...
  11. Re: Problem with CopyFileEx and Showing Progress

    Problem Solved using this method

    http://www.edaboard.com/thread20874.html

    u gave me the key Skizmo Thx both of you.

    Reps added
  12. Re: Problem with CopyFileEx and Showing Progress

    Yea i was afraid that was the problem.

    how might i update that window from the thread without using UpDateData()


    Thx for the answer;
  13. Problem with CopyFileEx and Showing Progress

    CopyFileEx Doesnt return until it completes which made me think that i need to create a thread to allow posting the progress but when i use a thread

    the UpdateData(FALSE); crashes the app
    ...
  14. Replies
    10
    Views
    583

    Re: Witing without blocking the code

    Solved... the thing was that there were no messages to process so GetMessage Never Returned...


    so i deliverated sent a message with "PostThreadMessage" to that spesific thread to "Unlock" and...
  15. Replies
    10
    Views
    583

    Re: Witing without blocking the code

    well the callback is a function called externally by its address, i dont want the thread to exit cause if it exits it wont process callbacks.

    Sleep, WaitForSingleObject lock the thread and wont...
  16. Replies
    10
    Views
    583

    Re: Witing without blocking the code

    while(!WaitForSingleObject(hThread, 0) == WAIT_OBJECT_0){

    }

    this works perfectly it allows me to exit once the thread has ended but... it blocks the code and doesnt allow the...
  17. Replies
    10
    Views
    583

    Re: Witing without blocking the code

    this will exit immediately and i need the thread to stay alive once this exits the thread dies and wont be able to process the callbacks.

    getmessage does just that prefectly the only problem is...
  18. Replies
    10
    Views
    583

    Witing without blocking the code

    Hello

    I have a function that does a wait on a thread but allows call backs to get in without exiting the thread.


    so all i want is a way to avoid thread from exiting but still allowing the...
  19. Replies
    3
    Views
    531

    Re: inserting binary data in a STL List

    thx paul found the answer surfing in the net

    mylist.push_back(std::string(buff, bytesread));
  20. Replies
    3
    Views
    531

    inserting binary data in a STL List

    inserting binary data in a STL List

    is that a good practice?


    typedef list<string, allocator<string> > LISTSTR;

    LISTSTR BL;

    how do would i insert a element with explicit lenght since...
  21. Locking a thread when is not needed and resume it when is needed.

    hello i want to pause a thread when is not needed and resume it when i need it latter.

    I tried using SuspendThread and ResumeThread but it behaves bugy when try to suspend and resume quickly, i...
  22. Replies
    4
    Views
    1,704

    Re: Resume Thread/Suspend Thread

    Thx you both im gonna listen you and im gonna rewrite that part, i actually tought it was elegant to suspend the thread when was not in use and then resume it when needed hehehe such a shame it is a...
  23. Replies
    4
    Views
    1,704

    Resume Thread/Suspend Thread

    Im implementing the re entrance on my application i start threads to process some data then when the job finishes the thread gets on hold for 15 seconds if there is another job avaliable it will...
  24. socket disconects WSAGetLastError()=10054

    hi

    i am developing a program wichs holds multi connections.


    on connections with very slow speed and high packet loss + high latency the sockets may randomly disconect some sockets may stay...
  25. Replies
    6
    Views
    1,206

    Re: socket function returning = 10038

    this line causes the 10038 error on WSAGetLastError(); "But only when the class instance is being reused" thats why i mean when I close socket+thread.



    SOCKET sock = socket(nFamily, nType, 0);
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width