DCOM Server - With User Defined Datatype - Crashes! 
Author Message
 DCOM Server - With User Defined Datatype - Crashes!

Hi,

I have a DCOM server(EXE) built with the ATL-COM AppWizard. I have added a
custom interface IInfo and added some methhods to it.The methods which have
out values as long* or BSTR* work fine with correct values. But when i
included my own structure;

typedef struct tag_CLIENTINFO {

 TCHAR szClientName[32];
 TCHAR szClientIP[32];
 TCHAR szClientMAC[32];

Quote:
} CLIENTINFO, *LPCLIENTINFO;

[helpstring("method HelloServer")] HRESULT HelloServer([out] LPDWORD
lpdwNumber, [out] LPCLIENTINFO lpClientInfo);

as a parameter to a method, whenever i call this method from the client
program it either crashes or throws an excetion with a failed HRESULT, with
no proper values

what is the problem here? is there any problem in passing user defined
strutures, do we need to do custom marshalling for this?

pls help!
thanks
Anand



Wed, 09 Nov 2005 20:21:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problems with DCOM SERVER under interactiv user

2. Calling SQL Server User Defined Functions

3. Defining Boolean datatype!

4. Datatype support in ATL Server Web Services

5. Problem With Decimal Datatype From SQL Server

6. Getting text datatype from SQL Server with MFC ODBC library

7. Getting text datatype from SQL Server with MFC ODBC library

8. Numeric DataType in SQL SERVER

9. C++ Datatypes and OS Datatypes :: C++

10. Freeing DCOM objects following a remote client crash?

11. DCom crash course

12. DCOM multiple user problem

 

 
Powered by phpBB® Forum Software