Click here to Skip to main content
15,434,215 members
Home / Discussions / COM
   

COM

 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Member 772518029-Mar-16 1:16
MemberMember 772518029-Mar-16 1:16 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Richard MacCutchan29-Mar-16 1:40
mveRichard MacCutchan29-Mar-16 1:40 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Member 772518029-Mar-16 10:10
MemberMember 772518029-Mar-16 10:10 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Richard MacCutchan30-Mar-16 11:54
mveRichard MacCutchan30-Mar-16 11:54 
GeneralRe: Create a new system Calendar for Windows (unmanaged code) Pin
Getterdonne3-Sep-16 13:13
professionalGetterdonne3-Sep-16 13:13 
QuestionC# Invoking Context menu item programmatically. Pin
Member 1223225328-Mar-16 0:39
MemberMember 1223225328-Mar-16 0:39 
QuestionCreating an IShellLink in .NET Pin
Richard Andrew x6429-Dec-15 15:42
professionalRichard Andrew x6429-Dec-15 15:42 
QuestionTrouble with implement Com Local Server Pin
Tri Cuong26-Sep-15 7:00
MemberTri Cuong26-Sep-15 7: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 20:47
mveRichard MacCutchan26-Sep-15 20:47 
GeneralRe: Trouble with implement Com Local Server Pin
Tri Cuong3-Oct-15 7:29
MemberTri Cuong3-Oct-15 7:29 
GeneralRe: Trouble with implement Com Local Server Pin
Richard MacCutchan4-Oct-15 2:41
mveRichard MacCutchan4-Oct-15 2:41 
QuestionWhy is the resolution in SampleGrabber different from the resolution in IAMStreamConfig? Pin
garry.fang24-Jun-15 12:44
Membergarry.fang24-Jun-15 12:44 
QuestionC#: Fixed Function ID in COM DLL Pin
DoxMan20-Apr-15 23:52
MemberDoxMan20-Apr-15 23:52 
AnswerRe: C#: Fixed Function ID in COM DLL Pin
Richard Deeming21-Apr-15 2:37
mveRichard Deeming21-Apr-15 2:37 
AnswerRe: C#: Fixed Function ID in COM DLL Pin
F-ES Sitecore29-Apr-15 4:09
professionalF-ES Sitecore29-Apr-15 4:09 
QuestionIoleUndoManager with Excel application Pin
jaafar tribak6-Apr-15 5:28
Memberjaafar tribak6-Apr-15 5:28 
QuestionEXCEL - Hooking Excel VTABLE Pin
jaafar tribak3-Apr-15 17:53
Memberjaafar tribak3-Apr-15 17:53 
AnswerRe: EXCEL - Hooking Excel VTABLE Pin
jaafar tribak17-Apr-15 13:59
Memberjaafar tribak17-Apr-15 13:59 
QuestionHow to generate an early-bound COM object in VS2013 Pin
CrewR4-Mar-15 6:50
MemberCrewR4-Mar-15 6:50 
SuggestionHow to reference IWshRuntimeLibrary Pin
ThanhTrungDo2-Mar-15 17:24
professionalThanhTrungDo2-Mar-15 17:24 
GeneralRe: How to reference IWshRuntimeLibrary Pin
Richard MacCutchan2-Mar-15 21:27
mveRichard MacCutchan2-Mar-15 21:27 
QuestionRegistration Free COM / COM Interop Pin
Michael Salzlechner8-Feb-15 3:28
MemberMichael Salzlechner8-Feb-15 3:28 
AnswerRe: Registration Free COM / COM Interop Pin
F-ES Sitecore2-Mar-15 4:55
professionalF-ES Sitecore2-Mar-15 4:55 
GeneralRe: Registration Free COM / COM Interop Pin
DriveByCoder24-Mar-15 7:18
professionalDriveByCoder24-Mar-15 7:18 
GeneralRe: Registration Free COM / COM Interop Pin
F-ES Sitecore24-Mar-15 8:12
professionalF-ES Sitecore24-Mar-15 8: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.