I don't get it. VCPP doesn't allow you to include standard preprocessor directives such as <iostream> or <fstream>. Instead if has stdafx.h or whatever. Why is it like this and what can i do to be able to use REAL C++ libraries?
So you add the files to the project or somthing? I want to check this out before I download (a very unreasonably large) program. Right now, im exploring it at school.
VCPP have the advantage of an easier GUI creation interface, which is why I'm looking into it.
I don't understand... how are you supposed to write C++ without the basic include files?
Huh? You can always include the standard header files. Nobody is saying otherwise.
"stdafx.h" is just a precompiled header that VC++ throws in there. Precompiled headers can potentially speed up compile times, but I find they can often create problems/compiletime oddities so I avoid them unless compiling without them is REALLY slow.
If you don't want to use them, don't. When you make a project in VC++, simply check the "Make Empty Project" checkbox and VC++ will make a "normal" project without the stdafx.h crap.
What i would like to do is make a check book type of program. It will open a file, get the information and change a label accordingly, but the <iostream> library doesnt seem to be working with it...
It is not that it is not working. It's more along the lines of consol vs win32. I want to make a graphic interface but i have no experience with makeing one. I have a lot of experience, though, with console programming.
here is a code sample:
here are the errors i get when this is compiled with the rest of the VCPP stuff:
1 2 3 4 5 6 7
1>c:\users\username\desktop\gui c#\project_gui.h(99): error C2440: '=' : cannot convert from 'std::string' to 'System::Windows::Forms::Label ^'
1> No user-defined-conversion operator available, or
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>c:\users\username\desktop\gui c#\project_gui.h(102): error C2440: '=' : cannot convert from 'std::string' to 'System::Windows::Forms::Label ^'
1> No user-defined-conversion operator available, or
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
also, i did have the basic preprocessor includes:
<iostream>, <fstream>, and <string> for this. So it is somthing else...
if you read my code, you would know that 'line' is declared as a string. Also, balance.Text is a syntactical error. It indicates a data structure. I think you are talking aboiut Basic and not C++.
and btw, im not blaming the "tools". I'm simply expressing my confusion with the way Visual C++ is.