I have number of cpp files in unmanaged c++ , I want to access class methods of these files from vb .net using P\Invoke, For that i have write C wrapper for exposing class methods.Can anybody help me ,how to write a c wrapper around C++ code. I am copying some code of my files ,please help me writting c wrapper for these function.
#include "StdAfx.h"
#include "Verify.h"
Verify::Verify(void)
:_verified(false)
{
}
Verify::~Verify(void)
{
}
void Verify::SetVerified(bool value)
{
_verified = value;
}
bool Verify::GetVerified(void) const
{
_verified;
}
void Verify::SetFailurePoint(std::basic_string<TCHAR> const & value)
{
_failurePoint = value;
}
std::basic_string<TCHAR> const & Verify::GetFailurePoint(void) const
{
return _failurePoint;
}