DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2004
    Posts
    70

    how do i implement IOleCommandTarget

    how do i implement IOleCommandTarget

    i got no idea what it is
    is it a class or a method?

    i need to do it after reading a help file here http://support.microsoft.com/kb/261003/

    as i am still a newb example code would be greatly appreciated
    i am using MFC style with visual c++ 6.0
    thanks

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    best I could find,
    http://msdn2.microsoft.com/en-us/lib...y5(VS.80).aspx
    seems to imply that you can inherit this method from an undocumented class.

  3. #3
    Join Date
    May 2004
    Posts
    70
    thnx for the help
    i wrote the following code

    Code:
    BEGIN_OLECMD_MAP(CWebBrowser2, CWnd)
       ON_OLECMD(CGID_DocHostCommandHandler,OLECMDID_SHOWSCRIPTERROR,ID_JAVA_ERROR_SUPPRESS)
       //ID_JAVA_ERROR_SUPPRESS = ID of the WM_COMMAND message to be sent to the application containing the command map when this OLE command is invoked.
    END_OLECMD_MAP()

    and got undeclared identifier for the macros "ON_OLECMD" and many other stuff
    Code:
    webbrowser2.cpp(13) : error C2065: 'ON_OLECMD' : undeclared identifier
    webbrowser2.cpp(13) : error C2065: 'CGID_DocHostCommandHandler' : undeclared identifier
    webbrowser2.cpp(13) : error C2065: 'OLECMDID_SHOWSCRIPTERROR' : undeclared identifier
    webbrowser2.cpp(13) : error C2065: 'ID_JAVA_ERROR_SUPPRESS' : undeclared identifier
    is there something wrong here? please help =(

    it would be good if there are sample or example codes around

  4. #4
    Join Date
    May 2004
    Posts
    70
    could this be due to me using vc++6.0 ??



    it says " This page is specific to Microsoft Visual Studio 2003/.NET Framework 1.1"

    i do not have .net framework, but i do have a copy of visual studio 2003. should i use that instead?

  5. #5
    Join Date
    Feb 2007
    Posts
    3
    You can download it from Microsoft's website for VC++6.0 for free.

Similar Threads

  1. Object Must Implement IConvertible
    By mikester20 in forum ASP.NET
    Replies: 2
    Last Post: 08-29-2008, 06:33 PM
  2. Replies: 1
    Last Post: 02-04-2003, 04:37 PM
  3. how to implement VPN in java.
    By jacob in forum Java
    Replies: 1
    Last Post: 01-15-2001, 01:59 PM
  4. HOW TO IMPLEMENT VPN USING JAVA
    By JACOB manoj_jvs in forum Java
    Replies: 0
    Last Post: 01-15-2001, 12:46 AM
  5. Problem about implement interface
    By Arger in forum VB Classic
    Replies: 2
    Last Post: 09-28-2000, 05:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links