jeudi 26 janvier 2017

Conversion from char * (requested from a DB) to const wchar_t *

I have a key like :

wchar_t Key[]=L"764frtfg88fgt320nolmo098vfr";

and row[i] of char* returned by a query from a Database.

And i want to compare if my Key is in row[i]

I tried with wcscmp (Key,row[i]) != 0) but it givs me a error

Any suggestions ?

Thanks a lot

Aucun commentaire:

Enregistrer un commentaire