Search:

Type: Posts; User: tao

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Memory Issue?

    by tao
    Replies
    2
    Views
    1,110

    I found the issue I had was in using a LPCTSTR...

    I found the issue I had was in using a LPCTSTR style null-terminated string pointer which is volatile (temporary). See MSDN index entry for more info.

    I think because it was a pointer to a CString...
  2. Thread: Memory Issue?

    by tao
    Replies
    2
    Views
    1,110

    Memory Issue?

    I have a general question regarding a variable I'm trying to maintain a value for that is changing ambiguously throughout my program.

    Here's a brief outline of how my program is doing the...
  3. Replies
    4
    Views
    3,704

    I was daunted by the idea of having to start the...

    I was daunted by the idea of having to start the project from scratch but I did so anyways, and the error is gone. Seems like an arduous task and that there should be a simpler solution, but I'm not...
  4. Replies
    4
    Views
    3,704

    It does, yes. It's created in the temp location...

    It does, yes. It's created in the temp location for your project when you build your project in Visual Studio C++ 6. And yes, I checked.
  5. Replies
    4
    Views
    3,704

    LNK1104 file.obj Error

    I tried to compile a program I worked on a couple weeks ago, and now it won't compile properly. I'm getting the error:

    LINK : fatal error LNK1104: cannot open file ".\file.obj"

    I can't...
  6. Thread: Debug vs Release

    by tao
    Replies
    4
    Views
    1,550

    I scrutinized the code and found a foolish...

    I scrutinized the code and found a foolish reference to an array location [-1] that was preventing the data-assignment code loop from running. Fixed it and things appear to be spot on regardless of...
  7. Thread: Debug vs Release

    by tao
    Replies
    4
    Views
    1,550

    I see what you're getting at, but the code is...

    I see what you're getting at, but the code is straight up as above. There is no call to a function and no assertions. The data is read in from a file to the global struct, then later writes the...
  8. Thread: Debug vs Release

    by tao
    Replies
    4
    Views
    1,550

    Debug vs Release

    I'm experiencing an odd issue with an application I have developed. It parses data from a file and later writes the required elements in a header for a different file. In Debug mode, it compiles...
  9. Thread: c and html

    by tao
    Replies
    21
    Views
    4,975

    The basic code for what you want is below....

    The basic code for what you want is below. However, there are many things that can go wrong as there is little error checking involved (such as buffer overflow - when a user inputs too much...
  10. Thread: c and html

    by tao
    Replies
    21
    Views
    4,975

    fgets() appends a null terminator to an array. So...

    fgets() appends a null terminator to an array. So regardless if you can see it, it's there at the end of your string for the filename. You should read (at the very least briefly) through a tutorial...
  11. Thread: c and html

    by tao
    Replies
    21
    Views
    4,975

    Some issues to take note: 1- You're declaring ...

    Some issues to take note:

    1- You're declaring char buf[BUFSIZ] and char *p twice, which isn't necessary (or proper in this case).
    2- You are declaring variable fileName as a single character...
  12. Thread: c and html

    by tao
    Replies
    21
    Views
    4,975

    You're reading in a single char using ...

    You're reading in a single char using
    scanf("%c", &a);

    Check out reading in lines of text with fgets().
  13. Thread: printf removes \

    by tao
    Replies
    3
    Views
    911

    Double up each "" (i.e. "\"). "" is an escape...

    Double up each "\" (i.e. "\\"). "\" is an escape character, so to escape itself (to ouput itself) you have to use two.
  14. Replies
    3
    Views
    887

    I just started learning VC++ in June, so I know...

    I just started learning VC++ in June, so I know where you're coming from. I Googled for resources a bit, and just had to read up quite a bit. That and a bit of practice can go a long way.

    I found...
  15. Replies
    6
    Views
    2,150

    javaw.exe is equivalent to java.exe but there's...

    javaw.exe is equivalent to java.exe but there's no console window launched when called.

    See reference if you're curious. Nothing fancy about it really (literally).

    ShellExecute does sound...
  16. Replies
    6
    Views
    2,150

    I didn't, but could you elaborate on potential...

    I didn't, but could you elaborate on potential benefits versus CreateProcess?
    I'd like to use the most applicable solution for my situation.
  17. Replies
    6
    Views
    2,150

    Thanks for the help. I guess I didn't understand...

    Thanks for the help. I guess I didn't understand the parameters properly on the MSDN page.

    The correct code to launch it turns out to be:


    CreateProcess(NULL,"javaw -jar \"C:\\PATH TO...
  18. Replies
    6
    Views
    2,150

    Launching an application from my program

    I've gone over the FAQ regarding this issue, but I can't get the Windows implementation method to work. I think I know why, but I'm not sure how to go about getting around it.

    I'm trying to allow...
  19. Thread: Binary comparison

    by tao
    Replies
    0
    Views
    1,677

    Binary comparison

    I'm working on a program written in VC++ 6.0 and I'm at a point where I want to increase the efficiency of the program. It's a conversion utility that parses an ASCII file for conversion factors and...
  20. Thread: Assertion Error

    by tao
    Replies
    7
    Views
    1,397

    I was wondering if it was perhaps the CString...

    I was wondering if it was perhaps the CString type that was causing conflict. I'll try your suggestion, Salem.

    Edit: Yes, that worked like a charm. Thanks for the input. =]

    As to why I chose...
  21. Thread: Assertion Error

    by tao
    Replies
    7
    Views
    1,397

    I have another question regarding sscanf as part...

    I have another question regarding sscanf as part of the above code; thought I'd throw it in here as opposed to cluttering up the place with a new thread.

    I'm trying to read in a file and parse the...
  22. Thread: Assertion Error

    by tao
    Replies
    7
    Views
    1,397

    I found that this morning when I took a fresh...

    I found that this morning when I took a fresh look at the code. Thanks for the let-know, though. Funny how something so menial can slip me by so easily.
  23. Thread: Assertion Error

    by tao
    Replies
    7
    Views
    1,397

    Assertion Error

    I'm back again, with another fgets issue (sort of).

    I've used this code numerous times, as it's quite standard, but for some reason I'm getting an error now.


    Debug Assertion Failed
    File:...
  24. Replies
    4
    Views
    1,849

    Ah, I completely overlooked that. Thanks. And for...

    Ah, I completely overlooked that. Thanks. And for the welcome. =]
  25. Replies
    4
    Views
    1,849

    Brilliant. That's just what I was looking for,...

    Brilliant. That's just what I was looking for, thanks.
Results 1 to 25 of 26
Page 1 of 2 1 2