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

COM

 
GeneralGetting SafeArray** in C++ from VB COM Pin
hanofee12-May-05 22:59
hanofee12-May-05 22:59 
GeneralConverting interface pointers Pin
Mikke_x12-May-05 19:20
Mikke_x12-May-05 19:20 
GeneralRe: Converting interface pointers Pin
ursus zeta15-May-05 9:48
ursus zeta15-May-05 9:48 
GeneralStrange behavior of BSTRs in DCOM Pin
morenz12-May-05 3:01
morenz12-May-05 3:01 
GeneralRe: Strange behavior of BSTRs in DCOM Pin
Indagro12-May-05 20:54
Indagro12-May-05 20:54 
GeneralRe: Strange behavior of BSTRs in DCOM Pin
morenz16-May-05 5:19
morenz16-May-05 5:19 
GeneralRe: Strange behavior of BSTRs in DCOM Pin
Indagro18-May-05 23:35
Indagro18-May-05 23:35 
GeneralRe: Strange behavior of BSTRs in DCOM Pin
morenz20-May-05 13:08
morenz20-May-05 13:08 
OK, I tried to follow your tip and went into trouble again (i'm not SO experiencedLaugh | :laugh: ).
Most of my server Interface's methods use the BSTR type. I tried to change it, but now I need to know how to declare the _bstr_t type in my IDL file. I tried using both import and include (with and without #) WTYPES.H (where _bstr_t is defined) and it seemed not to work (preprocessor error). How to declare it?

Another STRAAAAANGE thing is that it fails calling methods that has three int parameters... I know that native C types do not need to be marsaled, am I right?
i.e.:

theApp.m_pIHello->SetLocation (2,1,0)

seems to fail, where function prototype in server side is

STDMETHODTYPE CHardwareAsset::SetLocation (int Master, int slot, int SubAssy)

I put a statement to log on a file somw phrases just to know where the program goes and what it does, but when I call the method above, the server creates the object, but does NOT log the SetLocation Fu8nction (the logFile statement is the first, just before variable declaration!)

Very strange, isn't it? Or it's me that need to return to school and study a lot? Laugh | :laugh:

Thanks again...
GeneralRe: Strange behavior of BSTRs in DCOM Pin
Vi212-May-05 21:08
Vi212-May-05 21:08 
GeneralRe: Strange behavior of BSTRs in DCOM Pin
morenz16-May-05 2:52
morenz16-May-05 2:52 
GeneralMS Excel 10.0 object library Pin
Member 164882912-May-05 0:55
Member 164882912-May-05 0:55 
GeneralNeed help in NetMeeting Desktop Sharing Pin
shainisnair12-May-05 0:46
shainisnair12-May-05 0:46 
GeneralUsing two .tlb files which has same class/interface Pin
jabhi197411-May-05 21:26
jabhi197411-May-05 21:26 
GeneralRe: Using two .tlb files which has same class/interface Pin
Indagro12-May-05 21:08
Indagro12-May-05 21:08 
GeneralMTS packages Pin
Pavneet Singh10-May-05 0:58
Pavneet Singh10-May-05 0:58 
GeneralRe: MTS packages Pin
Rizwan Bashir10-May-05 23:22
Rizwan Bashir10-May-05 23:22 
GeneralRe: MTS packages Pin
Pavneet Singh12-May-05 9:03
Pavneet Singh12-May-05 9:03 
GeneralRe: MTS packages Pin
Rizwan Bashir12-May-05 22:34
Rizwan Bashir12-May-05 22:34 
GeneralCOM+ association with Date Pin
Rizwan Bashir7-May-05 2:03
Rizwan Bashir7-May-05 2:03 
GeneralEmbed Exectuable Pin
zx2c46-May-05 15:16
zx2c46-May-05 15:16 
GeneralRe: Embed Exectuable Pin
Jörgen Sigvardsson6-May-05 23:21
Jörgen Sigvardsson6-May-05 23:21 
GeneralRe: Embed Exectuable Pin
zx2c47-May-05 5:52
zx2c47-May-05 5:52 
QuestionHow to initialize a ActiveX picture? Pin
ben.tsang6-May-05 3:44
ben.tsang6-May-05 3:44 
GeneralCan't Seem To Use COM+ By Remoting Pin
micdevnet5-May-05 23:02
micdevnet5-May-05 23:02 
QuestionHow I Read MBR Master Boot Record Pin
shahzad Ahmed5-May-05 21:18
shahzad Ahmed5-May-05 21:18 

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.