Type: Posts; User: MasterDucky
Search took 0.01 seconds.
July 28th, 2014, 08:59 AM
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...
July 28th, 2014, 08:21 AM
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...
July 25th, 2014, 10:53 AM
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.
July 25th, 2014, 03:04 AM
This looks like the best solution.
July 25th, 2014, 02:13 AM
Windows TCP/IP Send() function.
July 24th, 2014, 02:45 PM
Base64 doesnt use all the ASCII characters?
July 24th, 2014, 02:43 PM
I would like to signal to the other side that an error occurred and dont wait for the file.
July 24th, 2014, 12:09 PM
It's for binary too so maybe just one character is not the best solution.
Thanks Kaud, that's what I wanted to know.
July 24th, 2014, 08:22 AM
Thank you Victor.
Looks like the DEL character should be OK on Windows.
July 24th, 2014, 03:08 AM
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:...
July 12th, 2014, 03:15 PM
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.
July 12th, 2014, 12:34 PM
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...
July 12th, 2014, 04:47 AM
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...
July 11th, 2014, 08:57 AM
July 11th, 2014, 08:06 AM
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;
That was it! Thanks a lot, you made my day! :wave:
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...
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....
It's a pity it's in MFC but Im gonna check it out nevertheless, thank you Arjay.
Thanks, that's a good tip!
Interesting that PostMessage can take a string* directly but SendMessage cannot.
Mea culpa, I forgot a 'delete pItem;' at the end of another thread, that was it! :)
Yes I definitely need to learn to debug first.
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. :)
while (getline(ss, str, '?'))
TCHAR* pItem = new TCHAR[MAX_PATH];
Thanks, I did, it compiles but crashing.
This is what you meant?
TCHAR * pItem = (TCHAR*)wParam;
SendMessage(hListBox, LB_ADDSTRING, (WPARAM)0,...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.