How to make a text file "Open With" my Win Api Text Editor?
I have recently made a small text editor in C WinApi. Ive almost done everything but I cant figure out how to make text files open with my pro开发者_开发技巧gram. The WinMain function does not have argc and *argv[] parameters like the normal C main function. So how do I get Cmd input?
Use the WinAPI GetCommandLine. See http://msdn.microsoft.com/en-us/library/ms683156(v=vs.85).aspx
精彩评论