Click here to Skip to main content
15,886,873 members
Home / Discussions / COM
   

COM

 
AnswerRe: Unable to register COM dll in Vista Pin
robo5557-May-08 19:51
robo5557-May-08 19:51 
QuestionPause a Download using COM in iTunes? Pin
asalyon6-May-08 14:44
asalyon6-May-08 14:44 
GeneralRemoving COM dll from memory Pin
sandeepkavade29-Apr-08 1:17
sandeepkavade29-Apr-08 1:17 
GeneralRe: Removing COM dll from memory Pin
Jörgen Sigvardsson30-Apr-08 23:58
Jörgen Sigvardsson30-Apr-08 23:58 
GeneralAuthentication Pin
ginjikun28-Apr-08 22:26
ginjikun28-Apr-08 22:26 
QuestionHow to Embed MFC ActivexControl in C# Windows Application? Pin
spalanivel28-Apr-08 19:25
spalanivel28-Apr-08 19:25 
AnswerRe: How to Embed MFC ActivexControl in C# Windows Application? Pin
Jörgen Sigvardsson1-May-08 0:01
Jörgen Sigvardsson1-May-08 0:01 
QuestionVBScript, how to use VT_BSTR? Pin
lucy28-Apr-08 8:43
lucy28-Apr-08 8:43 
I am new to COM and VBSCript. I am trying to get an automation function to return a status text string, so when writing script, the tester knows the status of an object under test.

This is how I declare and define the function:

DISP_FUNCTION(CScriptObject, "GetStatus", GetStatus, VT_BSTR, VTS_BSTR VTS_I4 VTS_BSTR)

BSTR CScriptObject::GetStatus(LPCTSTR Item, int ID, LPCTSTR WhichStatus)
{
return L("test");
}

the script is as follows:
dim string;
string = GetStatus "Item-A", 120, "Dummy"

When running it, virtual HRESULT __stdcall OnScriptError(IActiveScriptError *pscriptError) gives me the an error message, saying "string = GetStatus "Item-A", 120, "Dummy"" has error.
But running (GetStatus "Item-A", 120, "Dummy") alone is ok. By "ok" I mean the automation function "GetStatus" will be called.

Any idea how to have "GetStatus" to return some test string which can be used by VBScript? Thank you very much in advance!
AnswerRe: VBScript, how to use VT_BSTR? Pin
Vi228-Apr-08 19:44
Vi228-Apr-08 19:44 
GeneralRe: VBScript, how to use VT_BSTR? Pin
lucy29-Apr-08 5:49
lucy29-Apr-08 5:49 
GeneralRe: VBScript, how to use VT_BSTR? Pin
lucy2-Jul-08 11:27
lucy2-Jul-08 11:27 
QuestionIs there a .NET equivalent for an out-of-process COM EXE server? Pin
Philip Laureano27-Apr-08 1:56
Philip Laureano27-Apr-08 1:56 
AnswerRe: Is there a .NET equivalent for an out-of-process COM EXE server? Pin
Lim Bio Liong30-Apr-08 19:42
Lim Bio Liong30-Apr-08 19:42 
Generalaggrrgation and non aggregation Pin
Member 470820223-Apr-08 21:39
Member 470820223-Apr-08 21:39 
GeneralRe: aggrrgation and non aggregation Pin
Jörgen Sigvardsson1-May-08 0:04
Jörgen Sigvardsson1-May-08 0:04 
QuestionA basic question ? Pin
Member 470820223-Apr-08 21:01
Member 470820223-Apr-08 21:01 
AnswerRe: A basic question ? Pin
CPallini23-Apr-08 21:23
mveCPallini23-Apr-08 21:23 
GeneralRe: A basic question ? Pin
Member 470820223-Apr-08 21:30
Member 470820223-Apr-08 21:30 
Questionwindows media player plugin Pin
Member 387187821-Apr-08 20:47
Member 387187821-Apr-08 20:47 
AnswerRe: windows media player plugin Pin
Michael Dunn28-Apr-08 11:11
sitebuilderMichael Dunn28-Apr-08 11:11 
QuestionHow to convert COM dll to Normal dll Pin
Prazwol21-Apr-08 20:01
Prazwol21-Apr-08 20:01 
GeneralRe: How to convert COM dll to Normal dll Pin
Mike Dimmick22-Apr-08 2:41
Mike Dimmick22-Apr-08 2:41 
QuestionHow to get DSFDevice from DSFDevices collection (simulated a EHCI controller):sigh: :sigh: [modified] Pin
XuanThinh TRAN21-Apr-08 16:58
XuanThinh TRAN21-Apr-08 16:58 
GeneralRe: How to get DSFDevice from DSFDevices collection (simulated a EHCI controller):sigh: :sigh: Pin
User 21559722-Apr-08 2:51
User 21559722-Apr-08 2:51 
GeneralRe: How to get DSFDevice from DSFDevices collection (simulated a EHCI controller):sigh: :sigh: Pin
Vi222-Apr-08 17:28
Vi222-Apr-08 17:28 

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.