|
Hi,
I have two questions on mixing use of MFC and Win32 ,
1. How can I create Win32 childWindow in CDialogs or in other MFC classes after creating a project by MFC AppWizard in eVC3.0 ?
2. How can I create MFC CDialog after i create a pure Win32 application in eVC3.0 ?
Any books or material that i can refer to on the above two problems ?
Thanks so much
|
|
|
|
|
U can refer Programmin VC++ by Kruglenski Microsoft Press.Even I am trying out in same area.
|
|
|
|
|
Hi SiddharthAtw,
I have got the book and read it, but I cannot find the stuff related to it.
Could you pls point me to the right chapter of the book ?
Thanks very much.
Patrick
|
|
|
|
|
What is the exact differece between event and mutex w.r.t thread syncronization. I found that they can be used interchangably so where excatly is the difference. If possiable can any one give an example where event will be used and where mutex can be used.
thanx in advance.
Prakash.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Events can be fired by lots of different threads at the same time, I think, whereas a mutex is something owned by one thread only.
So when a thread is waiting for an event, it can be fired by more or less any other thread, whereas if it is waiting for a mutex, it is one specific thread that releases it.
"Time to give a Newtonian demonstration,
of a bullet, its mass and its acceleration."
-Stephen Hawking the gangsta rapper
|
|
|
|
|
They say that it takes a pinch of salt to make the food tasty thats what you did.
Thanx a lot, now i specifically understood where i can use mutex and where events thanx again "
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
Hi:
I want to change the background color of the CTabCtrl(such as the area that doesn't be covered by the tabs).I try onctrlcolor() and onerasebackground(), but seems that they don't work. The background color is always the default one.How could I do? I search this site, but can't find a solution that works .
Thanks
Benben
|
|
|
|
|
even i am looking for the same..! if u know answer please let me know my friend.
|
|
|
|
|
Hi~
How can i read and write DXF file format in vc++?
and where can i get the source code?
Thank's for any help
|
|
|
|
|
You might want to give this a look. Also, read the comments posted to the article - further resources are listed.
Shog9
---
You'd better turn back, before the frost sets in.
These desert nights are for weathered men,
The ones who've already given in...
|
|
|
|
|
Did you used the project CDex from "http://sourceforge.net/" ? Please help me,if you did it successfuliy.
Rap off for you,for me,for our human.
|
|
|
|
|
Have you looked at the helpful "howto_compile.txt " file that comes with the source code?
- Mike
|
|
|
|
|
What is the "lame source code"? And Where to get it?
Rap off for you,for me,for our human.
|
|
|
|
|
Try typing LAME into Google, & see what you get...
Shog9
---
You'd better turn back, before the frost sets in.
These desert nights are for weathered men,
The ones who've already given in...
|
|
|
|
|
Hi all,
Some days ago I stumpled upon a minor problem in my latest editor.
Imagine you have a modal dialog box and you then click a button which should make the modal dialog go inactive for some time so the user can do some stuff in the main window. So, then when hitting, say, escape in the main window the dialog box from before once again becomes modal.
I found some interesting functions in MSDN:
- EndModalState() / BeginModalState()
- EndModalLoop() / RunModalLoop()
However, I'm experiencing problems with the functions above. First off, the EndModalState() doesn't make the dialog become completely modeless. That is, one cannot use any of the main window's menus or anything in the client area.
Then I tried the EndModalLoop() which actually kind of did what I wanted.. until I found out that that function actually just ends the dialog (that is, return from the DoModal() function) and therefore I cannot continue the old dialog again
So, now my question is to you guys.. do you have any idea on how to achieve this?
Help is greatly appreciated since it prevents me from continuing my work!
OH, and this is MFC, btw!
Thanks in advance,
Soren Dreijer
BlackSmith Studios
|
|
|
|
|
The simplest solution would be to just make the dialog modeless. To simulate the modal behavior, have the dialog enable and disable the parent window as required. If you need the return value from DoModal() , you'll have to establish some other mechanism to return that information (since you won't be calling DoModal() ).
Software Zen: delete this;
|
|
|
|
|
Hey,
Great idea.. already implemented it and it works like a dream.. thanks a bunch! (to make the dialog return a value I could just send a message to the main window or something similar, I guess )
|
|
|
|
|
i was wondering how could i clear a screen in command prompt, i program apps under command prompt and i was wondering to clear anything
|
|
|
|
|
I forgot some ways of actually doing this but I think the best and easiest way would be 'system("cls");', right know I also am doing alot of console programming, I was wondering, are you familiar with the STL library?
|
|
|
|
|
Try searching in the MSDN for the API function AllocConsole . The console functions let you do this sort of thing.
Software Zen: delete this;
|
|
|
|
|
sorry, i have no msdn, does anyone have any other solution, and the system call doesn't seem to work
|
|
|
|
|
|
Hi,
I'm trying to create a dll, but I get an LNK2001 error at a line on my .def file. Why does this happen? I thought .def prevented this. Thanks.
|
|
|
|
|
Anonymous wrote:
...I get an LNK2001 error at a line on my .def file
And that line would be?
Anonymous wrote:
Why does this happen?
Have you looked here?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|