wxPlatformInfo pfInfo=wxPlatformInfo::Get();
wxPrintf("Major Version:%lld\n",pfInfo.GetOSMajorVersion());
wxPrintf("Minor Version:%ld\n",wxPlatformInfo::Get().GetOSMinorVersion());
wxPrintf("System Name:%s\n",wxPlatformInfo::Get().GetOperatingSystemFamilyName());
wxPrintf("System Name:%s\n",wxPlatformInfo::Get().GetOperatingSystemIdName());
wxPrintf("System Name:%s\n",wxPlatformInfo::Get().GetPortIdName());
注意:
请在GUI模式下使用,
在Console模式下会报错后,但也能显示。
目前用的3.1.5版本