|
0) The thread function should be declared as static in the dialog class
1) You could cast the first parameter by (AFX_THREADPROC)
2) You should delete the passed pointer (pParam=str1 and not pParam=&str1->mya)
at the end of its usage in the thread function
virtual void BeHappy() = 0;
|
|
|
|
|
j.v.r. wrote: error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)"
Read the "Creating the Secondary Thread" section of this article.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
How much memory can be consumed for a process that is running in
a) 32 bit environment
b) 64 bit environment
Is it 2G( less than ) per process? If so, is there any reason for such a limitation?
Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?
|
|
|
|
|
|
Google India directs all progamming questions here.
Once you agree to clans, tribes, governments...you've opted for socialism. The rest is just details.
|
|
|
|
|
Tim Craig wrote: Google India directs all progamming questions here
HeHeHe
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
Ah, but the C# people didn't answer quickly enough, so he came to the clever people. He just didn't want to disturb us at first...
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
Sorry to say but you got it all wrong. C# forum is where the good answers where given, and they appeared there sooner than here.
|
|
|
|
|
Well, that's called efficiency. You C# wallahs needed a 3 minutes head start.
Our answers used lazy instanstiation - so were not needed.
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
|
In a tree control I' like to replace the collapse/expand icons. Is this even possible?
|
|
|
|
|
You can change the icons alongside the + ans - signs with the TreeView_SetImageList[^] command.
It's time for a new signature.
|
|
|
|
|
|
I'm not sure on this as I have only used the TVSIL_NORMAL image list. I would suggest you give it a try and see what happens.
It's time for a new signature.
|
|
|
|
|
|
hello guys...I know what is bool but what is the difference between BOOL and bool. Some other examples are TRUE and true, FALSE and false, LONG and long. Why do we need such key words in capitals.
|
|
|
|
|
The ones in capitals are a throwback to the early days before these types were part of the language. They were added to the C headers to improve readability of programs.
It's time for a new signature.
|
|
|
|
|
The one in small case is C/C++ native data type that is one byte long and is used to store boolean values. The one in caps is M$ typedef'd variable. It is (usually ?) same as int or long which of course range in sizes from 2 to 4 bytes.
I personally use caps bool only to confirm to MFC/Win32 APIs and I use the native one everywhere else.
...byte till it megahertz...
|
|
|
|
|
What keywords are those? BOOL, LONG, TRUE and FALSE aren't keywords in C or C++?
I'd assume the ones you're talking about are a part of a Microsoft operating system interface (either typedeffed or defined) and are there to aid portability and/or get over particular problems with specific compilers.
Cheers,
Ash
|
|
|
|
|
|
the big onte are macros (per #define) declared types, the ones with small caps are parts of the languaage.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
How to minimize a dialog in taskbar.
i tried like ShowWindow(WS_MINIMIZE); but not working...
|
|
|
|
|
|
not is system tray, I want to make it minimize in taskbar.
|
|
|
|