I created a simple screensaver in Xojo, just some Canvas with mathematical lines. It works, thanks to Alex Restrepo. Screensavers are typically stored in the System32 subfolder in Windows.
In that way it will show up in the screensaver’s config screen. I’ve put the .exe in the System32 root and the libs etc. in its own folder as a subfolder in the System32 root.
But upon hitting the ‘settings’ button I get the ‘Failed to locate framework DLL’. The executable can’t find its subdir with the framework etc files. Any ideas to solve this?
What looks the code that locate the .dll file ?
Did you checked if the FolderItem (reference to the .DLL) goes to the correct location ? (where the .dll resides ?)
Hi Emile, I do not call a DLL or anything with declares. I thought is was a Xojo message stating it couldn’t find its own framework. But, I guess it isnt?
[Edit] There is… the code is from Aaron Ballman by the way. There is a Kernel32 call and a User32 call. But both are in the System32 folder. The code runs perfectly in the debugger.
[Edit again] I found out that this only occurs with compiling for 32 bit. 64 bit runs perfectly. Settings window is visible. Everything works.
I believe on newer versions of windows you need to install the files and folders placed alongside your exe upon compile in SysWow64 if they are 32-bit.