Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl15-Aug-05 10:24
mcgahanfl15-Aug-05 10:24 
GeneralRe: AfxIsValidString does not seem to work. Pin
Tim Smith15-Aug-05 13:40
Tim Smith15-Aug-05 13:40 
GeneralRe: AfxIsValidString does not seem to work. Pin
mcgahanfl16-Aug-05 3:02
mcgahanfl16-Aug-05 3:02 
GeneralMake control part of Window Pin
tommazzo15-Aug-05 5:19
tommazzo15-Aug-05 5:19 
GeneralRe: Make control part of Window Pin
Prakash Nadar15-Aug-05 6:54
Prakash Nadar15-Aug-05 6:54 
GeneralRe: Make control part of Window Pin
tommazzo15-Aug-05 7:40
tommazzo15-Aug-05 7:40 
GeneralMultithreading Pin
Ali Tavakol15-Aug-05 5:04
Ali Tavakol15-Aug-05 5:04 
GeneralRe: Multithreading Pin
Bob Stanneveld15-Aug-05 5:57
Bob Stanneveld15-Aug-05 5:57 
Hello,

Fear not fellow programmer for we are here to help you on your quest!

A shall explain briefly what a thread is. You can start exploring this[^] part of MSDN for more information.

A thread is an object in your process that can be sheduled by the OS to take a slice of processor time. The code that is executed is executed parallel with other code of your process. So basically, if you write a multithreaded application, multiple parts (threads) of your application are running at the same time.

By default, your application has just one thread that executes everything after eachother. If you have background tasks or other things that require the user interface to be blocked a long time (such as serial communication), threads are a solution. This object runs seperately from your other code, and therefore cannot block the user interface.

The difference between an normal function and a thread is the way it is executed. A normal function is called by an other part of your code, does its trick and then returns to the caller. When the function is executed, it blocks the caller until it has finished its task.
A thread is also a function, but this function doesn't get called by your code (you can, but normally people don't do this). This function is called by the OS when the thread object is started. It behaves just like the main function. The only difference is that you have to watch out with synchronization and other problems that come with multithreading.

There are some thread classes here on CP that can save you a lot of work. Search for thread and you will find enough information about this stuff.

Hope this helps. Smile | :)

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralCSocket locks up Pin
Roger Garrett15-Aug-05 4:04
Roger Garrett15-Aug-05 4:04 
GeneralVC++ .NET code no longer works, originally compiled on VS2002 Pin
NuclearNed15-Aug-05 3:49
sussNuclearNed15-Aug-05 3:49 
GeneralGlobal objects in MFC Pin
TOlivier15-Aug-05 3:17
TOlivier15-Aug-05 3:17 
GeneralRe: Global objects in MFC Pin
M.Mehrdad.M15-Aug-05 3:46
M.Mehrdad.M15-Aug-05 3:46 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 4:15
TOlivier15-Aug-05 4:15 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 15:01
Achim Klein15-Aug-05 15:01 
GeneralRe: Global objects in MFC Pin
TOlivier16-Aug-05 4:24
TOlivier16-Aug-05 4:24 
GeneralRe: Global objects in MFC Pin
Stephan Pilz15-Aug-05 3:51
Stephan Pilz15-Aug-05 3:51 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 4:17
TOlivier15-Aug-05 4:17 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 4:45
Achim Klein15-Aug-05 4:45 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 11:15
TOlivier15-Aug-05 11:15 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 12:07
Achim Klein15-Aug-05 12:07 
GeneralRe: Global objects in MFC Pin
Bob Stanneveld15-Aug-05 6:05
Bob Stanneveld15-Aug-05 6:05 
GeneralRe: Global objects in MFC Pin
TOlivier15-Aug-05 11:26
TOlivier15-Aug-05 11:26 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 13:52
Achim Klein15-Aug-05 13:52 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 13:56
Achim Klein15-Aug-05 13:56 
GeneralRe: Global objects in MFC Pin
Achim Klein15-Aug-05 14:36
Achim Klein15-Aug-05 14:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.