西西河

主题:【求助】问个Visual C++的问题 -- 香山居士

共:💬11 🌺7
全看分页树展 · 主题
家园 【求助】问个Visual C++的问题

跟remote desktop connection 有关。

俺用的是Visual Studio 2005,code不是俺写的,俺只是debug。

问题在这行code,createArgs是个pointer。

m_pAppHub = pplicationHubFactory::NewInstance(createArgs);

如果我在本地机上(Windows XP)build,run,一点问题都没有。如果我用另一台机子(Windows Vista)通过remote desktop connection 联这台机子,build没问题,run到这行就会产生

An unhandled exception of type 'System.TypeInitializationException'

我查过,在两种状况下运行时createArgs里面各个component的值完全相同。我在网上google了两天,不得要领。

谢谢大家了。

全看分页树展 · 主题


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河