|
Nice post but you didn't explain what the spoon is for.
Oh, if it involves his hind parts I don't want to know.
|
|
|
|
|
HI! help, please, me.
MFC, Visual C++ STUDIO 2008
I want to place string into ComboBox that
Is on modeless dialog window.
I’m using two classes:
class CAdodc_my : public Cdialog
class CMyModeless2 : public Cdialog
CMyModeless2* m_pModeless;
CComboBox m_cComboBoxModeless;
BOOL CAdodc_my::OnInitDialog()
{
m_pModeless = new CMyModeless2( this);
m_pModeless->m_cComboBoxModeless.AddString("SPARTAC");
}
Debug Assertion Failed!
Program: ...Tested_Examples_Studio_2008\ADOMy_first\Debug\ADOMy_first.exe
File: f:\dd\vctools\vc7libs\ship\atlmfc\include\afxwin2.inl
Line: 879
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
|
|
|
|
|
At the time you try to AddString, you have not yet created the dialog, so the ComboBox doesn't exist yet.
After you create the instance with new, you need to call Create to actually create the windows.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
is m_cComboBoxModelessinitialized/created?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
CHIVOTIOV wrote: m_pModeless->m_cComboBoxModeless.AddString("SPARTAC");
Do this in CMyModeless2::OnInitDialog() .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I have string data for a dialog. However when i click on the a button i want this string data to be displayed on the second dialog.
Please let me know how to achieve this...
Thanks in advance
|
|
|
|
|
|
I think the link to that tox's article should be permanently added to the forum page.
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]
|
|
|
|
|
Yep, it's a shame it is so under-rated...
|
|
|
|
|
Yes. I think the article for beginners are the most valuable here at CP.
Unfortunately, such articles are often downvoted by the 'very-smart-super-expert' people who enjoys themselves just with the 'most-advanced-innovative-stuff' (not to mention the 'trollistic-coward-univoter' CP plague).
I suppose there is also something personal against tox, since he is a bit 'touchy', no need to say that if you downvote an article beacuse you dislike the author then you're definitely a pathological idiot.
It's frustrating form me, having to say, each time: "Trust me, it scored bad, but is actually a very good article".
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]
|
|
|
|
|
Can u get the second dialog's handle,if so u can use postmessage()
Later buggers harm more.
|
|
|
|
|
Hi all
I am a view class which is derived from CScrollView.I am overriding OnSize() function.
But when the window is minimized or maximized it is not calling.When it is restored it is calling.
Can anybody help me.I have to do some calculations when the window is minimized.
Thanks and regards
Deepu.
|
|
|
|
|
WM_GETMINMAXINFO
BOOL IsIconic(HWND wnd)
--
Arman
|
|
|
|
|
|
Hi i am compiling one project in VS2005
while building that in Release Unicode i am getting a linker error that cannot open "../release - unicode/****_.lib".
In Linker setting extra path is getting appended in that...
please tell me how to remove it so as to build the project successfully
Thanks,
|
|
|
|
|
Hi all
How can i call funtion in thread .I need simple Thread example.Plz help me
|
|
|
|
|
|
thank for reply but i need to pass myfunction in thread.Simple i want to create a thread and in this thread i want to pass
Copy Function .Plz help me
|
|
|
|
|
What do you mean by "pass myfunction in thread" ? Do you mean that you have to call your function from within the thread ? If yes, you need to make sure that your function prototype is the same as the one expected by the CreateThread function (see here[^]).
|
|
|
|
|
Here[^] is an excellent article about worker threads. A bit long but very interesting.
|
|
|
|
|
Ok both are same article.But i need very simple only two line of example how can i pass Copy function in thread.Plz help me i don't need two much high funda article becouse i don't know any thing about THREAD.So plz help me
|
|
|
|
|
If you really "don't know anything about threads" then it's the time either to:
- acquire some knowledge about (and hence read that f*!?ing article!!! ).
or
- simply abandon the idea of using threads.
BTW option two is for the weaks, so, once again, read the article.
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]
|
|
|
|
|
or quit programming since you lack the necessary curiosity.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Good point!
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]
|
|
|
|
|
Luc Pattyn wrote: ...you lack the necessary curiosity.
Eloquently said.
BTW, there's a type-o on your home page.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|