且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何调用另一个类的静态方法

更新时间:2023-11-22 14:20:52

p>您只需使用范围解析运算符 :: 使用暴露它的类的名称限定方法:

You only need to use the scope resolution operator :: to qualify the method with the name of the class that exposes it:

CString appPath = CAppPath::GetAppPath();