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

  • SEARCH
  • Home
  • 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 6334973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:45:51+00:00 2026-05-24T18:45:51+00:00

I have a set of code written in VS 6. I am trying to

  • 0

I have a set of code written in VS 6. I am trying to write a CLI wrapper for that in VS 2008. I included one of the VS6 header files in the CLI code and compiled.

While compiling I am getting

LNK2001: unresolved external symbol "public: virtual void __thiscall Someclass::SomeMethod(SomeObject& os).

When I searched for the method and the class in the error it correponds to the code,

Header File.

class SomeClass: public ParentClass
 {
  virtual void SomeMethod(SomeObject& os);
}

CPP File

void SomeClass::SomeMethod(SomeObject& os)
{
//Implementation here
}

SomeMethod is actually overridden from the ParentClass

When I make the declaration in the header file by adding a open and close curly braces as

virtual void SomeMethod(SomeObject& os) {};

the error disappears. But I cannot do that since it would result in one method having two bodies. Why is this behavior? How do I overcome this? Or Do I have to put any #pragma while including BS6 headers in CLI?

  • 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-24T18:45:51+00:00Added an answer on May 24, 2026 at 6:45 pm

    Sounds like you’ve not included ‘CPP File’ in your project. That would also explain why you don’t get an error when you have two bodies. To check this try putting a deliberate compile error in CPP File. If the compiler doesn’t complain that would prove that you aren’t compiling CPP File.

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

Sidebar

Related Questions

I am a programmer, new to jsp, trying to write some code. i have
I am trying to write a code to get the set of points (x,y)
I have written following code to make a call also have set permissions in
I'm trying to write some tests around some code previously written before I start
I am trying to learn deserialization. I have written this code to deserialize *.hbm.xml
I currently have my code set to disable the submit button when the field
I have this code which draws a Window and NSView, and have set up
I am having a bit of difficulty with this current code I have set
Anyone have code to set margins(top,left,right,bottom) using excel interop and vb.net. I think it
I have the following code set up in my Startup IDictionary<string, string> properties =

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.