Visual studio is annoying me SO much.
I am behind on programming coursework for uni and there are about 30 trillion errors when I try to compile anything even remotely relating to opengl with dev c++ (yes I sorted the linkers and followed all possible reasons as to why it won't work). So, I try to use the same program as the uni = visual studio 2008. I get a free license with dreamspark, install...
simply past:
into a new file in visual c++ and try to compile it... Oh wait, there is no compile button. WHAT.
So, I do all the usual junk by making a "project" then put my "solution" inside it. Then I make a "new cpp file"... ok, now it adds about 40 thousand header files, precompiled libraries and all sorts. So I delete all that and start again and specify for a "win32 c++ project" (because apparently everything else needs loads of junk in it).
Now I am asked if I want a Windows application, Console application, DLL or Static Library. Well, I guess it's a windows application (thought I want to start from scratch) because once I have tested that code above I am going to make a windows class (in code, no RAD junk that VS seems to insist upon). Please, just make an empty project. I did certainly tick the box - (though precompiled header is forced on).
OK, empty project,
file>new>file...
.cpp, open...
paste in the code above^
build>build test2.
Then low and behold:
What is this manifest junk? Even devc++ got this far without any issues at all.
The only things I have even come close to actually compiling in vs are console applications, with great difficulty.
What is this manifest mumbo jumbo? I just want to compile a plaintext file containing some c++, why is that so difficult? Is there any way to get this piece of rubbish application to actually just work for some basic test programming, or a very simple - 1 file - program.
And what are these stupid files it makes in the "solution" and "project"
So, I get a little farther - remembering to rename my source file to test2.cpp because VS compiles the solution not the source file (which you can't just have on its own)
I get this stupid error now:
There is not an error there, any real compiler would be ok with that. What the hell are Microsoft doing? Can somebody slap them for me?
Is there any actual way to do some simple, single source file, programming in VS08? Nothing ever works in the piece of junk. They always think you are trying to make a massive industrial suite of programs - simply NO.
/rant
I am behind on programming coursework for uni and there are about 30 trillion errors when I try to compile anything even remotely relating to opengl with dev c++ (yes I sorted the linkers and followed all possible reasons as to why it won't work). So, I try to use the same program as the uni = visual studio 2008. I get a free license with dreamspark, install...
simply past:
Code:
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR szCmdLine,
int CmdShow)
{
MessageBox (NULL, "Hello World", "HelloMsg", MB_OK);
return 0 ;
}
So, I do all the usual junk by making a "project" then put my "solution" inside it. Then I make a "new cpp file"... ok, now it adds about 40 thousand header files, precompiled libraries and all sorts. So I delete all that and start again and specify for a "win32 c++ project" (because apparently everything else needs loads of junk in it).
Now I am asked if I want a Windows application, Console application, DLL or Static Library. Well, I guess it's a windows application (thought I want to start from scratch) because once I have tested that code above I am going to make a windows class (in code, no RAD junk that VS seems to insist upon). Please, just make an empty project. I did certainly tick the box - (though precompiled header is forced on).
OK, empty project,
file>new>file...
.cpp, open...
paste in the code above^
build>build test2.
Then low and behold:
1>------ Build started: Project: test2, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\test2.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\Administrator\Documents\Visual Studio 2008\Projects\test2\test2\Debug\BuildLog.htm"
1>test2 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What is this manifest junk? Even devc++ got this far without any issues at all.
The only things I have even come close to actually compiling in vs are console applications, with great difficulty.
What is this manifest mumbo jumbo? I just want to compile a plaintext file containing some c++, why is that so difficult? Is there any way to get this piece of rubbish application to actually just work for some basic test programming, or a very simple - 1 file - program.
And what are these stupid files it makes in the "solution" and "project"
test2.ncb
test2.sln
test2.suo
test2.cpp
test 2>
--test2.vcproj
--test2.vcproj.Cupid.Administrator.user
--debug>
----BuildLog.htm
----test2.exe.embed.manifest
----vc90.idb
----vc90.pdb
So, I get a little farther - remembering to rename my source file to test2.cpp because VS compiles the solution not the source file (which you can't just have on its own)
I get this stupid error now:
No, simply no.c:\users\administrator\documents\visual studio 2008\projects\test2\test2.cpp(8) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [12]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
There is not an error there, any real compiler would be ok with that. What the hell are Microsoft doing? Can somebody slap them for me?
Is there any actual way to do some simple, single source file, programming in VS08? Nothing ever works in the piece of junk. They always think you are trying to make a massive industrial suite of programs - simply NO.
/rant