Click here to Skip to main content
15,905,238 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Qualifying expression will not be evaluated Pin
KreativeKai7-Feb-06 6:25
professionalKreativeKai7-Feb-06 6:25 
QuestionPainting of usercontrols Pin
Craster7-Feb-06 2:55
Craster7-Feb-06 2:55 
Questionmicrosoft word COM component ... MS Word 200 Pin
Member 22716557-Feb-06 0:55
Member 22716557-Feb-06 0:55 
Questioncan I create a variable name by Concatenation of two strings????? Pin
DreamQuestioner7-Feb-06 0:34
DreamQuestioner7-Feb-06 0:34 
AnswerRe: can I create a variable name by Concatenation of two strings????? Pin
Guffa7-Feb-06 0:40
Guffa7-Feb-06 0:40 
GeneralRe: can I create a variable name by Concatenation of two strings????? Pin
DreamQuestioner7-Feb-06 0:59
DreamQuestioner7-Feb-06 0:59 
AnswerRe: can I create a variable name by Concatenation of two strings????? Pin
Guffa7-Feb-06 1:50
Guffa7-Feb-06 1:50 
QuestionError using a Visual Basic DLL from c++ Pin
jtrujillogomez6-Feb-06 23:43
jtrujillogomez6-Feb-06 23:43 
Hi guys, i've an execution error when i use a dll from VB in c++. I've debugged the code and i've seen that the problem is when a callback function is returning...the point is that this callback function only drop down when is called from one of the dll's functions, but is working succesfully with the rest of them.

The functions of de dll are defined like this:


typedef void __stdcall (*funcion_crear)(char*,int,char*);
typedef void __stdcall (*funcion_configurar)(int,int,int,int,int);
typedef void __stdcall (*funcion_cargar)(char*);
typedef void __stdcall (*funcion_guardar)(char*);
typedef int __stdcall (*funcion_entrenar)(char*,char*);
typedef void __stdcall (*funcion_evaluar)(char*);
typedef void __stdcall (*CallVBFunctionStringPtr)(int);
typedef void __stdcall (*CallVBFunctionReportPerformancePtr)(int);
typedef void __stdcall (*CallVBFunctionClassificationResultPtr)(int);
funcion_crear fcrear;
funcion_configurar fconfig;
funcion_entrenar fentrenar;
funcion_evaluar fevaluar;
funcion_guardar fguardar;
funcion_cargar fcargar;
CallVBFunctionStringPtr callstring;
CallVBFunctionReportPerformancePtr callperformance;
CallVBFunctionClassificationResultPtr callresult;

Then, the external callback functions (CallVBxxx) are implemented with this three functions:

void __stdcall fCString (char* cadena,int longitud)
{
}


void __stdcall fCReportPerformance (char* cadenaestado,int longitud,int estado)
{
}

void __stdcall fCResult (int indice_clase)
{
Form1->resultado_RNA=indice_clase;


}

and the funcions are loaded from the main form like this:



fconfig=(funcion_configurar)(GetProcAddress(libreria,"ConfigureParameters"));


fcrear=(funcion_crear)(GetProcAddress(libreria,"create_net"));


fentrenar=(funcion_entrenar)(GetProcAddress(libreria,"train_net"));


fevaluar=(funcion_evaluar)(GetProcAddress(libreria,"test_net_singlevector"));


fguardar=(funcion_guardar)(GetProcAddress(libreria,"save_net"));


fcargar=(funcion_cargar)(GetProcAddress(libreria,"load_net"));


callstring=(CallVBFunctionStringPtr)(GetProcAddress(libreria,"CallVBFunctionStringPtr"));


callperformance=(CallVBFunctionReportPerformancePtr)(GetProcAddress(libreria,"CallVBFunctionReportPerformancePtr"));


callresult=(CallVBFunctionClassificationResultPtr)(GetProcAddress(libreria,"CallVBFunctionClassificationResultPtr"));

if ((callstring==NULL) || (callperformance==NULL) || (callresult==NULL)) ShowMessage("cagada");

callstring(int(&(fCString)));

callperformance(int(&(fCReportPerformance)));

callresult(int(&(fCResult)));

The only function that is dropping down is fevaluar, and the problem is when fCString callfuction is returning...

Can Somebody help me????

thank you very much

Best Regards.
AnswerRe: Error using a Visual Basic DLL from c++ Pin
Dave Kreskowiak7-Feb-06 1:26
mveDave Kreskowiak7-Feb-06 1:26 
QuestionCrystal report matter Pin
Swiss Mantoro6-Feb-06 23:00
Swiss Mantoro6-Feb-06 23:00 
QuestionHow 2 create the pocket pc application using .net with database features?? Pin
williamccyccyccy6-Feb-06 22:39
williamccyccyccy6-Feb-06 22:39 
AnswerVB6: Trap CTRL+F6 (and not CTRL+TAB) Pin
Pete Burgess6-Feb-06 22:12
Pete Burgess6-Feb-06 22:12 
AnswerRe: VB6: Trap CTRL+F6 (and not CTRL+TAB) Pin
bskirkman6-Feb-06 23:09
bskirkman6-Feb-06 23:09 
GeneralRe: VB6: Trap CTRL+F6 (and not CTRL+TAB) Pin
Pete Burgess7-Feb-06 10:16
Pete Burgess7-Feb-06 10:16 
AnswerRe: VB6: Trap CTRL+F6 (and not CTRL+TAB) Pin
Pete Burgess8-Feb-06 4:43
Pete Burgess8-Feb-06 4:43 
QuestionUsing CrystalReports XI In VB Pin
ZulnurainAdil6-Feb-06 21:27
ZulnurainAdil6-Feb-06 21:27 
AnswerRe: Using CrystalReports XI In VB Pin
rifan7-Feb-06 9:50
rifan7-Feb-06 9:50 
QuestionRe: Using CrystalReports XI In VB Pin
ZulnurainAdil5-Mar-06 20:42
ZulnurainAdil5-Mar-06 20:42 
QuestionHow to set a form is private? Pin
cylix20006-Feb-06 21:18
cylix20006-Feb-06 21:18 
AnswerRe: How to set a form is private? Pin
Dave Kreskowiak7-Feb-06 1:24
mveDave Kreskowiak7-Feb-06 1:24 
General[Solved] Pin
cylix20007-Feb-06 14:01
cylix20007-Feb-06 14:01 
QuestionVB.NET class library for VBA calling Pin
cylix20006-Feb-06 21:05
cylix20006-Feb-06 21:05 
AnswerRe: VB.NET class library for VBA calling Pin
Dave Kreskowiak7-Feb-06 1:21
mveDave Kreskowiak7-Feb-06 1:21 
GeneralRe: VB.NET class library for VBA calling Pin
cylix20007-Feb-06 14:12
cylix20007-Feb-06 14:12 
GeneralRe: VB.NET class library for VBA calling Pin
Dave Kreskowiak7-Feb-06 16:13
mveDave Kreskowiak7-Feb-06 16:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.