Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 886015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:00:10+00:00 2026-05-15T13:00:10+00:00

http://www.adp-gmbh.ch/win/com/bho.html When I compile, I get lots of errors: error C2236: unexpected ‘class’ ‘adpbho’.

  • 0

http://www.adp-gmbh.ch/win/com/bho.html

When I compile, I get lots of errors:

error C2236: unexpected 'class' 'adpbho'. Did you forget a ';'?

error C3381: 'adpbho' : assembly access specifiers are only available in code compiled with a /clr option
..\adpbho.cpp(15) : error C3861: 'MB1': identifier not found
..\adpbho.cpp(24) : error C3861: 'MB1': identifier not found
..\adpbho.cpp(34) : error C3861: 'MB1': identifier not found
..\adpbho.cpp(85) : error C3861: 'MB1': identifier not found
..\adpbho.cpp(95) : error C2014: preprocessor command must start as first nonwhite space
..\adpbho.cpp(96) : error C2039: 'MB1' : is not a member of 'adpbho'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:00:11+00:00Added an answer on May 15, 2026 at 1:00 pm

    Well, assuming you turned off your brain and just cut and pasted the garbage on that site, the first error is that this is not a valid way to declare a C++ class:

    class BHO class adpbho : public IObjectWithSite, public IDispatch  {
    

    There are two class statements. That’s not allowed. It’s probably supposed to be:

    class adpbho : public IObjectWithSite, public IDispatch  {
    

    The rest of the code is pretty horrible too. You’re going to have to go line-by-line and clean it up, or find a better sample.

    EDIT: The more I look at it the more bugs and errors I see. I highly recommend that you not use this code and instead find a better sample somewhere.

    This has nothing to do specifically with BHO’s or IE plugins and everything to do with basic C++ win32 programming, so I’ll fix your tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From http://www.adp-gmbh.ch/cpp/gcc/create_lib.html : Note: the library must start with the three letters lib and
Pay attention to base64_decode in http://www.adp-gmbh.ch/cpp/common/base64.html std::string base64_decode(std::string const& encoded_string) The function is suppose
http://www.adp-gmbh.ch/cpp/templates/static_members.html makes it clear what I need to do - if the template has
http://www.security.org.sg/code/loadexe.html http://pastebin.com/QFHASx75 I've compiled this but can't get it to work properly, It runs
http://www.html5canvastutorials.com/webgl/html5-canvas-webgl-plane-with-three-js/ In this example its just a rotating plane. I'm an html 5 beginner
http://www.leandrovieira.com/projects/jquery/lightbox/ sample so i have get images in while loop here is my code
http://www.boost.org/doc/libs/1_35_0/doc/html/boost/get_id405862.html template<typename U, typename T1, typename T2, ..., typename TN> U & get(variant<T1, T2,
http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html Just go through the above link. there is an example sample code for
http://www.myserver.com/exile?Key1=Value1&Key2=Value2 When i get a request in this format to my server, how do
http://www.fireviews.com/testing/tabs_and_toggles.html The buttons with + signs are supposed to be drop-down toggles, and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.