sum1nil
April 20th, 2010, 02:29 PM
Hi, I have written a small dll with the /clr option that contains the following:
base.h
typedef cliext::map<String^, UInt16> CommandMap;
typedef cliext::list<String^> CommandList;
---------------------------------------------------------------------
base.cpp
public: CommandMap^ GetOpCodesMap() { return OpCodesMap; }
public: CommandList^ GetOpCodesList() { return OpCodesList; }
However from the client when I use the 'getters' above, I get the C3767 error during the build saying:
Error 1 error C3767: 'ATA::ATA_Core::GetOpCodesMap': candidate function(s) not accessible c:\documents and settings\my documents\visual studio 2010\projects\ata_base\ata_gui\Form1.h 30 1 ATA_Gui
I looked at the MSDN article on the error, but wasn't very helpful to me.
I've always thought just by writing a getter you could access private data.
I just don't understand where I am going wrong.
TY
base.h
typedef cliext::map<String^, UInt16> CommandMap;
typedef cliext::list<String^> CommandList;
---------------------------------------------------------------------
base.cpp
public: CommandMap^ GetOpCodesMap() { return OpCodesMap; }
public: CommandList^ GetOpCodesList() { return OpCodesList; }
However from the client when I use the 'getters' above, I get the C3767 error during the build saying:
Error 1 error C3767: 'ATA::ATA_Core::GetOpCodesMap': candidate function(s) not accessible c:\documents and settings\my documents\visual studio 2010\projects\ata_base\ata_gui\Form1.h 30 1 ATA_Gui
I looked at the MSDN article on the error, but wasn't very helpful to me.
I've always thought just by writing a getter you could access private data.
I just don't understand where I am going wrong.
TY