Journal Journal: Small Windows Programming
I'm starting to write Journal Entries based on my sigs and perhaps the sigs of others.
My sig:(current of this writing)
#include <windows.h>
void start(){ MessageBox(0, "Hello", "World", MB_OK); }
The point of this is to write a program that starts at the entry point. Traditional Windows programming starts with WinMain, but that isn't the start of the EXE. The traditional compilation path sets a routine in a library somewhere that calls WinMain as the entry. Link allows you to specify your own entry point, and this demonstration program is small enough to fit in a sig. Similar things have been done in assembly, though I haven't seen much transference to C, though based on explorations I have made with the code segment above being the starting point, it appears it can be done.
See Also: Thread on QB45.com
My sig:(current of this writing)
#include <windows.h>
void start(){ MessageBox(0, "Hello", "World", MB_OK); }
The point of this is to write a program that starts at the entry point. Traditional Windows programming starts with WinMain, but that isn't the start of the EXE. The traditional compilation path sets a routine in a library somewhere that calls WinMain as the entry. Link allows you to specify your own entry point, and this demonstration program is small enough to fit in a sig. Similar things have been done in assembly, though I haven't seen much transference to C, though based on explorations I have made with the code segment above being the starting point, it appears it can be done.
See Also: Thread on QB45.com