-
Compiling Applications
this is a really dum question, but its making me mad! lol, alright, well, im using microsofts visual c++ for a compiler, i made a simple code for just to show "hello world" here it is,
#include <iostream.h>
int main()
{
cout<<"Hello World";
return 0;
}
but when i compile it, it says no errors, but when i try to make it a .exe, it says i have 2 errors,
-LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
-Debug/count.exe : fatal error LNK1120: 1 unresolved externals
-Error executing link.exe.
how do i fix it? i cant seem to do anything until i fix it, well, thanks for any help, i really need it, as you can tell, im just starting off, actually, its my first day. also, when i went to new file, i selected "win32 application" and then a blank document... would that have anything to do with it? should i select "win32 console application" thanks again for any help given?
-Matt
-
yea, thats what i was thinking, in fact, i just edited the post to say that i was using the win32 application, not the console application, lol, thanks, lemme try that out
-
hmm, although, i wanna make it a windows type app, well, i wanna learn the right way to make a game, so that in the future once i learn well, ill be able to make a game. should i use win32 application, or win32 console application? i dont want just dum little stuff, but win32 application looks harder, which one should i use?
-
if you are just starting to learn, start with console apps...but otherwise, if you have a handle on c++, then imo, go ahead and learn win32api.
-
alright, well, can you add pictures and like, i know this is dum, but like, i dowt you could make a good game on console, like, not those dum ones but pretty cool ones like starcraft and stuff, i know i wouldnt be able to make it now, but you know, once i get really really good, i dont wanna have to relearn everything. like arnt the different ones, like api and console, arnt they diff languages all together almost? thanks
-Matt
-
yea, i know the basics, but like, im trying to see what im up against... like, how hard is it to add a picture? like a .jpg or just things like that, is c++ really hard? the basics arnt, but thats why they are called the basics. im hoping to make an online starcraft type game, after a few more months of learning c++ ill be pretty good to go, but like, am i using the right program? is c++ what i need? can c++ hook up to a database also? thanks
-Matt