Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

startup program function main win32

$
0
0

Well I make the most easy application, it should just say "hello world" in console. I made a win32 application, because I want to use the GUI toolbox, buteven this simple piece of code doesn't work.

#include <iostream>

using namespace std;

int main(){
	cout << "hello world";
	return 0;

}

I have basic experience with c++, but normally I use eclipse, but there isn't a decent documented library for gui applications. Is there something about visual studio and c++ that I don't understand, so this doesn't work. It gives error LNK2019, it should be a startup problem, the program doesn't know that it should start main(), which is pretty weird because if the following link:link to startup msdn

what do I miss?


Viewing all articles
Browse latest Browse all 15302

Trending Articles