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

Managed C++/CLI

 
Questionoperator '*' Pin
LiYS14-Sep-05 22:26
LiYS14-Sep-05 22:26 
AnswerRe: operator '*' Pin
prasad_som14-Sep-05 23:18
prasad_som14-Sep-05 23:18 
GeneralRe: operator '*' Pin
LiYS14-Sep-05 23:50
LiYS14-Sep-05 23:50 
GeneralRe: operator '*' Pin
prasad_som15-Sep-05 0:19
prasad_som15-Sep-05 0:19 
GeneralRe: operator '*' Pin
bugDanny15-Sep-05 8:11
bugDanny15-Sep-05 8:11 
AnswerRe: operator '*' Pin
prasad_som15-Sep-05 18:48
prasad_som15-Sep-05 18:48 
GeneralRe: operator '*' Pin
bugDanny16-Sep-05 2:50
bugDanny16-Sep-05 2:50 
GeneralRe: operator '*' Pin
toxcct15-Sep-05 20:56
toxcct15-Sep-05 20:56 
QuestionNative vs Managed Pin
smch14-Sep-05 20:37
smch14-Sep-05 20:37 
AnswerRe: Native vs Managed Pin
Christian Graus15-Sep-05 11:33
protectorChristian Graus15-Sep-05 11:33 
Questionwhy the file is not opening? Pin
mcnu14-Sep-05 16:12
mcnu14-Sep-05 16:12 
AnswerRe: why the file is not opening? Pin
prasad_som14-Sep-05 19:40
prasad_som14-Sep-05 19:40 
GeneralRe: why the file is not opening? Pin
mcnu15-Sep-05 4:11
mcnu15-Sep-05 4:11 
GeneralRe: why the file is not opening? Pin
Achim Klein17-Sep-05 16:28
Achim Klein17-Sep-05 16:28 
GeneralRe: why the file is not opening? Pin
mcnu17-Sep-05 17:53
mcnu17-Sep-05 17:53 
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 

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.