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

COM

 
GeneralRe: pass character string to COM Pin
MKUser1-Jul-08 21:22
MKUser1-Jul-08 21:22 
GeneralRe: pass character string to COM Pin
CPallini1-Jul-08 22:05
mveCPallini1-Jul-08 22:05 
GeneralRe: pass character string to COM Pin
MKUser1-Jul-08 23:19
MKUser1-Jul-08 23:19 
QuestionRe: pass character string to COM Pin
CPallini1-Jul-08 23:33
mveCPallini1-Jul-08 23:33 
AnswerRe: pass character string to COM Pin
MKUser2-Jul-08 19:53
MKUser2-Jul-08 19:53 
GeneralRe: pass character string to COM Pin
CPallini2-Jul-08 21:18
mveCPallini2-Jul-08 21:18 
GeneralRe: pass character string to COM Pin
MKUser2-Jul-08 21:56
MKUser2-Jul-08 21:56 
GeneralRe: pass character string to COM Pin
CPallini2-Jul-08 22:08
mveCPallini2-Jul-08 22:08 
MKUser wrote:
inline _bstr_t IExportComDll::functionname( )

The above function returns a _bstr_t instance. Possibly it cannot assigned as it stands to as BSTR variable, hence you need either to
define st as _bstr_t, for instance
_bstr_t st;
st = YourCOMInterface->functionname();

or

use the Detach method of _bstr_t (see [^]), for instance
BSTR st;
st = (YourCOMInterface->functionname()).Detach();


Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

GeneralRe: pass character string to COM Pin
MKUser2-Jul-08 22:58
MKUser2-Jul-08 22:58 
GeneralRe: pass character string to COM Pin
Vi22-Jul-08 22:08
Vi22-Jul-08 22:08 
GeneralRe: pass character string to COM Pin
MKUser2-Jul-08 23:02
MKUser2-Jul-08 23:02 
GeneralRe: pass character string to COM Pin
Vi22-Jul-08 17:38
Vi22-Jul-08 17:38 
GeneralRe: pass character string to COM Pin
CPallini1-Jul-08 22:08
mveCPallini1-Jul-08 22:08 
GeneralRe: pass character string to COM Pin
CPallini1-Jul-08 3:25
mveCPallini1-Jul-08 3:25 
QuestionHow to add another activex control to web page dynamically. Pin
vies0028-Jun-08 22:28
vies0028-Jun-08 22:28 
AnswerRe: How to add another activex control to web page dynamically. Pin
pascal9181-Mar-10 16:48
pascal9181-Mar-10 16:48 
QuestionDefine a enum type variable on the Interface (ATL project) ? Pin
iman_kh27-Jun-08 10:31
iman_kh27-Jun-08 10:31 
AnswerRe: Define a enum type variable on the Interface (ATL project) ? Pin
Stephen Hewitt1-Jul-08 15:03
Stephen Hewitt1-Jul-08 15:03 
AnswerRe: Define a enum type variable on the Interface (ATL project) ? Pin
Vi21-Jul-08 17:33
Vi21-Jul-08 17:33 
QuestionPassing an array from an ActiveX class Pin
Hampus@foi26-Jun-08 2:55
Hampus@foi26-Jun-08 2:55 
AnswerRe: Passing an array from an ActiveX class Pin
KarstenK26-Jun-08 3:22
mveKarstenK26-Jun-08 3:22 
GeneralRe: Passing an array from an ActiveX class Pin
Hampus@foi26-Jun-08 3:39
Hampus@foi26-Jun-08 3:39 
AnswerRe: Passing an array from an ActiveX class Pin
Lim Bio Liong26-Jun-08 7:21
Lim Bio Liong26-Jun-08 7:21 
GeneralRe: Passing an array from an ActiveX class Pin
Hampus@foi26-Jun-08 20:40
Hampus@foi26-Jun-08 20:40 
GeneralRe: Passing an array from an ActiveX class Pin
Lim Bio Liong26-Jun-08 21:26
Lim Bio Liong26-Jun-08 21:26 

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.