Hi there,
Could someone give me a simple of example of how to write code in a c++ class library file? I made this to include through a reference in a c# app file. This is what Ive tried but Ive gotten all sorts of build errors:
// CClass.h
#pragma once
using namespace System;
namespace CClass {
public ref class Class1
{
string nombre;
public:
Class1()
{
nombre= "None";
cout<<nombre<<endl;
}
~Class1(){}
void setNombre(string n)
{
nombre= n;
}
string getNombre()
{
return nombre;
}
};
}
Thanks in advance for your help!
Drue