What is wrong with this boilerplate mixin? (1/1)
AF
noemail at noemail.com
Tue Oct 24 12:00:55 PDT 2006
Thanks for the code. I also implemented a simple win app using the
main() function (see below file swapp.d).
While I preffer this simpler form, what I need to know if I will miss
some functionality specific to the WinMain paradigm. File compilation
uses the -L/exet:nt/su:windows:4.0 parameter.
Thanks in advance.
AF
-------------file swapp.d-------
import std.c.windows.windows;
HINSTANCE hInstance;
int main(char[][] args) {
hInstance = GetModuleHandleA(null); //obtain the hInstance
parameter
MessageBoxA(null,"Message text","Message title",MB_OK);
return 0;
}
-------------end file swapp.d-----------
More information about the Digitalmars-d-learn
mailing list