Hi,
I am moving a project from Delphi 7 to XE4 and compilation appeared fine. I have XE4 installed on Windows 7 and building as a Win32 application, the program appears to work fine on that machine and no issues (I have Delphi 7 on a Vista machine.)
When I copy the program to Vista I get problems. The startup of the program is supposed to read an ini file, gets the filepath of a logo and displays on screen, this simply does not work and no custom logo is displayed. This works fine on XE4/Win7 but on Vista no luck. When I changed to XE4 I did change all AnsiString to String in the code, but since the issue is at the start of execution not much is stored into variables I declared so not sure if that would cause issue.
This is my basic code which compiles without issue in both XE4 and D7 but will not display in Vista if built in Win7/XE4:
Example paths of my logo are d:\custom.jpg and c:\programming picture\test.jpg.
Thank you in advance to any suggestions.
I am moving a project from Delphi 7 to XE4 and compilation appeared fine. I have XE4 installed on Windows 7 and building as a Win32 application, the program appears to work fine on that machine and no issues (I have Delphi 7 on a Vista machine.)
When I copy the program to Vista I get problems. The startup of the program is supposed to read an ini file, gets the filepath of a logo and displays on screen, this simply does not work and no custom logo is displayed. This works fine on XE4/Win7 but on Vista no luck. When I changed to XE4 I did change all AnsiString to String in the code, but since the issue is at the start of execution not much is stored into variables I declared so not sure if that would cause issue.
This is my basic code which compiles without issue in both XE4 and D7 but will not display in Vista if built in Win7/XE4:
Code:
Var
Gbl_logo : string;
Inifile:=tinifile.create(extractfilepath(application.exename)+’settings.ini’;
Gbl_logo := inifile.readstring(‘Settings’,’Logo’,’’);
If trim(Gbl_logo) <> ‘’ then
Begin
If FileExists(Gbl_logo) then
Begin
Imglogo.picture.loadfromfile(gbl_logo);
end;
End;
Example paths of my logo are d:\custom.jpg and c:\programming picture\test.jpg.
Thank you in advance to any suggestions.