Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Compiler Warning (level 1) C4829

Error Message

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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.