Go4Expert Member
1Nov2006,18:19   #41
rajeswaridvssnr's Avatar
Processes and thread are very similar but they differ in the way they share their resources. Processes are independent and have its own address space. If two independent processes want to communicate they do this by using the following techniques 1.Message Passing 2.Sockets 3. named pipes
Go4Expert Member
1Nov2006,18:24   #42
rajeswaridvssnr's Avatar
Create a Named Mutex.
HANDLE hMutex=CreateMutex(TRUE,_T(“NamedMutex”))
Go4Expert Member
6Nov2006,15:08   #43
rajeswaridvssnr's Avatar
CMenu newMenu;
newMenu.LoadMenu (IDR_MENU1);
AfxGetMainWnd()->SetMenu( &newMenu );
AfxGetMainWnd()->DrawMenuBar();
newMenu.Detach ();
Go4Expert Founder
6Nov2006,15:47   #44
shabbir's Avatar
Quote:
Originally Posted by rajeswaridvssnr
Create a Named Mutex.
HANDLE hMutex=CreateMutex(TRUE,_T(“NamedMutex”))
And check the Mutex existence for each of your instance launch and dont allow it to launch if it exists.
Newbie Member
3Jan2007,14:10   #45
hellokareem's Avatar
Quote:
Originally Posted by shabbir
And check the Mutex existence for each of your instance launch and dont allow it to launch if it exists.
This answer is sutable for restrict only one instance of a process,
if u want make singleton class make custructor as private
Newbie Member
3Jan2007,14:18   #46
hellokareem's Avatar
Quote:
Originally Posted by rajeswaridvssnr
Processes and thread are very similar but they differ in the way they share their resources. Processes are independent and have its own address space. If two independent processes want to communicate they do this by using the following techniques 1.Message Passing 2.Sockets 3. named pipes
simple one
Use memory-mapped files to share data memory between
processes
Newbie Member
3Jun2007,00:00   #47
srivenkateshg's Avatar
Quote:
Originally Posted by rajeswaridvssnr
ANSI code represents 8bytes data where UNICODE represents 16bytes data for supporting universal languages. One major draw back to ASCII was you could only have 256 different characters. However, languages such as Japanese and Arabic have thousands of characters. Thus ASCII would not work in these situations. The result was Unicode which allowed for up to 65,536 different characters
-----------------
This is exactly true. A small correction in the above would be 'ANSI code represents 8bits( one byte) data where UNICODE represents 16bits (2 bytes) data for supporting universal languages.
Newbie Member
3Jun2007,00:03   #48
srivenkateshg's Avatar
Quote:
Originally Posted by hellokareem
simple one
Use memory-mapped files to share data memory between
processes
to add one more techniques, if it is a windows based application, the simplest one is to use WM_COPYDATA message
Newbie Member
8Aug2007,19:29   #49
destiny.city's Avatar
If anybody can se me the answers for the questions, it is good start for a beginner like me.
Newbie Member
8Aug2007,19:32   #50
destiny.city's Avatar
If somebody can send me the answers for the MFC questions plzzzzzzzzzzzzzzz, i have an interview