Search:

Type: Posts; User: ac251404

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,392

    Okay I think it is because STDOUT is the...

    Okay I think it is because STDOUT is the underlying stream of StreamWriter, and when SW is flushed it flushes out the current stream and the underlying stream, but since the underlying STDOUT is...
  2. Replies
    12
    Views
    2,392

    Yes, sorry I copied/pasted the wrong line there I...

    Yes, sorry I copied/pasted the wrong line there I believe, but yes there is a matching block to ensure STDOUT is not inherited.
  3. Replies
    12
    Views
    2,392

    Okay added that but still didnt do it. Thanks for...

    Okay added that but still didnt do it. Thanks for the reply tho.
    I have traced the problem to here in ReadFromPipe(). I thought it was really strange that even just calling ReadFromPipe() on some...
  4. Replies
    12
    Views
    2,392

    Well it was a good thought, and I am sure it...

    Well it was a good thought, and I am sure it couldn't hurt to leave it in my code but still no luck.
    The following is the full exception I get:



    System.IO.IOException: The handle is invalid.
    ...
  5. Replies
    12
    Views
    2,392

    Okay a bit of an update but still having trouble...

    Okay a bit of an update but still having trouble - I tried changing


    tmp = gcnew String(connector.ReadFromPipe().c_str());


    to


    tmp = gcnew String("this is a string");
  6. Replies
    12
    Views
    2,392

    Okay below is the entire function. I added some...

    Okay below is the entire function. I added some more commenting so you can see what I'm attempting but basically my main program automatically reads back from the server each time it sends out an...
  7. Replies
    12
    Views
    2,392

    tmp would hold the string "NULL" not actually...

    tmp would hold the string "NULL" not actually null. So I would imagine it would return false.
  8. Replies
    12
    Views
    2,392

    VC++ Stream Writer problems.

    Okay I finally decided to try using actual managed code to handle my file writing since all the code where I am converting System::String to std::string and using filestreams is becoming very touchy....
  9. okay I did catch a failure, maybe you can help me...

    okay I did catch a failure, maybe you can help me understand why its failing here.



    To_string(tmp, output);
    tmpstrm << output;
    if(tmpstrm.fail()){
    MessageBox::Show("Stream failure.", "stream...
  10. okay I changed some things around a little and I...

    okay I changed some things around a little and I located the line that is screwing everything up, but I dont know how or why it should be having this effect.


    tmpstrm.open("C:\\test_log.txt");...
  11. yea i tried using .write() as well with the same...

    yea i tried using .write() as well with the same results. Yes it can write to the file apparantly since it writes the first line, but once its in the loop nothing.
  12. going crazy... wont write to filestream in loop!?

    Okay I am going absolutely insane. I cannot figure out why this isnt working. I have other pieces of code just like it that work fine... but anyway here it is:



    tmpstrm.open("C:\\Tplease.txt");...
  13. Replies
    3
    Views
    1,140

    thanks! I didn't know that and was completely...

    thanks! I didn't know that and was completely stumped.
  14. Replies
    3
    Views
    1,140

    strange file opening problem

    I am trying to use a file stream to count some data. The odd thing is the second time I use the ifstream, the file opens but it doesnt seem to read any data at all. Here is the code from the working...
  15. Replies
    6
    Views
    4,946

    Okay I have placed the proper .lib file into my...

    Okay I have placed the proper .lib file into my VC lib dir and I have the .h in my include and have also determined that this error is a result of mixing managed and unmanaged code. I think i am...
  16. Replies
    6
    Views
    4,946

    I did download the windows precompiled binaries,...

    I did download the windows precompiled binaries, all the zip contains is the .dll and .def. I also downloaded the source to get the .h file. To get it working for Dev-Cpp I had to use the mingw...
  17. Replies
    6
    Views
    4,946

    I already have the .dll, can i make a .lib from...

    I already have the .dll, can i make a .lib from that? Do I use the .DLL as well and if so where should I put it? Right now I have it in my system path because thats how I got it working with Dev-C++....
  18. Replies
    6
    Views
    4,946

    setting up SQLite with Visual C++ Express

    Hi, I have been playing with SQLite and I got everything setup with Dev-C++ with the help of this forum. The problem is now I'm trying to set it up with VC++ as well and am having no luck. I have the...
  19. Replies
    7
    Views
    1,206

    im having fun figuring it out bit by bit. Its...

    im having fun figuring it out bit by bit. Its really easy to use just looking thru the docs and it ended up being perfect for my application since I can keep the DB on a network drive and my app can...
  20. Replies
    2
    Views
    1,242

    command line parameters problem...

    Hi, I am trying to get this program to take some command line arguements like -l for logging. The problem is my program does not seem to think argv[4] == "-l". Here is my arg check:



    /*Check...
  21. Replies
    6
    Views
    6,901

    yea all I had to do was put it in the system32...

    yea all I had to do was put it in the system32 folder. I thought I could change the System Environment Variables and just add the path but I guess not. Anyway thanks for the help, everything seems to...
  22. Replies
    6
    Views
    6,901

    okay I think I am close to getting this but I'm...

    okay I think I am close to getting this but I'm not sure where I should actually place sqlite3.dll. Currently I have done the following:

    -ran dlltool to get libsqlite3dll.a
    -placed...
  23. Replies
    6
    Views
    6,901

    Okay I opened a cmd prompt, navigated to the DLL...

    Okay I opened a cmd prompt, navigated to the DLL directory and tried that command and got this:


    'dlltool' is not recognized as an internal or external command,
    operable program or batch file.
    ...
  24. Replies
    6
    Views
    6,901

    SQLite questions

    Hi, I am trying to incorporate SQLite into my current project. To get used to using it and to see how it works I am writing a seperate app to intitially build my database from a space delimited file....
  25. Replies
    7
    Views
    1,206

    Okay so after looking through the documentation a...

    Okay so after looking through the documentation a bit I had some thoughts/questions I was wondering if anybody could address.

    - For implementing this within my current VC++ project should I just...
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4