You should try downloading Visual C++ Express with Platform SDK. It's free, powerful and really pretty.
As for your problem... try running the program from a command shell. Or add a scanf() at the...
Type: Posts; User: manannan
You should try downloading Visual C++ Express with Platform SDK. It's free, powerful and really pretty.
As for your problem... try running the program from a command shell. Or add a scanf() at the...
I'm not sure implementing a garbage collector in C++ is would be worth the effort. Why don't you use a smart pointer instead, like the Boost shared_ptr? Of course, you can whip out your own in a...
And if you're serious about writing a text adventure, you'd better use the right language for it. It'll save you a lot of trouble :)
Thank you all; I guess I'll just have to talk my manager into buying a copy...
I was just wondering if there is a free static code analyzer for C++ somewhere (yes, I'm a cheapskate). Of course, VC++ 2005 will warn me about lots of code smells, like uninitialized data or...
Check out ShellExecute.
If by 'result' you mean the process exit code, you can obtain it like this:
HANDLE hProcess = /* Handle to your process */;
DWORD exitCode = 0;
::WaitForSingleObject(hProcess, INFINITE);...
For one, because AFAIK you have to pick a function, and manually expand the call list for each of the functions it calls. Finally you wind up with a call tree, which contains lots of duplicate...
I'm working under Windows, actually. Visual Studio 2005 allows me to build something like a one-vertex-at-a-time call graph, but it's slow and inconvenient.
I can easily run Linux under a VM,...
Hello,
Would there be a free tool for parsing a bunch of .cpp files and generating a static function call graph of an application, including calls to virtual functions and preferably thread...
Hello, everyone! I hope you can help me with this one...
What I want to do is create a console application that would process user input and then spawn other console applications in the same console...
At least it's got static class constructors.
I'm sorry to bother you guys again :) Yet I'm still resolutely determined to learn C++ (while weird and illogical at times, it seems a powerful language; plus, C++ programming pays well, for what I...
The second parameter to basic_string::substr() is the length of the substring, not the position of the last character. Perhaps you should use it like this?
...
I don't know... it's just that if my program uses some data that I can't tamper with, I feel uncomfortable :-)
Perhaps I was too rash in saying this. C++ implements C as a subset, and thus is no...
Thanks. So there's no way to copy one (save for modifying the header)?
I'll use memcpy(), just to spite it.
As I said, I hate C++.
Here are some hints for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setwindowtext.asp...
Boy, am I beginning to hate C++, and here's one of the reasons why:
Me (to compiler):
#include <fstream>
int important_function(std::istream ){
return 0;
}
Greetings, everyone, and don't laugh at me for being a poor novice programmer :)
I'm trying to implement a (very specific) Database class, and I think it'd be nice to be able use some of the...
Oh, all right; thanks anyway. I only chose IE because I couldn't make head nor tail of the other browsers', er, programming models; plus, I now dabble a little in ATL, so that's two benefits for the...
All right, I've figured it out by myself (or rather, found a tutorial all by myself ;) ) For those interested, here it is: http://www.codeproject.com/atl/#IE+%2F+Explorer+plug%2Dins
Now if I just...
Well, here are the first lines of my <windows.h> header: (I'm using Visual Studio 2003, but that shouldn't matter, as Microsoft = backwards compatibility :-))
#ifndef _WINDOWS_
#define...
Hello, everyone.
I'd like to make my own custom IE toolbar that would analyze the URL and the HTML of the Web pages and (say) display an alert if the page contains some harmful content. I've...
Try
long x;
inp.read(&x, sizeof(long);
You might need to cast &x to char*.
Hello, everyone! This might seem an easy question to you, and I wouldn't even post it if it wasn't for my love of clean code. So here goes:
What I want to do is read some pairs of values from a...