هذه المقالة متوفرة أيضا باللغة العربية، اقرأها هنا.
I got a question about WinMain and its ANSI lpCmdLine. Are you required to use the ANSI argument? No, you are not!
For unknown reason, WinMain and also main functions come with only ANSI command-line arguments (lpCmdLine in WinMain and argv in main.) To overcome this situation, you can forget about function arguments and use the function GetCommandLine to get a pointer to the command-line string for the current process.
The definition for this function is as follows:
Simple, isn’t it?
- ILMerge 2.9.0727 is now available
- Assembly Spy; a Reflection Sample
- Marshaling with C# – Chapter 3: Marshaling Compound Types
- Moving a Form without the Title Bar
- 9 Rules about Constructors, Destructors, and Finalizers