Help Me !!!!!
Hi everybody.
I write dll in VC
One Sub :
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 ;
char s[]="Computer";
strcpy(outStr,inStr);
}
----------------------------------------------------------------------
Call it by Visual Basic
If write above and compile it program will run best.
If i repalce strcpy(outStr,inStr)-----> strcpy(outStr,s) program will be dump
I do not know why.
Help me.
Thanks.
|