Search:

Type: Posts; User: manannan

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,544

    You should try downloading Visual C++ Express...

    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...
  2. Replies
    4
    Views
    1,492

    I'm not sure implementing a garbage collector in...

    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...
  3. And if you're serious about writing a text...

    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 :)
  4. Thread: C++ lint

    by manannan
    Replies
    6
    Views
    2,361

    Thank you all; I guess I'll just have to talk my...

    Thank you all; I guess I'll just have to talk my manager into buying a copy...
  5. Thread: C++ lint

    by manannan
    Replies
    6
    Views
    2,361

    C++ lint

    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...
  6. Thread: Open a file

    by manannan
    Replies
    2
    Views
    1,029

    Check out ShellExecute...

    Check out ShellExecute.
  7. If by 'result' you mean the process exit code,...

    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);...
  8. Replies
    8
    Views
    4,749

    For one, because AFAIK you have to pick a...

    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...
  9. Replies
    8
    Views
    4,749

    I'm working under Windows, actually. Visual...

    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,...
  10. Replies
    8
    Views
    4,749

    Tool for displaying call graph

    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...
  11. Replies
    1
    Views
    2,319

    CreateProcess and console handles

    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...
  12. Replies
    16
    Views
    2,791

    At least it's got static class constructors.

    At least it's got static class constructors.
  13. Replies
    1
    Views
    881

    Templates: VC++ versus C++ standard

    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...
  14. Thread: string find

    by manannan
    Replies
    5
    Views
    981

    The second parameter to basic_string::substr() is...

    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?

    ...
  15. Replies
    10
    Views
    10,273

    I don't know... it's just that if my program uses...

    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...
  16. Replies
    10
    Views
    10,273

    Thanks. So there's no way to copy one (save for...

    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++.
  17. Replies
    3
    Views
    1,664

    Here are some hints for you:...

    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...
  18. Replies
    10
    Views
    10,273

    Converting an ifstream to an istream

    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;
    }
  19. Replies
    2
    Views
    821

    Template troubles II

    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...
  20. Replies
    4
    Views
    2,105

    Oh, all right; thanks anyway. I only chose IE...

    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...
  21. Replies
    4
    Views
    2,105

    All right, I've figured it out by myself (or...

    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...
  22. Replies
    5
    Views
    1,659

    Well, here are the first lines of my ...

    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...
  23. Replies
    4
    Views
    2,105

    Talking to Internet Explorer

    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...
  24. Replies
    10
    Views
    2,330

    Try long x; inp.read(&x, sizeof(long); ...

    Try


    long x;

    inp.read(&x, sizeof(long);

    You might need to cast &x to char*.
  25. Replies
    2
    Views
    892

    Templates trouble

    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...
Results 1 to 25 of 25