newbie trouble: CoCreateInstance Error + IWebBrowser trouble... 
Author Message
 newbie trouble: CoCreateInstance Error + IWebBrowser trouble...

Hello!
   I buy and start reading the book "Mastering COM and COM+" from Ash
Rofail and Yasser Shohound
(ISBN 0-7821-2384-8). Then I download the sourcecode from www.sybex.com.
(downloads | code 2384 )

   But I have a problem: I cant run/call your COM Servers (starting in
cap2). I complile well the server
(SecurityMgr for example), and the client (MFCTestClient) but I get in
trouble in
the CoCreateInstance() call.

   I change in StdAfx.h (from SecurityMgr project) the #define
_WIN32_WINNT to
#define _WIN_DCOM
   MFCTestClient still don't work: I'm getting the "Could not create
instance","Error in CoCreateInstance"
MesgBox from CMFCTestClientDlg::OnButton1Click();

   My system is running Win98 (Not SE) with Internet Explorer 5.0
(5.00.2314.1003),
Visual Studio 6.0 Enterprise (with SP3) and DCOM turn on.

   BTW, I insert the Microsoft Web Browser
(C:\windows\system\shdocvw.dll) in the
ActiveX Control Test Container just fine, but i don't have sucess trying
to display
any web page inside it. when i change left or top properties all works
fine but when
i try to navegate (filling all arguments right) it don't work.
   For example, GoHome method gives me an Unspecified exception (with
Unspecified exception source).
(and i was not in Design mode). With Acrobat Control for ActiveX, I read
an pdf inside
the Test Container well.
   What is wrong ? what can i do ? Please help.

thanks

Pedro
 --
  "One of the differences between an average engineer and a good one is
the ability to think to choose the ability to think at a high enoough
level
to choose the important problems to spend programming time on"
        - Jay Stelly

      in "Game design, Secrets of the sages"


 -- Fingerprint: 3917 D717 1866 5855 B326  0899 DBC2 F7B3 8973 86C1 (PGP
Key on request) --



Sun, 17 Nov 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. TextReader trouble - newbie HELP? :)

2. Newbie: Trouble with scanf - HELP!!!

3. Newbie in trouble

4. Complete newbie, trouble with unsigned ints.

5. Trouble with scanf() (newbie here)

6. newbie having trouble

7. Newbie - endless trouble with a linked list

8. Newbie Com...Netmeeting...trouble

9. fwrite, binary file trouble - newbie

10. HELP!! window/viewport trouble - mfc newbie

11. *newbie * trouble with child dialogs

12. Newbie having trouble finding grid samples

 

 
Powered by phpBB® Forum Software