#61
|
||||
|
||||
Quote:
Thx for feedback |
Sponsored Links |
#62
|
||||
|
||||
Changes: v0.0.9.3:
Fixed an issue with multiple timers creation. @Bamse I should rewrite the entire JoinFile function ![]() |
The Following User Says Thank You to peterf1999 For This Useful Post: | ||
y_thelastknight (07-04-2016) |
#63
|
||||
|
||||
Another issue:
Any PAnsiChar of TSysInfo or TVolume is empty after GetDirectXVersion execution. BTW: what are possible results of GetDirectXVersion? Last edited by BAMsE; 25-03-2016 at 13:11. |
#64
|
||||
|
||||
Quote:
![]() Ansi string of Directx version or null ansi string. |
#65
|
||||
|
||||
One pic tells more...
Clipboard04.jpg ... plus small bonus: executing DiskVolumeInfo before GetSysInfo messing strings returned by the first mentioned... Clipboard02.jpg Last edited by BAMsE; 26-03-2016 at 14:04. |
#66
|
||||
|
||||
GetFileVersionData causes file dependent errors AFTER gathering info from file on both UNICODE and ANSI (tested different exes, dlls). I mean errors are not random - some files always pass with the same flag, but fails with another (e.g. pckr.dll never fails with CompanyName or FileVersion but always fails with FileDescription or ProductName). Problematic strings are always correct - errors occur AFTER retrieving and returning them.
Code:
Runtime Error (at 750:30170): Access violation at address 05C276A2 in module 'Isab.dll'. Read of address A7FFFFFC. Code:
Runtime Error (at 750:30170): Exception "EOleException" at address 00497587. Code:
Runtime Error (at 2:273): Exception "EOSError" at address 00497587. Last edited by BAMsE; 26-03-2016 at 18:28. |
#67
|
||||
|
||||
Send pm with links of scripts have raised the errors of:
GetFileVersionData DiskVolumeInfo GetSysInfo I tested GetFileVersionDataW & GetFileVersionDataA on Altef_4's pckr.dll without errors. ( Inno Setup ultra v5.5.1 unicode, and v5.5.5 ansi). |
#68
|
||||
|
||||
Any script, e.g. your example from post 59 I've modified it to induce errors - duplicated lines 'OSName' and 'HDDLabel' after GetDirectXVersion call. Also try to define INVERT.
GetFileVersionData seems to work fine ![]() Last edited by BAMsE; 27-03-2016 at 15:08. |
The Following User Says Thank You to BAMsE For This Useful Post: | ||
peterf1999 (28-03-2016) |
#69
|
||||
|
||||
Watch example
|
#70
|
||||
|
||||
Hey peterf, there seems to be a problem with SaveFileFromBuffer function, after saving a file, handle is not closed so I'm getting OpenError exceptions.
Edit: Also this, I don't know if I'm doing anything wrong here. Request: GetImgRotation function ![]() Last edited by Razor12911; 27-03-2016 at 19:42. |
The Following User Says Thank You to Razor12911 For This Useful Post: | ||
peterf1999 (28-03-2016) |
#71
|
||||
|
||||
Cryptfile example
|
#72
|
||||
|
||||
Razor use DrawToDC instead of DrawImages. There's no DrawImages export in ISab.dll
![]() Last edited by BAMsE; 28-03-2016 at 02:38. |
#73
|
||||
|
||||
Quote:
The verdict that I already knew: Sharing data structures ( TSysInfo or TVolume) or classes between two modules (inno setup exe and dlls ) in delphi/pascal is deprecated or even illegal. This is the reason of the issues, but I always hated to export a single function for only one value. All I need is to export each function e.g.: Code:
function GetProcessorName: PAnsichar; function GetFileSystemType: PAnsichar; function GetCpuClockSpeed: integer; ... |
#74
|
||||
|
||||
Yea well there was no DrawToDC on first page, I used it as reference.
|
#75
|
||||
|
||||
DiskVolumeInfo function replaced by:
Code:
const TF_InBytes = 1; TF_InKiloBytes = 2; TF_InMegaBytes = 4; TF_InGigaBytes = 8; function GetDiskVolumeName(const RootDir: PAnsichar):PAnsichar; external 'GetDiskVolumeName@files:Isab.dll stdcall delayload'; function GetFileSystemName(const RootDir: PAnsichar):PAnsichar; external 'GetFileSystemName@files:Isab.dll stdcall delayload'; function GetVolumeFreeSpace(const RootDir: PAnsichar; const OutSizeType: Byte): Double; external 'GetVolumeFreeSpace@files:Isab.dll stdcall delayload'; function GetVolumeSize(const RootDir: PAnsichar; const OutSizeType: Byte): Double; external 'GetVolumeSize@files:Isab.dll stdcall delayload'; |
The Following 3 Users Say Thank You to peterf1999 For This Useful Post: | ||
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 06:51 |
Inno Setup: Additional Libraries | altef_4 | Conversion Tutorials | 50 | 21-10-2020 10:59 |
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 07:57 |
Tutorial using CI 8.0.0 | yener90 | Conversion Tutorials | 424 | 21-10-2014 10:49 |