Search:

Type: Posts; User: Chunky

Search: Search took 0.00 seconds.

  1. Thread: hi peeps!

    by Chunky
    Replies
    11
    Views
    1,149

    Again, I'm no pro, but if my past experience with...

    Again, I'm no pro, but if my past experience with c serves me well, this is all you should need, no?

    #include <iostream>
    using namespace std;

    int main()
    {
    while (DOB!=-1)
    {
    int DOB;
  2. Replies
    20
    Views
    8,672

    I'm a huge dope. I fixed it. I was using the...

    I'm a huge dope. I fixed it. I was using the COleSafeArray member "AccessData" without subsequently using "UnaccessData". Once I added that to my code, I was no longer getting the failed assertion.
    ...
  3. Thread: hi peeps!

    by Chunky
    Replies
    11
    Views
    1,149

    I'm no pro, but couldn't you just add a for or...

    I'm no pro, but couldn't you just add a for or while statement at the beginning?
  4. Replies
    20
    Views
    8,672

    "sa" is defined earlier as a COleSafeArray...

    "sa" is defined earlier as a COleSafeArray object. It can be seen in the code I posted on page 2 of this thread, and below. Note: "va" is an array of floating point values.
    COleSafeArray sa;...
  5. Replies
    20
    Views
    8,672

    It now looks like this: // FSWinView.cpp :...

    It now looks like this:
    // FSWinView.cpp : implementation of the CFSWinView class
    //
    #include "stdafx.h"
    #include "FSWin.h"
    ///////////////////////
    //// TEST // TEST /////
    #include <iostream>...
  6. Replies
    20
    Views
    8,672

    Sorry, one last thing, there is nothing between...

    Sorry, one last thing, there is nothing between #include ".\fswinview.h" and #ifdef _DEBUG. I added the ... by mistake.
  7. Replies
    20
    Views
    8,672

    Oh ya, and based on what you said Daved,, I...

    Oh ya, and based on what you said Daved,, I wasn't sure if the using namespace std needed to be inserted in a particular location, so I tried many different ones (ie. just before the object that's...
  8. Replies
    20
    Views
    8,672

    Thanks again for taking the time to look my work....

    Thanks again for taking the time to look my work.
    Yes.


    I created a project using the following code (copied from an online tutorial) and it works fine, does exactly what it should.
    // basic...
  9. Replies
    20
    Views
    8,672

    same

    same
  10. Replies
    20
    Views
    8,672

    Ok, iostream.h and fstream.h are unfindable on my...

    Ok, iostream.h and fstream.h are unfindable on my hard drive. They're gone. The first 3 lines of my code are:
    #include <iostream>
    #include <fstream>
    using namespace stdNothing else has been...
  11. Replies
    20
    Views
    8,672

    Thanks Daved, I'll keep looking. Hi...

    Thanks Daved, I'll keep looking.

    Hi Indigo0086, that is where I originally saved them. I copied iostream.h and fstream.h from a coworkers VC++ and saved them in my project folder. I'm not sure...
  12. Replies
    20
    Views
    8,672

    I tried it but there's no change. Thanks anyways...

    I tried it but there's no change. Thanks anyways Micko.

    Can it be the location of the header files? I saved them in the same folder as the other header files from the same project.

    Are there...
  13. Replies
    20
    Views
    8,672

    Problem with file IO

    Hi,

    I am fairly new to C++. My problem is that my project won't compile ever since I've added very simple code for file output.


    #include "iostream.h"
    #include "fstream.h"
    ...
    ...
    ...
Results 1 to 13 of 13