Click here to Skip to main content
15,790,472 members
Home / Discussions / COM
   

COM

 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Member 772518029-Mar-16 2:16
Member 772518029-Mar-16 2:16 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Richard MacCutchan29-Mar-16 2:40
mveRichard MacCutchan29-Mar-16 2:40 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Member 772518029-Mar-16 11:10
Member 772518029-Mar-16 11:10 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Richard MacCutchan30-Mar-16 12:54
mveRichard MacCutchan30-Mar-16 12:54 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Getterdonne3-Sep-16 14:13
professionalGetterdonne3-Sep-16 14:13 
QuestionC# Invoking Context menu item programmatically. Pin
Member 1223225328-Mar-16 1:39
Member 1223225328-Mar-16 1:39 
QuestionCreating an IShellLink in .NET Pin
Richard Andrew x6429-Dec-15 16:42
professionalRichard Andrew x6429-Dec-15 16:42 
QuestionTrouble with implement Com Local Server Pin
Tri Cuong26-Sep-15 8:00
Tri Cuong26-Sep-15 8:00 
I'm writing a COM server exe using CLSCTX_LOCAL_SERVER as below.

1. COM Server

. Use IDL language to define a interfaceID, classID.

. Call CoRegisterClassObject to register a factory object

. I designed COM Server source code as below

class CMyFactory : public IClassFactory
{
};

class CMyObj : public IUnknown
{
-----class XSubClass : public IMyInterface
-----{
-----}m_subClass;
-----friend class CMyObj;
}

Before starting COM Server, I call CoRegisterClassObject to register factoryObject to system.

2. COM Client

. IMyInterface* pObj;
. CoGetClassObject(CLSID_CoMyObj, CLSCTX_LOCAL_SERVER, NULL, IID_IClassFactory, (void **) &pFac);

. pFac->CreateInstance(NULL,IID_interfaceID,(void**)&pObj);

However, the result of CreateInstance calling is "E_NOINTERFACE No such interface supported".

Could you please tell me the way to solve it?
AnswerRe: Trouble with implement Com Local Server Pin
Richard MacCutchan26-Sep-15 21:47
mveRichard MacCutchan26-Sep-15 21:47 
GeneralRe: Trouble with implement Com Local Server Pin
Tri Cuong3-Oct-15 8:29
Tri Cuong3-Oct-15 8:29 
GeneralRe: Trouble with implement Com Local Server Pin
Richard MacCutchan4-Oct-15 3:41
mveRichard MacCutchan4-Oct-15 3:41 
QuestionWhy is the resolution in SampleGrabber different from the resolution in IAMStreamConfig? Pin
garry.fang24-Jun-15 13:44
garry.fang24-Jun-15 13:44 
QuestionC#: Fixed Function ID in COM DLL Pin
DoxMan21-Apr-15 0:52
DoxMan21-Apr-15 0:52 
AnswerRe: C#: Fixed Function ID in COM DLL Pin
Richard Deeming21-Apr-15 3:37
mveRichard Deeming21-Apr-15 3:37 
AnswerRe: C#: Fixed Function ID in COM DLL Pin
F-ES Sitecore29-Apr-15 5:09
professionalF-ES Sitecore29-Apr-15 5:09 
QuestionIoleUndoManager with Excel application Pin
jaafar tribak6-Apr-15 6:28
jaafar tribak6-Apr-15 6:28 
QuestionEXCEL - Hooking Excel VTABLE Pin
jaafar tribak3-Apr-15 18:53
jaafar tribak3-Apr-15 18:53 
AnswerRe: EXCEL - Hooking Excel VTABLE Pin
jaafar tribak17-Apr-15 14:59
jaafar tribak17-Apr-15 14:59 
QuestionHow to generate an early-bound COM object in VS2013 Pin
CrewR4-Mar-15 7:50
CrewR4-Mar-15 7:50 
SuggestionHow to reference IWshRuntimeLibrary Pin
ThanhTrungDo2-Mar-15 18:24
professionalThanhTrungDo2-Mar-15 18:24 
GeneralRe: How to reference IWshRuntimeLibrary Pin
Richard MacCutchan2-Mar-15 22:27
mveRichard MacCutchan2-Mar-15 22:27 
QuestionRegistration Free COM / COM Interop Pin
Michael Salzlechner8-Feb-15 4:28
Michael Salzlechner8-Feb-15 4:28 
AnswerRe: Registration Free COM / COM Interop Pin
F-ES Sitecore2-Mar-15 5:55
professionalF-ES Sitecore2-Mar-15 5:55 
GeneralRe: Registration Free COM / COM Interop Pin
DriveByCoder24-Mar-15 8:18
professionalDriveByCoder24-Mar-15 8:18 
GeneralRe: Registration Free COM / COM Interop Pin
F-ES Sitecore24-Mar-15 9:12
professionalF-ES Sitecore24-Mar-15 9:12 

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.