Click here to Skip to main content
15,949,686 members
Home / Discussions / COM
   

COM

 
QuestionHosting a .NET 2.0 winfom in MFC COM C++ 2003 Pin
AbhishekBK27-Aug-09 0:01
AbhishekBK27-Aug-09 0:01 
QuestionHow to do the CoCreateInstance Pin
deadlyabbas26-Aug-09 21:56
deadlyabbas26-Aug-09 21:56 
AnswerRe: How to do the CoCreateInstance Pin
Stuart Dootson26-Aug-09 22:13
professionalStuart Dootson26-Aug-09 22:13 
GeneralRe: How to do the CoCreateInstance Pin
deadlyabbas26-Aug-09 22:52
deadlyabbas26-Aug-09 22:52 
GeneralRe: How to do the CoCreateInstance Pin
Stuart Dootson26-Aug-09 23:07
professionalStuart Dootson26-Aug-09 23:07 
GeneralRe: How to do the CoCreateInstance Pin
deadlyabbas27-Aug-09 1:36
deadlyabbas27-Aug-09 1:36 
GeneralRe: How to do the CoCreateInstance Pin
Stuart Dootson27-Aug-09 1:58
professionalStuart Dootson27-Aug-09 1:58 
QuestionHow to get the CLSID of a COM DLL Pin
deadlyabbas26-Aug-09 21:04
deadlyabbas26-Aug-09 21:04 
Hi,
Following is the code I am trying to do

#import "C:\\Program Files\\BOSS\\SUPPORT\\RealDWG\\cf2407.dll" rename_namespace("CADFilter")

AcRx::AppRetCode acrxEntryPoint (AcRx::AppMsgCode Msg,
void* AppId)
{
// local variables
int cindex;

CADFilter::NW_IDocument *m_pIDocument;
CLSID clsid;
CoInitialize (NULL);
HRESULT hr = CLSIDFromProgID(LPCOLESTR("NW_Document"), &;clsid );
hr = CoCreateInstance( clsid, NULL,CLSCTX_ALL , __uuidof(CADFilter::NW_IDocument) , (void**)&m_pIDocument );
if(SUCCEEDED(hr))
{
AfxMessageBox(_T("Hi"));
}

}But I am getting an " HRESULT hr as an "Invalid class string"
AnswerRe: How to get the CLSID of a COM DLL Pin
Stuart Dootson26-Aug-09 22:10
professionalStuart Dootson26-Aug-09 22:10 
Questiondebug with /embedding setting does not work on vista Pin
Fwzklmn26-Aug-09 8:15
Fwzklmn26-Aug-09 8:15 
Questionvista security and out-of-proc COM servers Pin
WayneS21-Aug-09 4:18
WayneS21-Aug-09 4:18 
QuestionInvokeHelper Pin
MsmVc21-Aug-09 0:37
MsmVc21-Aug-09 0:37 
AnswerRe: InvokeHelper Pin
Vi221-Aug-09 1:07
Vi221-Aug-09 1:07 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 1:18
MsmVc21-Aug-09 1:18 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 1:30
Vi221-Aug-09 1:30 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 1:41
MsmVc21-Aug-09 1:41 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 1:44
Vi221-Aug-09 1:44 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 1:50
MsmVc21-Aug-09 1:50 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 2:09
Vi221-Aug-09 2:09 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 2:23
MsmVc21-Aug-09 2:23 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 2:32
Vi221-Aug-09 2:32 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 2:46
MsmVc21-Aug-09 2:46 
GeneralRe: InvokeHelper Pin
Vi221-Aug-09 2:51
Vi221-Aug-09 2:51 
GeneralRe: InvokeHelper Pin
MsmVc21-Aug-09 3:00
MsmVc21-Aug-09 3:00 
GeneralRe: InvokeHelper Pin
MsmVc23-Aug-09 19:48
MsmVc23-Aug-09 19:48 

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.