Thread: Need to be translate....
-
February 2nd, 2005, 12:20 PM #1Junior Member
- Join Date
- Nov 2004
- Posts
- 29
Need to be translate....
Hi there,
I bought a book give me a code from Borland Delphi 7.0
-----------------------------------------------------------------------------------------------------
procedure TForm1.FormShow(Sender: TObject);
var
IniFile : TIniFile;
begin
Form1->Top=1;
begin
IniFile := TIniFile.Create('ProgramSetting.dll');
if IniFile.ReadString('Main','Enable','qqq') = 'True' then
cbEnable.checked := true;
-----------------------------------------------------------------------------------------------------
actually I don't really understand y it's happened. I mean I've no idea to translate it to Borland C++ 6.0
I've tried looking in the help, but it just give me something like...
-----------------------------------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent *Owner) : TForm(Owner)
{
TIniFile *ini;
ini = new TIniFile( ChangeFileExt( Application->ExeName, ".INI" ) );
Top = ini->ReadInteger( "Form", "Top", 100 );
Left = ini->ReadInteger( "Form", "Left", 100 );
Caption = ini->ReadString( "Form", "Caption",
"Default Caption" );
ini->ReadBool( "Form", "InitMax", false ) ?
WindowState = wsMaximized :
WindowState = wsNormal;
delete ini;
}
--------------------------------------------------------------------------------------------
... that couldn't be understood. What is the 'ChangeFileExt'?
So i need the Borland code to be translated into C++.
I'll appreciate any help...
Thnx...
daniel....
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Only for those who knows Spanish
By DanGrease in forum IMO CommunityReplies: 22Last Post: September 21st, 2003, 10:32 AM -
Site with english sayings
By muno in forum IMO CommunityReplies: 26Last Post: July 14th, 2003, 08:13 AM -
VU meter
By thePh@r@oh in forum PC ModificationReplies: 21Last Post: June 29th, 2003, 05:15 PM -
Should we go to War?
By PSU2Fan in forum IMO CommunityReplies: 167Last Post: January 26th, 2003, 11:53 PM -
Sun to charge for StarOffice 6.0
By linux_guru in forum Applications and Operating SystemsReplies: 20Last Post: February 26th, 2002, 04:15 PM



LinkBack URL
About LinkBacks



Reply With Quote

Good evening my dear guys.Please share the thoughts about the tv shows and movies. Big Time Rush Season 4 Episode 8 Leyla ile Mecnun Season 3 Episode 44 Watch Fast & Furious 6 Online...
enjoy movies NOW