Click here to Skip to main content
15,910,009 members
Home / Discussions / COM
   

COM

 
QuestionWrite a IE toolbar by VS 2005 Pin
saminjesus29-Jan-07 22:31
saminjesus29-Jan-07 22:31 
AnswerRe: Write a IE toolbar by VS 2005 Pin
prasad_som29-Jan-07 23:03
prasad_som29-Jan-07 23:03 
GeneralRe: Write a IE toolbar by VS 2005 Pin
saminjesus30-Jan-07 14:46
saminjesus30-Jan-07 14:46 
AnswerRe: Write a IE toolbar by VS 2005 Pin
prasad_som30-Jan-07 17:06
prasad_som30-Jan-07 17:06 
GeneralRe: Write a IE toolbar by VS 2005 Pin
saminjesus31-Jan-07 16:01
saminjesus31-Jan-07 16:01 
AnswerRe: Write a IE toolbar by VS 2005 Pin
host287-Feb-07 15:04
host287-Feb-07 15:04 
QuestionUnknown fault trying connect to an OPC-Server Pin
Biasto29-Jan-07 20:05
Biasto29-Jan-07 20:05 
AnswerRe: Unknown fault trying connect to an OPC-Server Pin
User 21559730-Jan-07 1:12
User 21559730-Jan-07 1:12 
Please check the reference count.

Biasto wrote:
// Queue of Class-Instances to create
LONG cmq = 1; // number of class instances to create
MULTI_QI queue[1] = {{&IID_IOPCBrowseServerAddressSpace,
NULL,
0}};

//Create an instance of the IOPCBrowse
hr = CoCreateInstanceEx(CLSID_OPCServer, NULL, CLSCTX_SERVER, /*&CoServerInfo */ NULL,
cmq, queue);
ShowError(hr);


// Return Pointer to the IOPCBrowse Interface
return(IOPCBrowseServerAddressSpace*) queue[0].pItf;
}


Just curios, If you retrieve only one instance then why are you using CoCreateInstanceEx?

S o h a i l K a d i w a l a

To Err Is Human; to Debug, Divine


modified 21-Apr-21 21:01pm.

GeneralRe: Unknown fault trying connect to an OPC-Server Pin
Biasto30-Jan-07 3:19
Biasto30-Jan-07 3:19 
QuestionWhen Servers Crash! Pin
Michael Bergman29-Jan-07 8:50
Michael Bergman29-Jan-07 8:50 
QuestionFocus-Problem with IWebBrowser2 Pin
steven1129-Jan-07 4:31
steven1129-Jan-07 4:31 
QuestionWindows Media Server 9 and IWMSBufferAllocator Pin
Tili29-Jan-07 0:08
Tili29-Jan-07 0:08 
QuestionHow do i do a dialog from vbscript Pin
markpetryk29-Jan-07 0:05
markpetryk29-Jan-07 0:05 
QuestionList all network interfaces (offline and online) Pin
Fabricio Godoy26-Jan-07 7:38
Fabricio Godoy26-Jan-07 7:38 
Questionhow to use tlbinf32.dll Pin
huangdingjun25-Jan-07 14:12
huangdingjun25-Jan-07 14:12 
AnswerRe: how to use tlbinf32.dll Pin
User 21559726-Jan-07 6:12
User 21559726-Jan-07 6:12 
GeneralRe: how to use tlbinf32.dll Pin
huangdingjun30-Jan-07 16:17
huangdingjun30-Jan-07 16:17 
QuestionCOM objects all unregistered Pin
Marcus J. Smith24-Jan-07 0:29
professionalMarcus J. Smith24-Jan-07 0:29 
AnswerRe: COM objects all unregistered Pin
Roger Stoltz24-Jan-07 1:14
Roger Stoltz24-Jan-07 1:14 
JokeRe: COM objects all unregistered Pin
User 21559724-Jan-07 5:37
User 21559724-Jan-07 5:37 
GeneralRe: COM objects all unregistered Pin
Marcus J. Smith27-Jan-07 2:54
professionalMarcus J. Smith27-Jan-07 2:54 
GeneralRe: COM objects all unregistered Pin
prasad_som25-Jan-07 17:05
prasad_som25-Jan-07 17:05 
QuestionSending command through serial port - error Overlapped I/O operation in process Pin
Matt_deveau23-Jan-07 11:30
Matt_deveau23-Jan-07 11:30 
AnswerRe: Sending command through serial port - error Overlapped I/O operation in process Pin
Tim Paaschen23-Jan-07 19:21
Tim Paaschen23-Jan-07 19:21 
QuestionRetrieve Com-Object which implements interface Pin
rncwnd22-Jan-07 5:57
rncwnd22-Jan-07 5:57 

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.