Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

public function

RicardoFurtadoRicardoFurtado Posts: 205Member
I'm a visual basic programmer and i've made a software that is trying to use a Visual C++ dll, named memctrl.
i've implemented the code in the memctrl.cpp file and i'm trying to access the function i've made in the .cpp through Visual Basic 2005. I just can't access them. If i use some functions that are implemented in the memctrl.h, then i have access to them.
My doubt is:
I've learn that in Visual C++ we declare the functions header in the .h file and we implement the code in the .cpp file. What am i doing wrong?

the code:
memctrl.h

#pragma once

#include
#include
#include

using namespace System;

namespace memctrl {

public interface class IContainer
{
virtual int retornaIndice();

};

//public ref class clsMemCtrl//:IContainer
public class clsMemCtrl//:IContainer
{
// TODO: Add your methods for this class here.


public:

void filldots(void);

protected:


};
}




memctrl.cpp:

// This is the main DLL file.

#include "stdafx.h"

#include "memctrl.h"

#include

using namespace std;
struct PONTOSCEFALOMETRICOS
{
int IDPonto;
CString NomePonto;
CString AbreviaturaPonto;
CString NomeImg;
CString NomeVideo;
CString Descricao;
bool VTO;
CString ImagemMaximizada;
int CoordenadaX;
int CoordenadaY;
int Base;
int Calculado;
CString ObservacoesParaProgramador;
int OrdemApresentacao;
int TipoPonto;
int Seccao;
int Perfil;
}Arr[184];



int retornaPontoDeterminadoIndice(int Indice)
{


return 0;
}



void filldots(void)
{
Arr[0].IDPonto=1;
Arr[0].NomePonto ="Basion";
Arr[0].AbreviaturaPonto ="Ba";
Arr[0].NomeImg="Basio.jpg";
Arr[0].NomeVideo="Basio.avi";
Arr[0].Descricao="Ponto mais inferior do contorno anterior do foramen Magnum";
Arr[0].VTO="False";
Arr[0].ImagemMaximizada="";
Arr[0].CoordenadaX=0;
Arr[0].CoordenadaY=0;
Arr[0].Base=0;
Arr[0].Calculado=0;
Arr[0].ObservacoesParaProgramador="";
Arr[0].TipoPonto=0;
Arr[0].Seccao=0;
Arr[0].Perfil=0;

...
}

Comments

Sign In or Register to comment.