Tuesday, January 19, 2016

Call webservcie error in smartphone project.




            


Create a new smartphone C ++ project. Add a webservice reference. Compile error:
Error 1 fatal error C1189: #error: atlsoap.h requires Windows CE platform to have DCOM support or _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined C:. \ Program Files \ Microsoft Visual Studio 8 \ VC \ ce \ atlmfc \ include \ atlsoap.h 8101
what to do?
Environment: winXP VS2005
Reply:
I do not know, csdn be closed down, Jietie it Sectional gave me
Reply:
Installed about the latest SDK plus VS 2005 SP1 and try .net2.0 SP2.
Haha
Upstairs really the brush.

Reply:
Met!

Plus the definition Stdafx:

#define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA on OK
Reply:
The main floor to see the error learn, people say a: "_ CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA needs to be defined"

In addition, remind the landlord, to invoke the Web Service function, COM have to be initialized. At least, I PPC in development projects, did otherwise, Web Service function did not respond ...
Reply:
Well, I agreed upstairs, the error message said very clearly, _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA the com need to define, so you add #define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA should be on it

No comments:

Post a Comment