Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

I am working in vc++(MFC) code which supports multibyte character set. I would like to convert mine code from multibyte to unicode character set.

$
0
0

error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'char *' to 'LPWSTR'

void extract_features(char *path4, int i)
{
    char *t = new char[500];
    char *g = "d:\\dll\\extract_features.exe -hesaff -sift -i ";
    char *ii = new char[100];
    itoa(i,ii,100);
    STARTUPINFO si = {};
    si.cb = sizeof si;
    PROCESS_INFORMATION pi = {};
    strcpy(t,g);
    strcat(t,path4);
    strcat(t," -o1 ");
    strcat(t,path4);
    strcat(t,".txt");
    CreateProcess(NULL, t, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
}



Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>