|
i have a proble regarding visual c++ with msaccess.Friends please send me any simple way to access data from msaccess and how to add data to the table and update as well as...
i hope sombody will send me.For those i tell thanks..
|
|
|
|
|
|
If you are using MFC, check out the CDatabase and CRecordset classes. You may also want to read up on what a DSN is, although one is not required.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|
I'v a dialog based program with a RichEdit control in it and a few buttons to format the text within it. Now what I wanna do is to be notified whenever the caret positon changes through the lines. (and update the sate of some radio buttons accordingly).
Thank you masters!
|
|
|
|
|
My thinking...
"Golly, what a dumb question. Just look at the edit control, and see what messages it sends back. Probably EN_UPDATE or such."
"Hmm, OK, it's not that... Lets fire up a normal edit and look".
"Hmm, just CTL_COLOREDIT coming back"
lots of other thoughts, but in the end, I found:
EN_SELCHANGE
The EN_SELCHANGE message notifies a rich edit control's parent window that the current selection has changed. A
rich edit control sends this notification message in the form of a WM_NOTIFY message.
To receive EN_SELCHANGE notifications, specify ENM_SELCHANGE in the mask sent with the EM_SETEVENTMASK message.
Note, when there is no selection (that is, the caret is displayed) we have, in fact, the empty selection. Thus,
when the caret position changes (for example, clicking a mouse, typing, or pressing an arrow key), an EN_SELCHANGE
message is sent.
I hope that works for you. Just note that you have to turn notifications on.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Thank you, It works.
Thank you masters!
|
|
|
|
|
Hi,
I have a TabControl with 2 tabitems in Main Dialog.I have use two dialogs in tab items.Code is:
m_Dialog[0]->Create(m_DialogID[0],GetParent());
m_Dialog[1]->Create(m_DialogID[1],GetParent());
I need to clear All the values in first dialog(first tabitem)while selecting the another dialog(second tabitem).
please help me..............
Thanks & Regards,
Anitha
modified on Monday, January 19, 2009 4:13 AM
|
|
|
|
|
AnithaSubramani wrote: .I need to clear the text box while changing the tabitem.
To clear the text box use SetWindowText("");
MSDN:
As users click tabs or buttons, the tab control (CTabCtrl) sends notification messages[WM_NOTIFY] to its parent window. Handle these messages if you want to do something in response.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
You can simply map TCN_SELCHANGE[^] and the set/reset the text box using "SetWindowText" API.
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
I need to clear the text box in first tabitem, if i select the second tabitem and vice versa.
|
|
|
|
|
AnithaSubramani wrote: (Very Urgent..........)
Don't use 'Very Urgent ' if you need quick help, try 'Very-Very-Very-Very-Veeeery-Urgent '.
BTW: This notification [^] looks promising.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: try 'Very-Very-Very-Very-Veeeery-Urgent'.
You should not reveal CP's automated answering script.
|
|
|
|
|
Hi,
I have a TabControl with 2 tabitems in Main Dialog.I have use two dialogs in tab items.Code is:
m_Dialog[0]->Create(m_DialogID[0],GetParent());
m_Dialog[1]->Create(m_DialogID[1],GetParent());
I need to clear All the values in first dialog(first tabitem)while selecting the another dialog(second tabitem).
please help me..............
|
|
|
|
|
I replied to your post earlier. What happened...
Did you try the solution posted?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi all,
I have SDI type application,i have split it in 1 row and 2 columns.
for first column i have use TreeView and for second column i have used FormView.
on click event on TreeView according to tree items, i have replaced a view in second column,here the replace view working fine but the replaced view not got the focus.
focus is remain at first column.
I want if i replace a view for second column and its is replaced succssfully than focus on second column instead of first column.
please tell me how can i do this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You probably have to explicitly SetFocus to the view you want to be active?
|
|
|
|
|
Two linked lists intersect sometimes. What does this mean? They have the same value at intersection or?
Set 1: 1, 2, 3, 4
Set 2: 5, 6, 7, 9, 2
If I store these values in two linked lists, does it mean they have to intersect at 2 or does it mean something else.
|
|
|
|
|
CodingYoshi wrote: Two linked lists intersect sometimes. What does this mean?
Couldn't you ask your teacher, could you?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You are making an assumption that everyone has access to a teacher. I googled and found many articles about how to find the intersection of two linked lists but none which explain why would they intersect and when/why would you want them to intersect. A real life example will help.
I have been programming for quiet a while but I never had to find out if two linked lists intersect. BTW I mostly have been using managed languages.
|
|
|
|
|
I made such an assumption, because your request looked like an homework assignment. I may be wrong, occasionally.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
In set theory, the intersection on two sets is a third set that contains all the elements the first two have in common.
Steve
|
|
|
|
|
CodingYoshi wrote: What does this mean?
It means it's a coincidence that both lists contain a node having the value 2.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Okay lets reword the question. Why would someone want the linked lists to intersect? Advantages or Disadvantages?
|
|
|
|
|
CodingYoshi wrote: Why would someone want the linked lists to intersect?
No reason that I can think of. Yes it's possible, but I've never heard of such an implementation. If you are visualizing something like:
class set : public list
{
}; This says that a set is-a list, which it can't be because a set does not do everything that a list does. Perhaps you wanted a has-a construct where the set contains a list.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|