Click here to Skip to main content
16,008,175 members
Home / Discussions / COM
   

COM

 
GeneralRe: Passing a IDispatch reference between two COM+ Components Pin
soptest30-Mar-02 9:13
soptest30-Mar-02 9:13 
GeneralRe: Passing a IDispatch reference between two COM+ Components Pin
Rohit31-Mar-02 0:12
Rohit31-Mar-02 0:12 
GeneralHandling COM Events from script Pin
Gerald Schwab27-Mar-02 18:55
Gerald Schwab27-Mar-02 18:55 
GeneralRe: Handling COM Events from script Pin
28-Mar-02 6:19
suss28-Mar-02 6:19 
GeneralA File Dialog in COM Pin
AndyC27-Mar-02 7:50
AndyC27-Mar-02 7:50 
GeneralRe: A File Dialog in COM Pin
soptest27-Mar-02 9:45
soptest27-Mar-02 9:45 
GeneralRe: A File Dialog in COM Pin
AndyC27-Mar-02 21:37
AndyC27-Mar-02 21:37 
Generalplease help me !! I get E_NOINTERFACE error... using CLSCTX_LOCAL_SERVER Pin
johnstapleton27-Mar-02 5:59
johnstapleton27-Mar-02 5:59 
Please help I am going crazy...

I'm using Windows 2000.
I make my ATL .EXE Server.
I make my C++ MFC client on the same machine.

run the code below via the client and get an E_NOINTERFACE error... what does this error actually mean...what do I have to change....? any ideas ?
Note that the .EXE does seem to have an Hello world interface exposed ? help me please, I've looked in OLEView and the registry and the .EXE object seems to be there. I've fiddled about with DCOMCNFG.EXE to try and configure it so that client/server run on the same machine and no such luck:


{
....
CoInitialize(NULL);

IExeServer* pIHelloWorld = NULL;

HRESULT hr = CoCreateInstance (CLSID_ExeServer,
NULL,
CLSCTX_LOCAL_SERVER, // note its a local.
IID_IExeServer,
reinterpret_cast(&pIHelloWorld));

if (hr == E_NOINTERFACE)
{
AfxMessageBox("CLASS_E_NOINTERFACE"); // this error is always
// there
}

if (FAILED(hr))
{
AfxMessageBox("FAILED");
CoUninitialize();
EndDialog(TRUE);
return TRUE;
}

CoUninitialize();


Confused | :confused:

john s.
GeneralServer name problem Pin
27-Mar-02 4:11
suss27-Mar-02 4:11 
GeneralUrgent!! Creating own stream in a Word Document Pin
26-Mar-02 23:02
suss26-Mar-02 23:02 
GeneralPointer to an ActiveX in VB Pin
Jerome Conus26-Mar-02 19:46
Jerome Conus26-Mar-02 19:46 
GeneralCOM Object Pin
Nick Parker26-Mar-02 18:16
protectorNick Parker26-Mar-02 18:16 
GeneralRe: COM Object Pin
Paul M Watt26-Mar-02 18:53
mentorPaul M Watt26-Mar-02 18:53 
GeneralRe: COM Object Pin
Michael Dunn26-Mar-02 19:31
sitebuilderMichael Dunn26-Mar-02 19:31 
GeneralReturning Safearray from remote DCOM Pin
David Spain25-Mar-02 12:34
David Spain25-Mar-02 12:34 
GeneralRe: Returning Safearray from remote DCOM Pin
Sayan Mukherjee26-Mar-02 2:36
Sayan Mukherjee26-Mar-02 2:36 
GeneralRe: Returning Safearray from remote DCOM Pin
David Spain26-Mar-02 3:56
David Spain26-Mar-02 3:56 
GeneralRe: Returning Safearray from remote DCOM Pin
David Spain27-Mar-02 2:55
David Spain27-Mar-02 2:55 
GeneralBuilding interface to IActiveScriptSite and IActiveScriptSiteWindow with MFC and ATL 7.0 Pin
25-Mar-02 7:50
suss25-Mar-02 7:50 
GeneralProblems with suspend/resume comm thread. Pin
dejan.n25-Mar-02 4:05
dejan.n25-Mar-02 4:05 
GeneralATL CLSCTX_LOCAL_SERVER get E_NOINTERFACE error... Pin
johnstapleton25-Mar-02 2:46
johnstapleton25-Mar-02 2:46 
GeneralRe: ATL CLSCTX_LOCAL_SERVER get E_NOINTERFACE error... Pin
jfugate18-Jul-02 5:03
jfugate18-Jul-02 5:03 
QuestionHow do I retrieve the container window Ptr(HWND) in the COM? (eg.IE client area) Pin
xelin25-Mar-02 1:28
xelin25-Mar-02 1:28 
AnswerRe: How do I retrieve the container window Ptr(HWND) in the COM? (eg.IE client area) Pin
Amit Dey30-Mar-02 0:33
Amit Dey30-Mar-02 0:33 
GeneralRe: How do I retrieve the container window Ptr(HWND) in the COM? (eg.IE client area) Pin
xelin3-Apr-02 0:21
xelin3-Apr-02 0:21 

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.