That's fine in all apart from that you're still not making sure the buffer is null terminated. If it doesnt have a null character in it somewhere, MessageBox won't know where the string ends and it...
Type: Posts; User: Robert602
That's fine in all apart from that you're still not making sure the buffer is null terminated. If it doesnt have a null character in it somewhere, MessageBox won't know where the string ends and it...
LPTSTR mes;
wsprintf(mes,"%d",buffer);
This code isn't safe (it isn't as strcpy either). I don't know how much you know about managing memory, but LPTSTR is a TCHAR*, ie. a pointer to a space in...
Just out of curiosity this really, I found this checksum algorithm by a bit of reverse engineering of some old network code, it was being used to check UDP datagrams. I wondered if some of the more...
Thanks, I'll give that a try. I'll probably have to implement a pipes system alongside a temp file method though, apparantly win9x doesnt support creating named pipes:rolleyes:, fortunate that 9x...
I'm working with a pair of third party APIs trying to play a video straight (SMK format) out of a compressed library (MPQ format). I can use the mpq api to extract the video out of the library into a...
Yeah, I'm trying to solve for x (in radians).
A fairly simple equation by the looks of it but one I dont have a clue how to solve, somebody give me a hand please:
46/27 = tan(1.5x)/tan(x)
I've managed to get the solution graphically, but...
I have an MFC MDI application to which I've added a login screen. For privacy reasons the login needs to appear before any of the doc/view stuff is open, and prefereably before the main window is...
Thanks for the links, but the problem with every other piece of MBM type software I've found, is that they expect monitors to be accessible on the southbridge, as is normal, but these monitors arent...
Unfortunately that company is microsoft, and I very much doubt they'll respond with any haste.
I've been told by another person that attempted this before (who isnt available to help) that the EC...
Hi, I'm working on some motherboard monitoring software for a motherboard whose only temperatures monitors are in an ACPI chip, which is blocked off by windows ACPI drivers in XP / 2000. I'd like to...
Generally I'd agree with you, but I got myself one of these a bit ago and while a desktop would've been much cheaper, gaming laptops do exist.
If by refresh rates you mean response times, then...
If you mean within your own project, I'd suggest simply using find + replace (Ctrl+H in visual studio) and replacing all occurences of printf with //printf and vice versa.
That's it :D, thanks for the help, and for the quick reply.
Hi, I'm beginning my first game and was wondering how to implement seperate loops for in game, main menu etc. An idea I was trying to use is to have a base class 'CLoop' and then derive different...
Thanks again, it's all working now. I took
WPARAM wParam, // combo box identifier, CBN_SELCHANGE
on MSDN to mean that the wParam should be the message identifier specific to the combo box, eg...
You mean the "Runtime Error: Do you wish to debug?" dialog? As far as I know that's disabled by checking IE->Tools->Internet Options->Advanced->Disable script debugging
Thought I was getting somewhere, but I still cant get it to work. Learnt a lot about windows messaging and related functions for this, and I cant understand why the following code isnt triggering...
Thanks for the help, I've managed to capture the VK_RETURN message in PreTranslateMessage() by subclassing a combo box. My problem is in writing the code to let this return be picked up by an...
I'm doing a remake of an MFC application I made a while ago, but this time in pure API, because of no time restraints this time around and because I prefer having an understanding of code I have...
Programming with windows (a message based architecture) has a lot of advantages over simple console style apps. Just look at the browser you're currently using, it would be practically impossible to...
This is a question I probably should know the answer to, having been programming in MFC for nearly a year now, but so far I've managed to avoid it. Is there any way to capture the enter key in the...
If you used C++ and MFC you could use your app as an automation client for excel and automate excel to enter data and make graphs. It's relatively easy to do with MFC, and there are some good...
Apparantly VC.NET generates seperate header files for each interface, rather than combining them all into msword.h, found a more up to date article on knowledge base.
I've got an annoying problem of a missing header file, which I need to use Word through automation. Microsoft 'HOWTO's imply that I should already have the required files, but I get a file not found...