Search code examples
managed-c++

Managed C++ Error 2504 Error


I'm new to managed c++ and I'm attempting to design a program for a presentation. I am attempting to have a class inherit from an ABC and I'm getting the Error C2504. The code in question is as follows:

ref class Item : Auction //Error C2504 here {

//More code for the class Auction is defined in a different .h file.

Let me know if there are any other questions or if you need to see more of the code.

Thanks


Solution

  • Fixed it... Forgot public before Auction so it was defaulting to private inheritance... Doh!