Part I of this tutorial covers basic concept of multithreading. If you have never used multithreading in your application and wish to know how to use multithreading in your applications and why, Then this article might be useful for you. I will cover samples and advanced topics of multithreading in the Part II of this tutorial.Threading Concepts:A thread is a path of execution. Each application has a default thread called 'Main Thread' or 'PrimaryThread'. You can create multiple threads in your program. Other threads besides primary threads are called'Secondary Threads'. Each process has at least one of more threads.Multithreading:Running more than one thread simultaneously is multithreading.Why multiple threads?Sometimes your program requirement is to do more than one task simultaneously....
Sunday, 31 July 2011
COM Interview
IntroductionWhat is IUnknown? What methods are provided by IUnknown? It is a generally good idea to have an answer for this question if you claim you know COM in your resume. Otherwise, you may consider your interview failed at this point. IUnknown is the base interface of COM. All other interfaces must derive directly or indirectly from IUnknown. There are three methods in that interface: AddRef, Release and QueryInterface. What are the purposes of AddRef, Release and QueryInterface functions? AddRef increments reference count of the object, Release decrements reference counter of the object and QueryInterface obtains a pointer to the requested...
Saturday, 30 July 2011
Windows Data Types
Windows Data TypesThe data types supported by Windows are used to define function return values, function and message parameters, and structure members. They define the size and meaning of these elements. For more information about the underlying C/C++ data types, see Data Type Ranges.The following table contains the following types: character, integer, Boolean, pointer, and handle. The character, integer, and Boolean types are common to most C compilers. Most of the pointer-type names begin with a prefix of P or LP. Handles refer to a resource that has been loaded into memory.For more information about handling 64-bit integers, see Large Integers.Data typeDescriptionAPIENTRYThe calling convention for system functions.This type is declared in WinDef.h as follows:#define...
VC++ Interview Part - 1
Starting point of windows application?WinMain() is the entry point of Windows applications.Parameters of WinMain()int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpszCmdLine, int nCmdShow)hInstance – The handle of the currently running module.hPrevInstance – A handle to a previous instance of the application. For a Win32-based application, this parameter is always NULL.lpCmdLine – Points to a null-terminated string specifying the command line for the application.nCmdShow – Specifies how the main window of a GUI application would be shown.What is windows programming? How it’s working?Windows is an event driven programming mechanism, in which applications respond to events by processing messages sent by the operating system. An event could be a keystroke, a mouse...
Popular Posts
-
Differences between DLL and EXE? Can an assembly have EXE? Can a DLL be changed to an EXE? Compare & contrast rich client (smart clients...
-
Part I of this tutorial covers basic concept of multithreading. If you have never used multithreading in your application and wish to know...
-
Windows Data Types The data types supported by Windows are used to define function return values, function and message parameters, and s...
-
1) Explain about C#? C # is also known as c sharp. It is a programming language introduced by Microsoft. C# contains features similar to Ja...
-
Visual C++ Debugging: How to manage memory leaks? Q: What is a memory leak? A: The failure to properly deallocate memory that was previously...
-
Q:- What is thread & process? Ans:- Threads are similar to processes, but differ in the way that they share resources. Threads ar...
-
1) Explain about visual basic and its importance? Microsoft holds license for Visual basic applications and it has been developing that la...
-
Que: What is the difference between GetMessage and PeekMessage ? Ans: GetMessage function waits for a message to be placed in the queu...
-
1) Explain what is UML? UML is defined as a standard visual specification language and it is primarily used for object modeling. It uses g...
-
What makes J2EE suitable for distributed multitiered Applications? - The J2EE platform uses a multitiered distributed application model. Ap...