分享方式:


編譯器警告 (層級 1) C4829

函式 main 的參數可能不正確。 請考慮 'intmain(Platform::Array < Platform::String^ > ^ argv)'

特定函數 (例如 main) 無法取得參考型別參數。 繼續編譯時,產生的映像可能不會執行。

下列範例會產生 C4829:

// C4829.cpp
// compile by using: cl /EHsc /ZW /W4 /c C4829.cpp
int main(Platform::String ^ s) {}   // C4829