Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #31  
Old 11-04-2015, 13:16
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
Functions prototype changes:
function GetFileVersionData(Const FileName: String; Const FlgRes: integer): String;
function GetFileVersionData(Const FileName: PAnsiChar; Const FlgRes: integer): PAnsiChar;

GetFileVersionDataW (UNICODE) & GetFileVersionDataA (ANSI) added.
Reply With Quote
The Following 3 Users Say Thank You to peterf1999 For This Useful Post:
RamiroCruzo (27-10-2015), Razor12911 (11-04-2015), y_thelastknight (11-04-2015)
Sponsored Links
  #32  
Old 12-04-2015, 09:41
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
GetSysInfo procedure changes:

Now the procedure retrieves also the following properties :
  • CurrentHorizontalResolution
  • CurrentVerticalResolution
  • CurrentRefreshRate
Reply With Quote
The Following 3 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (13-04-2015), Razor12911 (12-04-2015), y_thelastknight (12-04-2015)
  #33  
Old 13-04-2015, 10:07
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
GetSysInfo procedure changes:
  • Now the procedure returns sound device name only if its current status is 'OK', otherwise a null string is returned (it means not working properly).
Reply With Quote
The Following 2 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (13-04-2015), Razor12911 (24-10-2015)
  #34  
Old 24-10-2015, 10:07
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
Added the following functions/procedures to dll:
  • GdiStartup
  • GdiShutdown
  • LoadImage
  • DrawImages
  • SetImgVisibility
Reply With Quote
The Following 6 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (25-10-2015), arkantos7 (25-10-2015), Grumpy (24-10-2015), RamiroCruzo (27-10-2015), Razor12911 (24-10-2015), y_thelastknight (24-10-2015)
  #35  
Old 25-10-2015, 06:42
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
Added the following functions/procedures to dll:
  • SetImgTransparency
  • GetImgVisibility
  • GetImgTransparency
Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (25-10-2015), arkantos7 (25-10-2015), RamiroCruzo (27-10-2015), Razor12911 (26-10-2015)
  #36  
Old 26-10-2015, 04:08
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
... and the following:
  • SetImgPosSize
  • GetImgPosSize

Reply With Quote
The Following 4 Users Say Thank You to peterf1999 For This Useful Post:
altef_4 (26-10-2015), arkantos7 (26-10-2015), RamiroCruzo (27-10-2015), Razor12911 (26-10-2015)
  #37  
Old 26-10-2015, 09:02
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,104 Times in 2,296 Posts
Razor12911 is on a distinguished road
Yup, you are really tired of using other people's dlls by force. Nice! I'll wait for imgsetvisiblepart, this function is buggy in botva and layered, can't wait to try yours.
Reply With Quote
  #38  
Old 26-10-2015, 11:11
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
Yup, you are really tired of using other people's dlls by force. Nice! I'll wait for imgsetvisiblepart, this function is buggy in botva and layered, can't wait to try yours.
You can use SetImgPosSize procedure (set image position & size)

Code:
imgidx:=loadimage(ExpandConstant('{tmp}\progressbar.png'),WizardForm.Handle,100,100,30,0,IMF_Crop); // use Crop flag



DrawImages(WizardForm.Handle); // Draw progress bar width on client area at 0  



SetImgPosSize(imgidx,100,100,30,10);  // Increment visible progress bar width from 0 to 10 pixels
Reply With Quote
The Following 2 Users Say Thank You to peterf1999 For This Useful Post:
RamiroCruzo (27-10-2015), Razor12911 (26-10-2015)
  #39  
Old 26-10-2015, 11:36
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,104 Times in 2,296 Posts
Razor12911 is on a distinguished road
I was referring to the function that lets you set a region on the picture to be visible.
Reply With Quote
  #40  
Old 27-10-2015, 02:17
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
I was referring to the function that lets you set a region on the picture to be visible.
Code:
imgidx1:=loadimage(ExpandConstant('{tmp}\my.png'),WizardForm.Handle,0,0,450,750,IMF_Crop);
SetVisibleImgRgn(imgidx1,100,50,200,300);
DrawImages(WizardForm.Handle);

Code:
procedure SetVisibleImgRgn(ImgIdx,NewX,NewY,NewHeight,NewWidth: integer); 
external 'SetVisibleImgRgn@files:Isab.dll stdcall delayload';
Reply With Quote
The Following 2 Users Say Thank You to peterf1999 For This Useful Post:
RamiroCruzo (27-10-2015), Razor12911 (27-10-2015)
  #41  
Old 27-10-2015, 02:55
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
shortage of examples, in botva and in many others there are a dozen examples with the library, so you do so, that many of us use your library so fast .. not think peterf1999
Reply With Quote
  #42  
Old 27-10-2015, 05:21
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 rinaldo View Post
shortage of examples, in botva and in many others there are a dozen examples with the library, so you do so, that many of us use your library so fast .. not think peterf1999
Did you read the exhaustive docs about functions/procedures on 1st page?
For sure, the use is not easy for inno's novice users.
Reply With Quote
  #43  
Old 27-10-2015, 05:53
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
Did you read the exhaustive docs about functions/procedures on 1st page?
For sure, the use is not easy for inno's novice users.
I hope that your skills are better than your common sense
Reply With Quote
  #44  
Old 27-10-2015, 17:28
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,104 Times in 2,296 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
Code:
imgidx1:=loadimage(ExpandConstant('{tmp}\my.png'),WizardForm.Handle,0,0,450,750,IMF_Crop);
SetVisibleImgRgn(imgidx1,100,50,200,300);
DrawImages(WizardForm.Handle);
Code:
procedure SetVisibleImgRgn(ImgIdx,NewX,NewY,NewHeight,NewWidth: integer); 
external 'SetVisibleImgRgn@files:Isab.dll stdcall delayload';
ok, got it. should be working on something now.

Quote:
Originally Posted by rinaldo View Post
shortage of examples, in botva and in many others there are a dozen examples with the library, so you do so, that many of us use your library so fast .. not think peterf1999
I don't think examples are needed for this. I mean if you read the code section from the help file that comes with Inno Setup.
which reads "
The [Code] section is an optional section that specifies a Pascal script. A Pascal script can be used to customize Setup or Uninstall in many ways. Note that creating a Pascal script is not easy and requires experience with Inno Setup and knowledge about programming in Pascal or at least a similar programming language."
The reason I'm saying there is no need for example is because simple types are always there to guide you on how to use a function, if you had a little bit of knowledge of pascal/delphi, you would know what I'm talking about and what makes peterf not make examples.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
RamiroCruzo (27-10-2015)
  #45  
Old 27-10-2015, 22:23
rinaldo's Avatar
rinaldo rinaldo is offline
Registered User
 
Join Date: Sep 2015
Location: Rome
Posts: 433
Thanks: 101
Thanked 694 Times in 190 Posts
rinaldo is on a distinguished road
razor... I did before opening the dll to read


peterf ...I found that it's a great project .. I noticed that the driver can not read DirectX .. what do you think of this option?

Last edited by rinaldo; 28-10-2015 at 08:37.
Reply With Quote
Reply

Thread Tools
Display Modes

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 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



All times are GMT -7. The time now is 19:11.


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