I converted a prj from c5.5 to c11. The prj has 480+ gif image files statically linked. Worked in c5.5. Fails with “too many files” error in c11. What is the correct method to statically link gobs of gif files in an exe?
PS. In win 10 w/o compatibility mode, it works ok. When win 10 compatibility mode is set to win xp the app locks up.
This is how I link in resources:
Using the solution explorer,
Under “Projects to include”,
I add a file named Resources.Pr
and within it I have lines like
#pragma link("SmBallWh.gif")
I have no idea if that will solve you’re “too many files” error, but it’s worth a try.
I searched a little bit and did not find it. Got any other keywords I can try?
As a test I moved all the gif files from main prj into a new dll prj.
compiles ok.
However it gpfs when called.
Here is the calling code. setImage is the new dll method that is failing:
setImage(SELF.imageQR.imageEqu, '~' & tempcString) ! <== poof with access error
! too many files fix attempt 023 (SELF.imageQR.imageEqu) {prop:text} = '~' & tempcString
Here is the dll code
PROGRAM
MAP
setImage(short equ, string filename),name(‘setImageFromDll’)
END
CODE
RETURN
setImage procedure (short equ, string filename)
Window WINDOW(‘Please Waitimage’),AT(,145,21),FONT(‘MS Sans Serif’,8,FONT:regular),CENTER,TIMER(10),GRAY
STRING(‘Press ALT ESC to display active window’),AT(7,2,135,10),USE(?String1),hide
END
code
open(window)
ACCEPT
END
close(WINDOW)
(equ){PROP:Text} = clip(filename)
RETURN
This is all there was. I will send this message to Lee. Maybe he has more stuff to add:
Try creating a couple of “Source” procedures. Add a window to each and
stuff a bunch of the icons in image controls on each window. It does
NOT have to be pretty or organized since it’s only there as a resource
holder. Put each procedure in separate CLW’s and remove the ico files
from the project.