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

Search:

Type: Posts; User: RipRage

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    2,175

    Re: TreeView.Nodes.Clear() Help!

    That answered everything!



    You see that's where I was confused, I myself have not created any worker threads, its only now by calling those methods that I realize that...
  2. Replies
    6
    Views
    2,175

    Re: TreeView.Nodes.Clear() Help!

    That did it thank you! Now instead of just accepting your fix, would you mind helping me understand what is going on here (fairly new to .net), As far as I'm aware Invoke() simply sends a Window...
  3. Replies
    6
    Views
    2,175

    Re: TreeView.Nodes.Clear() Help!

    Hi Arjay!

    Yes you are absolotly right! How can I go about this? I want to be able to Clear()/Refresh() the TreeView() after an network change has happened... Im guessing this is the culprit:


    ...
  4. Replies
    6
    Views
    2,175

    TreeView.Nodes.Clear() Help!

    Hi Gurus!

    I have been scratching my head for awhile now and cannot figure out what is causing TreeView.Nodes.Clear() to completely close my application! I am simple showing information about...
  5. How can a 'C' dll write to a VB.Net array ?

    Hi VB Experts

    I am writing a 'C' dll that needs to fill in a VB.Net array with data. (an array which is compatible with a 'C' char type) What is the best way to achieve this?

    i know C well,...
  6. Replies
    8
    Views
    2,636

    Re: Write 'C' char array[] to VB array() As Char

    Thanks you, will do
  7. Replies
    8
    Views
    2,636

    Re: Write 'C' char array[] to VB array() As Char

    Ah yes i do apologize it is VB.Net and also apologize for posting this in the wrong forum. I am a C programmer who is writing a dll for a friend to be used in a 'VB.Net' application. My knowledge on...
  8. Replies
    8
    Views
    2,636

    Re: Write 'C' char array[] to VB array() As Char

    Hi Wof

    Thank you for your reply, sadly it didn't work, recv() failed with invalid pointer address.

    I think i will have to replace


    LPSTR *lpBuf
  9. Replies
    8
    Views
    2,636

    Write 'C' char array[] to VB array() As Char

    Hi VB Experts

    Is it possible for a 'C' function to use a pointer to a char array to write to a VB array As Char?

    I have tried this but the C function only fills the first element in the VB...
  10. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Ah my fault!, forgot to add "Use MFC in a shared DLL" in the project settings. All fixed now!
  11. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Hi Paul,

    Not to worry, i am getting my bearings with MFC now and just trying to experiment with its classes via command shell instead of GUI.

    I have ran into a problem and cannot seem to...
  12. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Hi Paul,

    Thank you for your post. If its not to much trouble could you show me a working example ? the reason why i ask is because i am making a function fail deliberately like WSACleanup() in...
  13. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Ok, Thanks Lindley, you have taught me a lot!

    One last question in regards to constructors and destructors, its it good practice to include initialization functions such as WSAStartup() or under...
  14. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    That is good! at least i can start to apply C++ to the things i already know. i have been making wrappers for some of the Windows API functions and using them in classes to try and get the hang of...
  15. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Hi Lindley,

    Would it be possible for you to please confirm / correct me on this small code snippet below? I just want to be reassured i have taken in what you have stated in the comments above and...
  16. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Thank you for your helpful comments Lindley, very much appreciated!

    I will certainly have a play with this, it may seem silly to use C++ with the Windows API, but because i know the API quite well...
  17. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Hi Lindley



    Thank you! this was the answer i was hoping for.

    One last thing, the methods you mention above work for input parameters to a function, but what can you use for output ? i.e a...
  18. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Hi Experts;

    I also forgot to mention, what is the best way to use the C++ STL with the windows API. Since the API is built using C, i would like to know if it possible to pass std::wstring and...
  19. [RESOLVED] How to use wchar_t[] array with std::wstring

    Hi Experts;

    I am trying to learn C++ and make use of its standard library instead of using the standard C library which i know all to well.

    Can anyone tell me the best way of working with...
  20. Replies
    32
    Views
    8,854

    Re: Learn C++ from C

    Thank you for your replies experts.

    Thank you for this Paul, i have jumped straight into this.


    Yes, this will be the hardest part for me.

    Thanks again all.
  21. Replies
    32
    Views
    8,854

    Learn C++ from C

    Hi Experts,

    Just a quick one, can anyone recommend any decent books / sites that can teach you C++ from someone who has a fairly good knowledge of C and the WinAPI.

    Main things i am interested...
  22. Replies
    4
    Views
    3,027

    Re: HeapAlloc() / HeapFree() Linked List

    Ah Yes that makes sense, good example! thank you for that ;-)

    Also, can you recommend me the best method to use for testing for memory leaks ?

    _CrtDumpMemoryLeaks() is fine for the CRT...
  23. Replies
    4
    Views
    3,027

    Re: HeapAlloc() / HeapFree() Linked List

    Thank you superbonzo!

    you made that very clear.

    just out of interests


    Can anyone suggest any information on how this is done? I would like to be able to create linked lists using this...
  24. Replies
    4
    Views
    3,027

    HeapAlloc() / HeapFree() Linked List

    Hi Experts

    I have created a linked list using the HeapAlloc() function instead of malloc(). When it comes to freeing the linked list, is it still neccassry to loop though each node using...
  25. Replies
    7
    Views
    1,675

    Re: Unicode over socket

    Ok Thank you all very much for your answers!
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured