Windows mobile 如果发送结构的引用(使用DLL),则无法获取值

Windows mobile 如果发送结构的引用(使用DLL),则无法获取值,windows-mobile,windows-8,microsoft-metro,Windows Mobile,Windows 8,Microsoft Metro,我有一个DLL,它是使用VisualStudio11作为WINRT组件构建的。在DLL中,我有一个函数调用readStructValues(MYStruct*s)。 我已将Dll添加到我的项目中。我的项目是使用CPP代码构建的。当我打电话给 readStructValues(MYStruct*s)在我的项目中,它提供了默认值(在调用之前,我已经分配了一些值)。 你能告诉我有什么问题吗。。。 这是我的代码:- -------MYWINRTComponet(project) -----

我有一个DLL,它是使用VisualStudio11作为WINRT组件构建的。在DLL中,我有一个函数调用readStructValues(MYStruct*s)。 我已将Dll添加到我的项目中。我的项目是使用CPP代码构建的。当我打电话给 readStructValues(MYStruct*s)在我的项目中,它提供了默认值(在调用之前,我已经分配了一些值)。 你能告诉我有什么问题吗。。。 这是我的代码:-

-------MYWINRTComponet(project)
       ----------MyClass.h:-int readStructValues(MYStruct *s); 
       ----------MyClass.cpp:- int readStructuValues(MYStruct *s){
                                 returns->a;
                                  }
-------MyCPPProject (project) (added the reference of MYWINRTComponent.dll)
          -----------MyCPp.cpp:-
                     MySTruct s={10,20};
                    int remoteResult = readStructValues(&s);

这是在VisualStudio 2011中完成的。….*.

什么是Visual Studio 2011?和Windows 8?您来自未来吗?嘿,jp2code,查看它以了解更多信息。您可能没有听说过新的操作系统和开发环境。