|
i know i am asking u too much... but i am forced to... will u be able to give me an example??
|
|
|
|
|
Well, it is not difficult:
Open the resource editor and select the dialog corrensponding to you FormView then select one of the check boxes, click the right mouse button and finally choose Add Variable item in the newly appeared context menu.
On the appeared dialog, choose the Value item of the Category list box, give a meaningful name to the variable and finally click the Finish button.
The new created variable will reflect the checkbox state content each time you call UpdateData and will maintain that value even when the FormView will be no more visible.
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.
[my articles]
|
|
|
|
|
i have done all this. now one thing that i need to know is, this has to been put in on InitialUpdate Function or OnDraw function?
|
|
|
|
|
Whenever you need (I guess either in the OnInitialUpdate handler and just before closing your FormView, at least -you may need it also whenever check status changes, I don't know about-. Don't do it in the OnDraw method).
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.
[my articles]
|
|
|
|
|
i did that. this is what i did.
created a function for the checkbox. there is an interger values which stores the checkbox status.
OnInitialUpdate Function i have mentioned a function called GetCheckBoxStatus which checks the status of the checkbox and returns. (As far as i know OnInitialUpdate is a function which gets called each time the dialog opens). so each time OnInitialUpdate fucntion gets called the state of the checkbox is returned....right??
But i am not being set the state after changing. its resetting to the original value(checked).
i know this is a simple mistake.. but cant figure out. please help..
|
|
|
|
|
Chandrasekharanp wrote: OnInitialUpdate Function i have mentioned a function called GetCheckBoxStatus which checks the status of the checkbox and returns.
You don't need it, just call UpdateData and the (bound) member variable will be assigned with the check box status.
Chandrasekharanp wrote: But i am not being set the state after changing. its resetting to the original value(checked).
If I understand correctly what do you need, then you have to call UpdateData each time the check box status changes.
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.
[my articles]
|
|
|
|
|
UpdateData(TRUE) is been called each time the state of the check box is changed,
|
|
|
|
|
setting of check box is done. the idea which u told me. the file option is will not work. is there any other way to figure out this?
fetching the data without opening the page.
|
|
|
|
|
How to call Matlab functions in VC++ plz help me
#sanroop#
|
|
|
|
|
Why do you repost without even making Hamid know if his reply [^] was helpful or not?
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.
[my articles]
|
|
|
|
|
I think if your answer is helpful you will be not get any reply but if its not you will be get vote down .
modified on Monday, January 21, 2008 5:32:43 AM
|
|
|
|
|
Your answer got no reply and wasn't voted down (in fact it was voted up), hence was helpful. Now, what is the rationale behind reposting the original question?
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.
[my articles]
|
|
|
|
|
CPallini wrote: Your answer got no reply and wasn't voted down (in fact it was voted up),
But some days ago I saw exactly opposite of your answer I replied to someone and he said it was his answer but I got voted down here[^] (of course I guess why I got 1 )
CPallini wrote: what is the rationale behind reposting the original question?
I dont know why some people like to repost their questions maybe with this work their question will be on the top of page! or maybe they will be different answers
|
|
|
|
|
Hamid. wrote: maybe with this work their question will be on the top of page!
They deserve to be flamed for that.
Hamid. wrote: r maybe they will be different answers
Then they have to make you know about (maybe they consider your answer too difficult or incomplete).
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.
[my articles]
|
|
|
|
|
I am a C++ beginner, it is so harsh to start it >.<<br mode="hold" />
I wanna know how to read the data of a binary file using C++. Can anyone provide a simple source code to me?
Thanks~~~
Kennis
|
|
|
|
|
ofstream m_file;
m_file.open("123.bin", ios::app|ios::out|ios::binary);
|
|
|
|
|
Why an output stream to read data ?
|
|
|
|
|
Because it was my mistake.
|
|
|
|
|
You can use ifstream for that purpose. Check the doc here[^] for complete information.
More specifically, I suggest the use of the read function. There is an exemple of how to use it here[^].
|
|
|
|
|
Kennis wrote: I am a C++ beginner, it is so harsh to start it
You will definitely have to work through a real beginners course.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
hi every one
how can i create a kernel mode service?
i am searching for article or sample code about it.
plz help me
|
|
|
|
|
Two points:
1) "kernel mode" and "service" do not go together - services usually run in the local system account which is NOT the same as kernel mode
2) Try something radical like searching the articles here on CP with the word "service" - first result is a nice beginner's article
Judy
|
|
|
|
|
i've written an article about it. the source code registers a kernel mode driver and starts it. have a look at it.
http://www.codeproject.com/KB/system/interrupthook.aspx
Don't try it, just do it!
|
|
|
|
|
Hi Frienz,
I have developed one Image Viewer ActiveX control in vc6. It working fine in IE and Its not working in other browsers like
Mozilla, Netscape. I came to know that I need to write Plugins for working ActiveX controls in Mozilla Firefox etc.
So Can you please tell me how to write Plugins for ActiveX control to work in Mozilla Firefox.
Waiting for your valuable reply
Regards
Trinadh
|
|
|
|
|
IE and Firefox are two different engines. How do you expect something that you developed for IE to work on Firefox? For Firefox development, search google for "firefox addon development".
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|