Click here to Skip to main content
15,911,315 members
Home / Discussions / COM
   

COM

 
QuestionInheriting CoClass methods. Pin
sandeepkavade2-May-07 22:44
sandeepkavade2-May-07 22:44 
AnswerRe: Inheriting CoClass methods. Pin
CPallini3-May-07 2:17
mveCPallini3-May-07 2:17 
GeneralRe: Inheriting CoClass methods. Pin
aatul3-May-07 3:24
aatul3-May-07 3:24 
GeneralRe: Inheriting CoClass methods. Pin
CPallini3-May-07 3:40
mveCPallini3-May-07 3:40 
Questionfatal error C1083:Cannot open source file:'.\BSTester_p.c':No such file or directory Pin
Ankit Aneja2-May-07 3:06
Ankit Aneja2-May-07 3:06 
QuestionPassing a structure through VARIANT from VC++ Client to COM Server [modified] Pin
georgekjolly2-May-07 1:40
georgekjolly2-May-07 1:40 
AnswerRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
CPallini2-May-07 1:54
mveCPallini2-May-07 1:54 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
georgekjolly2-May-07 2:21
georgekjolly2-May-07 2:21 
Hi Pallini,

My code is given below

/************Client Side****************************************/
typedef struct
{
int i;
char ch[10];
}StrctMine;


VARIANT vrt;
StrctMine gOb;
gOb.i = 10;
strcpy(gOb.ch,"geo");
vrt.vt = VT_BYREF;
vrt.byref = (void*)&gOb;
myPtr.CreateInstance(__uuidof(MyVar));
myPtr->VarFun(&vrt);

/*************************************************/

In Server side , I have written my structure in idl file, And I called a method , that is given below.

STDMETHODIMP CMyVar::VarFun(VARIANT *vPtr_i)
{
// TODO: Add your implementation code here
MessageBox(NULL,"Hai","",MB_OK);

return S_OK;
}

But this code is not working.

Thanks
George

GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Michael Dunn2-May-07 8:00
sitebuilderMichael Dunn2-May-07 8:00 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
CPallini2-May-07 9:53
mveCPallini2-May-07 9:53 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Lim Bio Liong6-May-07 1:03
Lim Bio Liong6-May-07 1:03 
GeneralRe: Passing a structure through VARIANT from VC++ Client to COM Server Pin
Lim Bio Liong7-May-07 5:40
Lim Bio Liong7-May-07 5:40 
Questionconverting COM object to an ActiveX control Pin
Abu Mami1-May-07 2:26
Abu Mami1-May-07 2:26 
AnswerRe: converting COM object to an ActiveX control Pin
CPallini1-May-07 10:15
mveCPallini1-May-07 10:15 
GeneralRe: converting COM object to an ActiveX control Pin
Abu Mami1-May-07 20:13
Abu Mami1-May-07 20:13 
GeneralRe: converting COM object to an ActiveX control Pin
CPallini1-May-07 21:28
mveCPallini1-May-07 21:28 
GeneralRe: converting COM object to an ActiveX control Pin
Abu Mami2-May-07 2:59
Abu Mami2-May-07 2:59 
QuestionOLE DB Notification Pin
x_yan_y27-Apr-07 22:18
x_yan_y27-Apr-07 22:18 
QuestionDOM object transfers from C# to C++ Pin
DaveLand27-Apr-07 15:51
DaveLand27-Apr-07 15:51 
QuestionBeginner In COM where to start first? Pin
viral_umang@hotmail.com26-Apr-07 20:26
viral_umang@hotmail.com26-Apr-07 20:26 
AnswerRe: Beginner In COM where to start first? Pin
Roger Stoltz26-Apr-07 21:16
Roger Stoltz26-Apr-07 21:16 
AnswerRe: Beginner In COM where to start first? Pin
lafleon27-Apr-07 9:00
lafleon27-Apr-07 9:00 
AnswerRe: Beginner In COM where to start first? Pin
User 21559727-Apr-07 12:04
User 21559727-Apr-07 12:04 
AnswerRe: Beginner In COM where to start first? Pin
Michael Dunn28-Apr-07 18:26
sitebuilderMichael Dunn28-Apr-07 18:26 
AnswerRe: Beginner In COM where to start first? Pin
georgekjolly2-May-07 1:50
georgekjolly2-May-07 1:50 

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.