Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 1) C4829

Possibly incorrect parameters to function main. Consider 'int main(array<System::String^>^ argv)'

Certain functions, such as main, cannot take reference type parameters. While compilation will succeed, the resulting image will probably not run.

The following sample generates C4829:

// C4829.cpp
// compile with: /clr /W1 /c
int main(System::String ^ s) {}   // C4829

Community Additions

ADD
Show:
© 2015 Microsoft