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;
Type: Posts; User: Chunky
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;
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.
...
I'm no pro, but couldn't you just add a for or while statement at the beginning?
"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;...
It now looks like this:
// FSWinView.cpp : implementation of the CFSWinView class
//
#include "stdafx.h"
#include "FSWin.h"
///////////////////////
//// TEST // TEST /////
#include <iostream>...
Sorry, one last thing, there is nothing between #include ".\fswinview.h" and #ifdef _DEBUG. I added the ... by mistake.
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...
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...
same
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...
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...
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...
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"
...
...
...