Click here to Skip to main content
15,895,667 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionActiveX and Windows C++ Pin
ashok12314-Sep-05 11:26
ashok12314-Sep-05 11:26 
QuestionC++ classes for CSV database Pin
simplysanju14-Sep-05 5:38
simplysanju14-Sep-05 5:38 
AnswerRe: C++ classes for CSV database Pin
Christian Graus14-Sep-05 11:25
protectorChristian Graus14-Sep-05 11:25 
AnswerRe: C++ classes for CSV database Pin
da_comp_learner15-Sep-05 19:20
da_comp_learner15-Sep-05 19:20 
GeneralRe: C++ classes for CSV database Pin
simplysanju15-Sep-05 21:32
simplysanju15-Sep-05 21:32 
QuestionProgramming "Language" Pin
LiYS13-Sep-05 23:39
LiYS13-Sep-05 23:39 
AnswerRe: Programming "Language" Pin
Christian Graus14-Sep-05 11:27
protectorChristian Graus14-Sep-05 11:27 
QuestionSOAP Client - Create Instance problem - invalid pointer Pin
leventozgur13-Sep-05 22:33
leventozgur13-Sep-05 22:33 
Hello,

We are developing a C++ SOAP client program by using MSSOAPLib. Our development environment is Windows Xp Professional, Visual Studio .NET 2003. Our program works correctly in Xin Xp (local computer). But with Windows 2000, it fails in some computers and works correctly in some other.

Our code is below, the failure point in Win2000 computer is the part where we create the ISoapConnectorPtr object (int hr = Connector.CreateInstance(__uuidof(HttpConnector));)

The CreateInstance method returns the following log:

////////// LOG ////////////////////////////////////////////////////
2005-08-14 08:48:17 - http://127.0.0.1/WebServiceBetek/Service.asmx
2005-08-14 08:48:17 - 2
2005-08-14 08:48:17 - CreateInstance Method
2005-08-14 08:48:17 - Function Return = -2147221164
2005-08-14 08:48:17 - 2.1.1
2005-08-14 08:48:17 - COM ERROR
2005-08-14 08:48:17 -
2005-08-14 08:48:17 - Invalid pointer
2005-08-14 08:48:17 - Error
2005-08-14 08:48:17 - Code = 80004003
2005-08-14 08:48:17 - Code meaning = Invalid pointer
2005-08-14 08:48:17 - Source = (null)
////////// LOG ////////////////////////////////////////////////////


So we have the invalid pointer problem (80004003). But there is no failure with WinXP computers and some other Win2000 computers. As I said above, all computers seem to have the same configuration : Microsof .NET Framework 1.1, MS SOAP Toolkit 3.0 and necessary service packs.

What can be the reason for this failure?



////////// CODE ////////////////////////////////////////////////////
#import "msxml3.dll"
using namespace MSXML2;

#import "C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll" \
exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", \
"_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
using namespace MSSOAPLib;

CString strRequest;

CoInitialize(NULL);

ISoapSerializerPtr Serializer = NULL;
ISoapReaderPtr Reader = NULL;
ISoapConnectorPtr Connector = NULL;

CString strFsmsWebServiceUrl = "http://127.0.0.1/WebServiceBetek/Service.asmx";

printf("WEB SERVICE URL");
printf(strFsmsWebServiceUrl.GetBuffer());
printf("2");
// Connect to the service
int hr = Connector.CreateInstance(__uuidof(HttpConnector));



printf("\nCreateInstance Method\n");
char szErrorTemp[100];
memset(szErrorTemp,0,sizeof(szErrorTemp));

sprintf(szErrorTemp,"\tFunction Return = %d\n", hr);
printf(szErrorTemp);

printf("\n2.1.1\n");

Connector->Property["Timeout"] = "10000";
////////// CODE ////////////////////////////////////////////////////


AnswerRe: SOAP Client - Create Instance problem - invalid pointer Pin
prasad_som14-Sep-05 3:09
prasad_som14-Sep-05 3:09 
Questionwhat the hell is this and why Pin
keshava shukla13-Sep-05 19:08
keshava shukla13-Sep-05 19:08 
AnswerRe: what the hell is this and why Pin
toxcct13-Sep-05 21:09
toxcct13-Sep-05 21:09 
AnswerRe: what the hell is this and why Pin
bugDanny15-Sep-05 8:27
bugDanny15-Sep-05 8:27 
GeneralRe: what the hell is this and why Pin
keshava shukla12-Oct-05 10:26
keshava shukla12-Oct-05 10:26 
QuestionHow to write c++ prog in MSVisual Studio.net2003? Pin
mcnu13-Sep-05 6:05
mcnu13-Sep-05 6:05 
AnswerRe: How to write c++ prog in MSVisual Studio.net2003? Pin
Christian Graus13-Sep-05 12:11
protectorChristian Graus13-Sep-05 12:11 
GeneralRe: How to write c++ prog in MSVisual Studio.net2003? Pin
mcnu13-Sep-05 15:19
mcnu13-Sep-05 15:19 
Questionwhy the function didn`t working? Pin
mcnu13-Sep-05 3:06
mcnu13-Sep-05 3:06 
AnswerRe: why the function didn`t working? Pin
Cedric Moonen13-Sep-05 3:53
Cedric Moonen13-Sep-05 3:53 
AnswerRe: why the function didn`t working? Pin
toxcct13-Sep-05 4:38
toxcct13-Sep-05 4:38 
GeneralRe: why the function didn`t working? Pin
mcnu13-Sep-05 5:54
mcnu13-Sep-05 5:54 
GeneralRe: why the function didn`t working? Pin
Cedric Moonen13-Sep-05 20:24
Cedric Moonen13-Sep-05 20:24 
GeneralRe: why the function didn`t working? Pin
toxcct13-Sep-05 21:12
toxcct13-Sep-05 21:12 
QuestionC1010 Error Pin
cjbaltar12-Sep-05 16:43
cjbaltar12-Sep-05 16:43 
AnswerRe: C1010 Error Pin
Christian Graus12-Sep-05 16:53
protectorChristian Graus12-Sep-05 16:53 
GeneralRe: C1010 Error Pin
cjbaltar12-Sep-05 17:36
cjbaltar12-Sep-05 17:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.