Page 1 of 1

GFL SDK v2.90 Unicode Error

Posted: Thu Nov 13, 2008 1:17 pm
by Zai++
Unicode versions of Load ans Save functions fail both in ะก++Builder and Visual C++.

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();
This Unicode code can't be linked:

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();
C++Builder 6.0: [Linker Error] Unresolved external 'gflLoadBitmapW' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER6\PROJECTS\GFL290TEST\UNIT1.OBJ

VC++ 2008 Express Edition: 1>vctest.obj : error LNK2001: unresolved external symbol _gflLoadBitmapW@16

same with gflSaveBitmapW

:(
Did anybody work with Unicode using GFL?

Re: GFL SDK v2.90 Unicode Error

Posted: Fri Nov 14, 2008 2:26 pm
by xnview
Do you use the Unicode version of gfl?

Posted: Mon Nov 17, 2008 3:50 pm
by Zai++
A-a-a! There are two versions of lib. I didn't pay attantion.
sorry for a stupid question

But what for did you make two VC++ versions, if the unicode version works both with ansi and unicode??

Posted: Mon Nov 17, 2008 5:36 pm
by dominique
Hi, just have a look in your C:\Program Files\GflSDK folder, you have several versions of the lib with specific names : lib, lib64, lib64W, libW ;)