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

Search:

Type: Posts; User: wd40bomber7

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,787

    Re: EnumProcesses crashes

    I think I'm going to be converting my whole program into the VS2008 Express environment.

    If I do that, will it make my program require the latest .net framework? Because that is exactly what I'm...
  2. Replies
    13
    Views
    2,787

    Re: EnumProcesses crashes

    It's possible I'm using a bad psapi.lib, or maybe a bad psapi.dll? Assuming psapi.dll has anything to do with the process?

    I don't suppose you could provide yours?

    I have Microsoft Visual...
  3. Replies
    13
    Views
    2,787

    Re: EnumProcesses crashes

    This particular comment I find extremely wasteful. I know where my program is crashing, and if I knew how I'd know how to solve it. Then I wouldn't need this forum would I?

    "Not good idea to know...
  4. Replies
    13
    Views
    2,787

    EnumProcesses crashes

    This function always crashes at
    if (!EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded )) I know because the only print out I get is "1".

    The code compiles. The proper includes and...
  5. Replies
    8
    Views
    1,013

    Re: Need help with Void*

    I find it very important to note
    uFile.open(filePath, ios::in | ios::binary);
    can not accept a string as its first parameter.

    As for the rest of the code I am looking it over now. I'm glad your...
  6. Replies
    8
    Views
    1,013

    Re: Need help with Void*

    Ok then, thanks for that. Do you have any suggestions on how to facilitate dynamic arrays?

    I don't have a g++ manual. I acquired it through minGW. Also I'm using a programming environment called...
  7. Re: How to send output of c and c++ programs to printer

    I would do this using notepad to do the actual printing.

    Open up a cmd prompt.
    run your program like this:
    myprogram.exe > d.txt

    Then go to the file d.txt (should be wherever your program is)...
  8. Replies
    9
    Views
    1,031

    Re: Checking variables in runtime

    I suppose certain compilers may come with debug programs that support this functionality, but other than that this seems like it would relatively difficult to do in C++
  9. Thread: Arguments

    by wd40bomber7
    Replies
    5
    Views
    515

    Re: Arguments

    Your main function should look like this:


    int main(int argc, char *argv[])
    {

    }

    argc represents the amount of arguements, argv is a dynamic array of pointers pointing to the arguments...
  10. Replies
    7
    Views
    828

    Re: file extension program?

    /sigh To change a file's extension just make sure file extensions are displayed and then rightclick->rename.

    You don't need to open the command prompt nor do you need to write a script....
    ...
  11. Replies
    4
    Views
    732

    Re: Sending an int in a packet

    I would do this:


    int IntToSend = 200; //put w/e int you want to send
    char * charToSend;
    charToSend = (char *)&IntToSend;
    //The integer can now be referenced using charToSend[0] charToSend[1]...
  12. Replies
    8
    Views
    1,013

    Need help with Void*

    The malfunctioning code snippet:


    ifstream uFile;
    struct stat results;
    char filePath[fileName.size()];
    chstr(fileName,*filePath);

    uFile.open(filePath, ios::in | ios::binary);
Results 1 to 12 of 12





Click Here to Expand Forum to Full Width

Featured