开发者

How to make a text file "Open With" my Win Api Text Editor?

开发者 https://www.devze.com 2023-03-02 01:10 出处:网络
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 ar

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

精彩评论

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

关注公众号