What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Saveing in C++

Saveing in C++
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Saveing in C++
Ok I understand how it gets the number now. Thanks.

But now how do I call that number back into the Color propertie of my edit box.

I used this to save the Color number:

code:
TIniFile *StartUp = new TIniFile("IValues.ini");

StartUp->WriteString("CtlValues",  "txtColor",     Edit1->Color);

delete StartUp;

I tried to load it in with this but I get debug error:

code:
TIniFile *StartUp = new TIniFile("IValues.ini");

Edit1->Color  = StartUp->ReadString("CtlValues",  "txtColor", "");

delete StartUp;

Debug Errors:

quote:
[C++ Warning] save.cpp(30): W8018 Assigning AnsiString to TColor
[C++ Error] save.cpp(30): E2034 Cannot convert 'AnsiString' to 'TColor'

So it looks like to me that the Edit1->Color can't convert the Color number (AnsiString) to Edit1's Color propertie.

How would I get this to work?


*Sorry for all the questions. You all have been a big help. I'm new to this so don't mind me. :)

This post was edited on 01-04-2005 at 01:08 AM by DJeX.
[Image: top.gif]
01-04-2005 01:07 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Saveing in C++ - by DJeX on 01-02-2005 at 09:34 PM
RE: Saveing in C++ - by RaceProUK on 01-02-2005 at 10:18 PM
RE: Saveing in C++ - by DJeX on 01-02-2005 at 10:59 PM
RE: Saveing in C++ - by Choli on 01-02-2005 at 11:08 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 01:58 AM
RE: Saveing in C++ - by CookieRevised on 01-03-2005 at 02:58 AM
RE: Saveing in C++ - by Choli on 01-03-2005 at 08:51 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 09:37 PM
RE: Saveing in C++ - by TheBlasphemer on 01-03-2005 at 09:51 PM
RE: Saveing in C++ - by DJeX on 01-03-2005 at 10:26 PM
RE: Saveing in C++ - by Choli on 01-03-2005 at 10:27 PM
RE: Saveing in C++ - by CookieRevised on 01-03-2005 at 11:11 PM
RE: Saveing in C++ - by Choli on 01-03-2005 at 11:39 PM
RE: Saveing in C++ - by DJeX on 01-04-2005 at 01:07 AM
RE: Saveing in C++ - by RaceProUK on 01-04-2005 at 05:56 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On