home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1695
Discussions: 188,401, Posts: 2,243,608, Members: 232,631
Old February 2nd, 2005, 12:20 PM   Digg it!   #1 (permalink)
Junior 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....

danburt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Only for those who knows Spanish DanGrease IMO Community 22 September 21st, 2003 11:32 AM
Site with english sayings muno IMO Community 26 July 14th, 2003 09:13 AM
VU meter thePh@r@oh PC Modification 21 June 29th, 2003 06:15 PM
Should we go to War? PSU2Fan IMO Community 167 January 26th, 2003 11:53 PM
Sun to charge for StarOffice 6.0 linux_guru Applications and Operating Systems 20 February 26th, 2002 04:15 PM

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Unarmed man on his stomach shot by .. (6)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
For cheap price and good qualit.. (1)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:20 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28