Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #61  
Old 24-03-2016, 05:32
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by BAMsE View Post
I can't create more than one timer with CreateTimer function. Only last defined TTimerProc is executed with the smallest Timeout defined:
Code:
ButtonCB := CreateTimer(10, @ButtonAction;
EqualizerCB := CreateTimer(100, @EqualizerAction);
In this case only EqualizerAction is executed with 10ms interval
A function issue.
Thx for feedback
Reply With Quote
Sponsored Links
  #62  
Old 24-03-2016, 08:19
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Changes: v0.0.9.3:
Fixed an issue with multiple timers creation.

@Bamse
I should rewrite the entire JoinFile function
Reply With Quote
The Following User Says Thank You to peterf1999 For This Useful Post:
y_thelastknight (07-04-2016)
  #63  
Old 25-03-2016, 11:56
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
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 12:11.
Reply With Quote
  #64  
Old 26-03-2016, 08:48
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by BAMsE View Post
Another issue:
Any PAnsiChar of TSysInfo or TVolume is empty after GetDirectXVersion execution.
I don't have this issue, the function are separated

Quote:
Originally Posted by BAMsE View Post
BTW: what are possible results of GetDirectXVersion?
Ansi string of Directx version or null ansi string.
Reply With Quote
  #65  
Old 26-03-2016, 12:49
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
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 13:04.
Reply With Quote
  #66  
Old 26-03-2016, 17:20
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
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 17:28.
Reply With Quote
  #67  
Old 27-03-2016, 10:09
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
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).
Reply With Quote
  #68  
Old 27-03-2016, 14:06
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
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 maybe some fault of my rig (but yesterday deliberately turned OC off to avoid any misrepresentations). Now compiled with 5.5.8(a) gives Access violation at the end of setup. With 5.5.1.ee2(u) works fine.
Attached Files
File Type: rar testscript.rar (624.9 KB, 106 views)

Last edited by BAMsE; 27-03-2016 at 14:08.
Reply With Quote
The Following User Says Thank You to BAMsE For This Useful Post:
peterf1999 (28-03-2016)
  #69  
Old 27-03-2016, 17:22
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Watch example
Attached Images
File Type: png Capture22.PNG (32.3 KB, 209 views)
Attached Files
File Type: 7z watchexample.7z (898 Bytes, 63 views)
Reply With Quote
  #70  
Old 27-03-2016, 17:36
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
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
Attached Images
File Type: png Capture24.PNG (37.4 KB, 212 views)
File Type: png Capture25.PNG (28.5 KB, 215 views)
File Type: png Capture26.PNG (36.3 KB, 213 views)

Last edited by Razor12911; 27-03-2016 at 18:42.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
peterf1999 (28-03-2016)
  #71  
Old 27-03-2016, 18:09
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Cryptfile example
Attached Images
File Type: png Capture23.PNG (25.7 KB, 209 views)
Attached Files
File Type: 7z cryptfileexample.7z (642 Bytes, 39 views)
Reply With Quote
  #72  
Old 28-03-2016, 01:34
BAMsE's Avatar
BAMsE BAMsE is offline
The World Is Yener's
 
Join Date: Mar 2011
Location: in front of the monitor
Posts: 344
Thanks: 49
Thanked 271 Times in 91 Posts
BAMsE is on a distinguished road
Razor use DrawToDC instead of DrawImages. There's no DrawImages export in ISab.dll See example.
Attached Files
File Type: rar imgtest.rar (640.0 KB, 55 views)

Last edited by BAMsE; 28-03-2016 at 01:38.
Reply With Quote
  #73  
Old 28-03-2016, 05:09
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
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.
Fixed.

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;
...
and so on
Reply With Quote
  #74  
Old 28-03-2016, 05:48
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Yea well there was no DrawToDC on first page, I used it as reference.
Attached Images
File Type: png Capture27.PNG (128.3 KB, 207 views)
Reply With Quote
  #75  
Old 29-03-2016, 09:20
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
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';
Reply With Quote
The Following 3 Users Say Thank You to peterf1999 For This Useful Post:
arkantos7 (29-03-2016), BAMsE (29-03-2016), Razor12911 (29-03-2016)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Inno Setup: Additional Libraries altef_4 Conversion Tutorials 50 21-10-2020 09:59
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Tutorial using CI 8.0.0 yener90 Conversion Tutorials 424 21-10-2014 09:49



All times are GMT -7. The time now is 03:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com