Hello to everybody!!
I have one problem with Visual C++.
I did a program with Visual C++ with a DLL, and this DLL allows to you to make the same program with Visual basic.
Code:--------------------------------------------------------------------------------
void __stdcall WGS84TOVN99( char inStr[100], int j, char outStr[100])
{
char rName[50], rIndex[50], rB[50], rL[50], rH[50];
char oB[50], oL[50], oH[50];
double XX1,YY1,ZZ1;
CCalculate m_cal ;
int fE = m_cal.BLHResult(inStr,rName,rIndex,rB,rL,rH);
if ( fE == 0 )
m_cal.TinhVN99(1,rB,rL,rH,oB,oL,oH,&XX1,&YY1,&ZZ1) ;
sprintf(outStr,"\t%02d\t%s\t%s\t%s\t%s\t%s\n",j+1, rName,rIndex,oB,oL,oH);
--------------------------------------------------------------------------------
I call it in
VB, when debug i see :
If i remove command :sprintf(outStr,"\t%02d\t%s\t%s\t%s\t%s\t%s\n",j+1 ,rName,rIndex,oB,oL,oH);
program will run best.
If i do not remove it program will be dump
I do not know why.
If anyone knows how to do it, tell me , please!!!
Thanks!!