|
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?
|
|
|
|
|
|
Hi,
I'm trying trying to re-compile some source code. The code was written in VC++. However, the writer only included the .h, .c, and a file called makefile. Hence, I'm having trouble re-compiling becuase I don't know the proper settings for the project. I get a lot of LNK2001 errors. I went through the "makefile" and it looks more like the type used on UNIX. Could someone tell me what it is? It's NOT a .mak file. Can I use it to set my project settings?
# Nmake macros for building Windows 32-Bit apps
!include <ntwin32.mak>
# If the rpc include directory is not included in the standard path
# you have to give the path to it here.
RPCINCLUDEPATH = ..
# If the rpc library is not included in the standard lib path
# you have to give the path to it here.
RPCLIBPATH = ..\bin\\
DEFINITION = ONCRPC.DEF
OBJS = CLNT_RAW.OBJ \
XDR.OBJ \
CLNT_TCP.OBJ \
CLNT_UDP.OBJ \
PMAP_RMT.OBJ \
RPC_PROT.OBJ \
SVC_AUTU.OBJ \
SVC_AUTH.OBJ \
SVC_RAW.OBJ \
SVC_RUN.OBJ \
SVC_TCP.OBJ \
SVC_UDP.OBJ \
XDR_MEM.OBJ \
XDR_REC.OBJ \
AUTH_NON.OBJ \
AUTH_UNI.OBJ \
AUTHUNIX.OBJ \
BINDRESV.OBJ \
CLNT_GEN.OBJ \
CLNT_PER.OBJ \
CLNT_SIM.OBJ \
GET_MYAD.OBJ \
GETRPCEN.OBJ \
GETRPCPO.OBJ \
PMAP_CLN.OBJ \
PMAP_GET.OBJ \
PMAP_GMA.OBJ \
PMAP_PRO.OBJ \
PMAP_PR.OBJ \
RPC_CALL.OBJ \
RPC_COMM.OBJ \
SVC_SIMP.OBJ \
XDR_ARRA.OBJ \
XDR_FLOA.OBJ \
XDR_REFE.OBJ \
XDR_STDI.OBJ \
SVC.OBJ \
BCOPY.OBJ \
NT.OBJ
all: oncrpc.dll portmap.exe
clean:
del $(OBJS) oncrpc.lib oncrpc.dll oncrpc.exp portmap.obj portmap.exe ..\rpcgen\oncrpc.dll
portmap.exe: oncrpc.lib portmap.obj
$(link) $(conlflags) $(ldebug) -out:portmap.exe PORTMAP.obj $(RPCLIBPATH)oncrpc.lib $(conlibsdll) wsock32.lib
copy portmap.exe ..\bin\pm_ascii.exe
oncrpc.lib: $(OBJS) oncrpc.def
$(implib) /out:oncrpc.lib /def:$(DEFINITION) $(OBJS)
oncrpc.dll: $(OBJS) oncrpc.lib oncrpc.exp
$(link) /DLL /out:oncrpc.dll -entry:_DllMainCRTStartup$(DLLENTRY) $(ldebug) oncrpc.exp $(OBJS) $(conlibsdll) wsock32.lib advapi32.lib
copy oncrpc.lib ..\bin
copy oncrpc.dll ..\bin
copy oncrpc.dll ..\rpcgen
.c.obj:
$(cc) /I$(RPCINCLUDEPATH) /DONCRPCDLL $(cdebug) $(cflags) $(cvarsdll) $*.c
|
|
|
|
|
Can you not just import makefile into a new VC++ project?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|