Reputation: 13948
I'm having a very hard time at trying to do trivial things with Visual-generated C++ code. This is getting frustrating beyond expectation.
I'm accustomed at getting arguments from command line thanks to :
int main(int argc, char** argv)
OK, this works, at least as long as we stay in an ANSI world.
Now, Visual generates this :
int main(array<System::String ^> ^args)
I'm somewhat clueless as to how to work with this line. I've obviously tried to swap the unknown semantic with the more familiar one, but compilation fails. I've also been roaming Internet for an unreasonably large amount of time, finding many examples for this situation, but none of them ever worked...
[Edit] Small explanation on what i'm attempting to do : this is supposed to be a trivial yet a GUI program. It takes a filepath from command line argument, and write in it depending on options selected by the user on the GUI. So : it is not a CLI, It is a Windows Form.
Upvotes: 1
Views: 562
Reputation: 129764
You're creating a .NET project, and what you're seeing is C++/CLI, not C++. Create a native project (Win32 Application or something like that) instead.
Upvotes: 5