hi all
how can convert of Char To LPCSTR,
well, I am developing a DLL to use it in VB and this is a function that I am building.
I try this, but it gives me bad result .
DLL is created Ok.Code:void LeerIni(LPCSTR *Valor, LPCSTR *Seccion, LPCSTR *Key, LPCSTR *FileIni , long *nCant) { char *res; GetPrivateProfileString(*Seccion, *Key,"-1", res, *nCant, *FileIni ); *Valor=(LPCSTR )res; --here is the problem }
but when this function is used in VB, *Valor return anything less value I hope
PDT. if anyone knows about develop DLL with C++ to user it in VB,
could help me out with some links I can use like guide.




Reply With Quote