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

Search:

Type: Posts; User: MasterDucky

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    286

    Re: Command line compile, no output file

    OK, that's my bad, I just copied the command from Visual Studio 2013 where it was compiling and creating the .exe.

    If I remove /c and link it with the libs it should work.

    Thanks for the help...
  2. Replies
    2
    Views
    286

    Command line compile, no output file

    Im compiling a .cpp file from a .bat file with these commands.

    It compiles without error and I get an .obj file but no .exe. The object file gets created in the VS bin directory.
    I tried it with...
  3. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    Yes, but I want to know if it was an error with the connection or with some other operation, like couldn't open a file I asked for or anything else.
  4. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    This looks like the best solution.
  5. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    Windows TCP/IP Send() function.
  6. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    Base64 doesnt use all the ASCII characters?
  7. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    Thats true.

    I would like to signal to the other side that an error occurred and dont wait for the file.
  8. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    It's for binary too so maybe just one character is not the best solution.

    Thanks Kaud, that's what I wanted to know.
  9. Replies
    14
    Views
    475

    Re: Which ASCII character to send

    Thank you Victor.

    Looks like the DEL character should be OK on Windows.
  10. Replies
    14
    Views
    475

    Which ASCII character to send

    I want to send only one character to the other side to signal that there was an error.

    I'm looking for a character that never appears in a file.

    I looked at the ASCII chart and I thought maybe:...
  11. Replies
    5
    Views
    3,813

    Re: WM_KEYDOWN and focus

    It worked. :) Thank you.

    First I put it in the case that called the play() in the menu not on the button that's why it didn't work.
  12. Replies
    5
    Views
    3,813

    Re: WM_KEYDOWN and focus

    Yes but I need to push that button to start the application. After that on the other hand I want to handle WM_KEYDOWN messages.

    But since the focus stays on the button I dont get the WM_KEYDOWN...
  13. Replies
    5
    Views
    3,813

    WM_KEYDOWN and focus

    If I click on a button then it will keep the focus and I won't get any WM_KEYDOWN messages any more as long as I dont click outside and then back on the window.

    What is the cause of this behaviour...
  14. Replies
    3
    Views
    2,048

    Re: WndProc break or return

    Thank you.
  15. Replies
    3
    Views
    2,048

    WndProc break or return

    In the Charles Petzold C++ book examples the cases in the switch (message) are returning return 0;

    But if I create a project in Visual Studio 2010 it puts breaks; instead of return 0;

    Whats up...
  16. Replies
    4
    Views
    2,544

    Re: Already defined function error LNK2005

    That was it! Thanks a lot, you made my day! :wave:
  17. Replies
    4
    Views
    2,544

    Re: Already defined function error LNK2005

    Its apparently not defined there and even if I change the function name I get the same error.



    // stdafx.h : include file for standard system include files,
    // or project specific include...
  18. Replies
    4
    Views
    2,544

    Already defined function error LNK2005

    I created a very simple c++ win32 project in MSVC 2010.

    I added a .cpp file with the function definition and a .h file with the function prototype and I get this "function already defined" error....
  19. Replies
    24
    Views
    15,202

    Re: PostMessage

    It's a pity it's in MFC but Im gonna check it out nevertheless, thank you Arjay.
  20. Replies
    24
    Views
    15,202

    Re: PostMessage

    Thanks, that's a good tip!

    Interesting that PostMessage can take a string* directly but SendMessage cannot.
  21. Replies
    24
    Views
    15,202

    Re: PostMessage

    Mea culpa, I forgot a 'delete pItem;' at the end of another thread, that was it! :)
  22. Replies
    24
    Views
    15,202

    Re: PostMessage

    It's ANSI.

    Yes I definitely need to learn to debug first.
  23. Replies
    24
    Views
    15,202

    Re: PostMessage

    No, I havent. I use codeblocks with MSVC 2010 and single file debugging is not supported. I know its lame but I dont like to create a project for every little program I use. :)
  24. Replies
    24
    Views
    15,202

    Re: PostMessage

    string str;
    stringstream ss(s);

    while (getline(ss, str, '?'))
    {
    TCHAR* pItem = new TCHAR[MAX_PATH];
    lstrcpy(pItem, (TCHAR*)str.c_str());
    ...
  25. Replies
    24
    Views
    15,202

    Re: PostMessage

    Thanks, I did, it compiles but crashing.

    This is what you meant?

    case WM_USERDEFINED:
    {
    TCHAR * pItem = (TCHAR*)wParam;
    SendMessage(hListBox, LB_ADDSTRING, (WPARAM)0,...
Results 1 to 25 of 231
Page 1 of 10 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center