Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我调用代码时
CObject *ptr;
从托管代码到互操作,CObject 指针被初始化为 NULL 或未定义的值。但是,当我在本机代码中执行它时,它会被正确初始化。这是为什么??