开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜