Click here to Skip to main content
15,888,461 members
Home / Discussions / COM
   

COM

 
GeneralConvert CString to BSTR Pin
mandanani10-Jan-08 20:05
mandanani10-Jan-08 20:05 
GeneralCross Post? Pin
CPallini10-Jan-08 22:10
mveCPallini10-Jan-08 22:10 
QuestionHow to draw Cutomized charts in Excel 2007....... Pin
student4919-Jan-08 4:12
student4919-Jan-08 4:12 
Generalerror C2259 Pin
Krishnatv8-Jan-08 18:35
Krishnatv8-Jan-08 18:35 
AnswerRe: error C2259 Pin
Lim Bio Liong9-Jan-08 0:20
Lim Bio Liong9-Jan-08 0:20 
GeneralRe: error C2259 Pin
Krishnatv9-Jan-08 17:53
Krishnatv9-Jan-08 17:53 
GeneralRe: error C2259 Pin
Lim Bio Liong9-Jan-08 19:35
Lim Bio Liong9-Jan-08 19:35 
QuestionHow to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 16:32
mandanani8-Jan-08 16:32 
I need to pass user defined COM class through COM interface. I passed its interface as I can not pass its coclass. Please correct me if I am wrong.

The code was compiling. Now the problem is I have some data types in the coclass and can not use them from interface.
Could you please let me know how to solve this.

Here below is the code:
//////////////////////////////////////////////////////////////////////<br />
STDMETHODIMP CTP_Interface_Wrp::GetObligorInputData(ITP_CompInputData_Wrp *pVal)<br />
{<br />
	AFX_MANAGE_STATE(AfxGetStaticModuleState())<br />
<br />
	// TODO: Add your implementation code here<br />
	<br />
	pTP_DLL_Interface->GetObligorInputData(pVal->pTP_CompanyInputData);   // Error here<br />
	return S_OK;<br />
}<br />
//////////////////////////////////////////////////////////////////////


Actually pTP_CompanyInputData is member vairable of TP_CompInputData coclass. This can not be accessed from its interface class ITP_CompInputData.

modified on Tuesday, January 08, 2008 10:43:01 PM

AnswerRe: How to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 20:42
mandanani8-Jan-08 20:42 
AnswerRe: How to access member functions of coclass from its Interface Pin
prasad_som9-Jan-08 1:29
prasad_som9-Jan-08 1:29 
QuestionHow to using C# Class Library in VC++/COM Pin
Member 42194196-Jan-08 23:45
Member 42194196-Jan-08 23:45 
GeneralRe: How to using C# Class Library in VC++/COM Pin
Mike Dimmick7-Jan-08 11:00
Mike Dimmick7-Jan-08 11:00 
GeneralCOM on MAC Operating System Pin
Gupta Suraj6-Jan-08 22:08
Gupta Suraj6-Jan-08 22:08 
GeneralATL_NO_VTABLE means ..... Pin
tasumisra6-Jan-08 18:18
tasumisra6-Jan-08 18:18 
GeneralRe: ATL_NO_VTABLE means ..... Pin
CPallini6-Jan-08 22:00
mveCPallini6-Jan-08 22:00 
GeneralRe: ATL_NO_VTABLE means ..... Pin
Mike Dimmick6-Jan-08 23:58
Mike Dimmick6-Jan-08 23:58 
QuestionHow to call a function in DLL Pin
chaitannya_m4-Jan-08 4:12
chaitannya_m4-Jan-08 4:12 
QuestionVS2008, MIDL compiler bug Pin
Gary Wheeler4-Jan-08 4:10
Gary Wheeler4-Jan-08 4:10 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick6-Jan-08 8:27
Mike Dimmick6-Jan-08 8:27 
GeneralRe: VS2008, MIDL compiler bug Pin
Gary Wheeler7-Jan-08 1:16
Gary Wheeler7-Jan-08 1:16 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick7-Jan-08 10:58
Mike Dimmick7-Jan-08 10:58 
GeneralRe: VS2008, MIDL compiler bug Pin
Gary Wheeler8-Jan-08 0:52
Gary Wheeler8-Jan-08 0:52 
GeneralRe: VS2008, MIDL compiler bug Pin
Mike Dimmick8-Jan-08 9:40
Mike Dimmick8-Jan-08 9:40 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
mla1543-Jan-08 10:05
mla1543-Jan-08 10:05 
GeneralRe: Calling ActiveX DLL from MFC - passing arrays Pin
CPallini3-Jan-08 10:53
mveCPallini3-Jan-08 10:53 

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.