|
Are you sure you are not saving values in the registry? This is where GetProfiltString() looks unless you are using Win95/98.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Could you please tell me how this .ini file created ?
Regards,
Paresh.
|
|
|
|
|
Actualy i don't know. All app have '.ini' files (app_name.ini). I use it for saving some info and load it back vhen I need it (eg. next time app starts...)
|
|
|
|
|
How did you created <appname>.ini file ?
Regards,
Paresh.
|
|
|
|
|
I found what was my trouble. He was writing my info in registry, all i had to do is comment te line in InitInstance:
"SetRegistryKey"(_T(......"
Thx to ALL!
|
|
|
|
|
question as my subject.thanks.
ytfrdfiw
|
|
|
|
|
Hi everybody,
does anybody already used a chart in MFC?
I need for example a "line-diagram" EXAMPLE
Does it exists free MFC Diagrams ? Or only commercial ?
Thanks
|
|
|
|
|
There are many charting controls, also here [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
Thanks you two !
I even don't find beautiful charts in commercial sites, i think
the nice charts with 3D effects are only for C#.
But the free CodeProject-Charts are also nice, i'll try them
Have a nice day
|
|
|
|
|
You can also use the OCX that com with the visual studio suite.
Using that ocx allows you to use the charts in 3D also...
Hope this helps.
|
|
|
|
|
Thanks,
i see only .NET related things about OCX.
Do you have Documentation about it?
|
|
|
|
|
It is very easy:
Project -> Add to project -> Components and controls
It opens a dialog and you should choose REGISTERED ACTIVEX CONTROLS.
Then you should search for MICROSOFT CHART CONTROL 6.0 (SP4) (OLEDB).
Other ways to do it is to get in contact with enterprises that manufacture things like that like DUNDAS.
Hope this helps...
PS: I've just noticed that I'm giving you instructions for vc++6... hope this is not a problem.
|
|
|
|
|
The task sounds simple:
I have to load a long list of files into a list control box in a dialog.
I do it by calling my function FeedFileToListControl() in the OnInitDialog().
The problem is that my function takes a long time to run and the dialog just doesn't show up before the OnInitDialog() returns.
I want to have the dialog shows up first, then the Items are added into the list control in the dialog.
So, where should I put my FeedFileToListControl() function ?
|
|
|
|
|
In a separate thread. If you don't do that, either your dialog won't be displayed (if you do that in OnInitDialog for example) or it will freeze during the loading (if you manage to call your function after everything has been initialized.
Once everything has been loaded, you can send a message to your dialog so that it can fill the list. Don't work with the GUI directly in the separate thread.
|
|
|
|
|
There are several ways:
(1) A separate thread.
(2) A one-shot timer: set a timer in the InitDialog then fill the listbox the first time the WM_TIMER message occurs.
(3) Make a PostMessage of a custom message for the application itself and then perform listbox initialization in the message handler.
...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
It seems that to avoid freezing the dialog, I should use a seperate thread to insert item into the list. This thread should be created and starts after the dialog has showed up. But exactly when to do it ??? I haven't got where should I put my AfxBeginThread(). (I don't want to use a timer here)
|
|
|
|
|
If you put the initialization code in a separate thread, you can also start it in InitDialog method, since it will not freeze the application.
However, IMHO you can keep the whole matter simpler using a one-shoot timer or a PostMessage making apparent to the user that you're performing initialization (an hourglass cursor, for instance).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
GameProfessor wrote: I want to have the dialog shows up first, then the Items are added into the list control in the dialog.
So, where should I put my FeedFileToListControl() function ?
thread is only solution, but beware calling UI function from Worker thread bring some drastic result !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi Friends,
i am new to visualc+==
in my application i have the clistview control , the listview is filled up by soem other hardware..machines which is connected with this appliaction..
after i filled up listview i want to store all the value into access database..
my listview has 7 rows..
no name low high reading result judge
-------------------------------------
1
2
4
4
4
4
4
4
4
4
like the above in alll rows and columns got values..
after filled up i want to store all the avlue to ms-access datbase..
can anybody have idea or example source code to insert the value into table..
how to i select first record to finish to end record ...
Thanks in adavance for your help..
waiting for yuor help..
with regards,
karthi...
|
|
|
|
|
could you explain your problem in more depth!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi;
I need to set red color for the clients data for disconnected clients and others to be blue whose connected in CListCtrl.But problem occure using SetTextColor when we minize the window and again restore it set color of whole list control not for the single row.I need to set color red for particular row which clients has been disconnected.
With Regards,
Abhijit
abhi
|
|
|
|
|
See these examples are helpful for you link1[^] and link2[^]
|
|
|
|
|
Is there some way how to correctly fire some event in WebBrowser?
I need to change selection index of <select> element but
changing selectedIndex of the IHTMLSelectElement does not fire "onchanged" event.
How can I fire this event?
Thank you.
rrrado
|
|
|
|
|
Sounds like you need IHTMLElement3::fireEvent .
Steve
|
|
|
|