This poses a couple of problems.
Since all the default libraries are being ignored, using math.h or any other header (have not tested) then the linker complains trying to use a function from the library. The attached project uses sinf(float) from math.h but it will not link. I am not sure if you have to link to another library file and what it is called if so (not math.lib).
Secondly, I have no idea how to write an operator function for 'using' and 'namespace' . Adding #include<sstream> and using namespace std; will not link.
Put it in a .c file, not .cpp. In the linker settings you must set the entry point to Entry and the ONLY lib to include is user32.lib
0 is the value of MB_OK.
Maybe this call would require even less space:
Code:
void Entry()
{
long l = 0;
MessageBoxA((void*)0, &l, &l, 0);
}
hmmm...
I thought libc.lib is just the static version of the CRT library - and msvcrt.lib is the import lib for the dynamic version - strange that it works including both...
libcp.lib is the static version of the C++ runtime.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.