|
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
|
|
|
|
|
Hi David,
DavidCrow wrote: there's a type-o
there could be several, and they could well be real mistakes, can you be more specific please.
I'm a bit in doubt about "client's IP address" ...
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
|
|
|
|
|
Luc Pattyn wrote: ...can you be more specific please.
strengthen
Luc Pattyn wrote: I'm a bit in doubt about "client's IP address" ...
That's correct.
"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
|
|
|
|
|
Hi David,
DavidCrow wrote: strengthen
Waw. Thanks for pointing that out. I had no idea, and Googling both shows both appear in similar quantities. I am struggling with th and ht quite often, e.g. height as opposed to width.
is there an easy way to figure it out (apart from Google, Webster and other lookups)?
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
modified on Wednesday, February 18, 2009 10:33 AM
|
|
|
|
|
As far as I understand, you want to pass a function pointer to a thread procedure. In a simplified way it could be done like so:
void MyFuncToPass(int)
{
//..
}
UINT MyThread(PVOID param)
{
typedef void (*F)(int);
F func = (F)param;
func(10); // Call my func passed
return 0;
}
void TheCaller()
{
// run the thread and pass the function to it.
AfxBeginThread(MyThread, (void*)MyFuncToPass);
}
--
Arman
|
|
|
|