|
Hi,
i want to disply a text (CString) in RichEdit control in diffrent font.
so can anybody Please tell me How to do it?
Thanks in advance
|
|
|
|
|
|
hi,
pls anybody tell me about windowless mode?what is the relationship between DirectX and windowless mode??
Thanks in advance
Siddharth
|
|
|
|
|
What do you mean 'windowless'? In directX there must be a window. I'm guessing you are talking about fullscreen mode? In which case there is still a window.
|
|
|
|
|
Hello, I am using VC++2005 with this line of code to load a bitmap which is already added as a resource file:
m_hBitmap = (HBITMAP)LoadImage(GetModuleHandle(NULL), "res/Image.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
But when I execute the compiled exe file, it throws this error "Error loading Bitmap" and I have create a "res" folder and copy "Image.bmp" into it for the executable to run properly.
Does anyone know how to integrate the folder into sigle executable file?
Thanks in advance!
Lantianman
|
|
|
|
|
Use the resource editor to add the bitmap to your EXE as a resource.
|
|
|
|
|
If bitmap is on the resoruce you can use of CBitmap::LoadBitmap
|
|
|
|
|
It works with LoadBitmap. Thank you!
|
|
|
|
|
You' welcome whats your name
|
|
|
|
|
Considering that I want to communicate between two processes on the same system, among the existing IPC mechanisms like shared memory, DDE, windows sockets, pipes, RPC etc.which is the best technique for IPC. The priority being security of data being exchanged, and the second priority being speed..
Thanks.
|
|
|
|
|
With processes on the same machine, I use shared memory since it's really simple to set up and access.
|
|
|
|
|
ok.. but is shared memory a secured way for IPC between processes or windows sockets a better way for IPC ?
Thanks
|
|
|
|
|
A shared memory section can be secured with an ACL. If at all possible, don't use a named section (which can be spied on and discovered). Use an unnamed one and communicate the name between the processes some other way. This was discussed on Raymond's blog[^] a while ago, you should be able to find it with a search.
As for sockets, I don't know off-hand since I don't do much work with sockets.
|
|
|
|
|
hi,
Can you please give me some short difference between all IPC mechanism?
Thanks & Regards
Rakesh
|
|
|
|
|
|
|
Add a menu to resource and then on your code use of LoadMenu and SetMenu
|
|
|
|
|
where is your problem, to design a menu, or to affect it to a dialogbox ?
|
|
|
|
|
Hi.
I have a ready made menu IDR_MAINFRAME created by AppWizard.
So my problem is to load this menu on the Dialog box at the upper right portion of dialog window.
Thanks
Sameer Thakur
|
|
|
|
|
Right click on the dialog box, take properties. You can find a combo box called, Menu. Select IDR_MAINFRAME from the combox. close the properties dialog and build the project.
nave
|
|
|
|
|
Hi Nave.
Mannn that was easy wasn't it. Thanks.
But my requirement is to load this menu dynamically. I mean depending upon the requirement, I want to keep this menu changing.
i.e. For situation -->1 menu = IDR_MAINFRAME
For situation -->1 menu = IDR_ANOTHER
and so on....
Thanks
Sameer Thakur
|
|
|
|
|
ok.
1. The create a member variable of class CMenu in your dialog.
2. In the Oninitdialog function, call LoadMenu with the resource you want( IDR_MAINFRAME or IDR_ANOTHER )
3. Now call SetMenu function and pass the pointer of the CMenu object.
eg .
m_Menu.LoadMenu( IDR_MAINFRAME );
SetMenu( &m_Menu );
nave
|
|
|
|
|
Thanks Nave,
It worked
Sameer Thakur
|
|
|
|
|
hi,
can anybody tell me about VC++ free online exam/certifaication?
VC++,MFC,Win32.......online exam.
Thanks & Regards
Rakesh
|
|
|
|
|
Hi,
I want to read unicode file its content is hindi/english/japanese lang. and file is read into japanese Operating systems.can you please tell me something about this topic?
can you please help me on this asap?.
thanks in advance!
Thanks & Regards
Rakesh
|
|
|
|