This ANSI code works correct:
Code: Select all
gflLibraryInit();
GFL_BITMAP* B;
GFL_LOAD_PARAMS LP;
gflGetDefaultLoadParams(&LP);
gflLoadBitmap("C:\\src.bmp",&B,&LP,NULL);
GFL_SAVE_PARAMS SP;
gflGetDefaultSaveParams(&SP);
SP.FormatIndex=0;
gflSaveBitmap("C:\\dst.bmp",B,&SP);
gflFreeBitmap(B);
gflLibraryExit();
Code: Select all
gflLibraryInit();
GFL_BITMAP* B;
GFL_LOAD_PARAMS LP;
gflGetDefaultLoadParams(&LP);
gflLoadBitmapW(L"C:\\src.bmp",&B,&LP,NULL);
GFL_SAVE_PARAMS SP;
gflGetDefaultSaveParams(&SP);
SP.FormatIndex=0;
gflSaveBitmapW(L"C:\\dst.bmp",B,&SP);
gflFreeBitmap(B);
gflLibraryExit();
VC++ 2008 Express Edition: 1>vctest.obj : error LNK2001: unresolved external symbol _gflLoadBitmapW@16
same with gflSaveBitmapW
Did anybody work with Unicode using GFL?