by driessen » Sun Oct 16, 2005 1:51 pm
You could avoid this problem by adding the resource compiler to your LNK-file.
What do you have to do :
1. Open your DLL-files with Workshop and save them as RES-files.
2. Re-open your RES-files and save them with the same name (you need to this otherwisse you'll get an error "unable to create dialogbox").
3. Add the resource compiler into your LNK-file. Do it like this :
-----------------
OUTPUT YOUR_APPLICATION.EXE
BLINKER INCREMENTAL OFF
BLINKER CLIPPER SYMBOL OFF
BLINKER EXECUTABLE ALIGNMENT 128
PACKCODE
PACKDATA
FI YOUR_PRG-files
DEFBEGIN
name YOUR_APPLICATION
description 'Your application'
exetype Windows 3.1
code moveable discardable preload
data preload moveable
rc YOUR-RES-file.RES
stacksize 10500 (use your own stacksize)
heapsize 1024 (use your own heapsize)
segment 'PLANKTON_TEXT' nondiscardable
segment 'EXTEND_TEXT' nondiscardable
segment 'OM_TEXT' nondiscardable
segment 'OSMEM_TEXT' nondiscardable
segment 'SORTOF_TEXT' nondiscardable
segment 'STACK_TEXT' nondiscardable
DEFEND
LIB YOUR_LIB's
LIB oFive16, oFive16C, OZLIBc, Objects
LIB WinApi
NOBELL
-----------------
4. Add a rc-line for each RES-file
5. Compile and link your application.
By doing this, you'll avoid a wrong DLL-file to be used.
Good luck.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773