estoy probrando el compilar la dll de quricol
pero me da el error con la compilacion
https://perevoznyk.wordpress.com/201...ode-generator/
me sale 4 errorres que es por que la dll usa ansi string y el c++builder xe 6 ya es unicode.
no se como corregirlo
quricol.cpp(147,-1): warning W100: parsing: void __stdcall GenerateBMPW(wchar_t *,wchar_t *,int,int,int)
quricol.cpp(151,52): error E2034: E2034 Cannot convert 'wchar_t *' to 'char *'
quricol.cpp(151,52): error E2342: E2342 Type mismatch in parameter 'text' (wanted 'char *', got 'wchar_t *')
quricol.cpp(159,41): error E2034: E2034 Cannot convert 'wchar_t *' to 'char *'
quricol.cpp(159,41): error E2342: E2342 Type mismatch in parameter 'pszFile' (wanted 'char *', got 'wchar_t *')
Código PHP:
void WINAPI GenerateBMPW(LPWSTR fileName, LPWSTR text, int margin, int size, int level)
{
if (fileName == NULL)
return;
HBITMAP bmp = GetHBitmap(text, margin, size, level);
if (bmp == NULL)
return;
PBITMAPINFO info = CreateBitmapInfoStruct(bmp);
if (info != NULL)
{
HDC hdc = GetDC(0);
CreateBMPFile(fileName, info, bmp, hdc);
ReleaseDC(0, hdc);
DeleteObject(bmp);
LocalFree(info);
}
}
saben como se puede corregir.
gracias.