|
Hi all,
I have a 24 bit bitmap image file.
It needs to be displayed on a SDI View screen.
Can anyone please tell me how i can do it.
|
|
|
|
|
use LoadImage function instead of LoadBitmap..LoadBitmap support 32X32..
|
|
|
|
|
You can use LoadImage or cimage for load picture and use from WM_PAINT for show
whitesky
|
|
|
|
|
hi,
I have a CDC* pDC in the OnDraw() function.How do i go about from here.
|
|
|
|
|
not problem you need to a dc you can use pDC->BitBlt or StretchBlt
whitesky
|
|
|
|
|
|
with this code you can show your picture
<br />
CImage m_Image;<br />
m_Image.Load(Filename);<br />
m_Image.BitBlt(....);<br />
whitesky
|
|
|
|
|
Hi,
You can use Bitblt,
CBitmap* pOldBitmap =pDC->SelectObject(&m_hBit);
pDC->BitBlt(//...);
pDC->SelectObject(pOldBitmap);
Thanks
|
|
|
|
|
|
I think a handle bitmap
whitesky
|
|
|
|
|
'm_hBit' is an object to CBitmap Class. CDC::SelectObject() accepts pointer to CBitmap. You can have an CBItmap object in two steps,
CBitmap m_hBit;
m_hBit.LoadBitmap(...); //you can use other initializtion methods too
After these two steps, you can use m_hBit object in CDC::SelectObject()
|
|
|
|
|
hi all,
how much heap memory allocated for a process?
how much stack memory allocated for a process?
if i have 512MB RAM and trying allocate 1GB of Heap memory what will happen??
please explain or give me links.
Thanks in advance.
|
|
|
|
|
Default heap size is 1mb,this can be changed using the /heap linker option.An application can directly use about 2gb
of address space.
Same for stack also,1mb is the default and can be changed using the /stack linker option
|
|
|
|
|
but what will happen , if i have 512MB RAM and trying to allocate 1GB of heap memory?
please give me the links or suggest any books?
thank u.
|
|
|
|
|
It will attempt to allocate the memory from virtual memory
Darka [Xanya]
|
|
|
|
|
BTW, 2GB is for 32-bit Windows, which is the total limit of stack plus heap plus none-user memory.
Best,
Jun
|
|
|
|
|
I m using _wrename( ) in my VC code.. when i register file in the file system and rename them using _wrename() after performing this many times, the new files are registered correctly and renamed appropriately but somehow the files registered earlier gets deleted from the file system. now each time the new file is registered an d renamed an old file is deleted.. I m unable to track the reason behind this..
Please help me with an appropriate logic behind this..
Thanks in advance..
|
|
|
|
|
what u r mentioning as old and new file. say their is a file '1.txt' and '2.txt',now rename '1.txt' to 'a.txt', whtz happening? is '2.txt' get deleted now?
|
|
|
|
|
Parthi_appu wrote: what u r mentioning as old and new file. say their is a file '1.txt' and '2.txt',now rename '1.txt' to 'a.txt', whtz happening? is '2.txt' get deleted now?
Yes after registering and renamingmany files say 1.pdf,2.pdf,.....200.pdf, now when 201.pdf is registered and renamed some previous file like 10.pdf gets deleted and on subsequent renaming of more files, 11.pdf, 12.pdf and so on gets deleted.
|
|
|
|
|
Hi all,
Can any one plz tell me how to set the hook in MFC.
Thanks in advance.
|
|
|
|
|
Seting the hook using :-
SetWindowsHook
removing the hook:-
UnhookWindowsHook
MSDN and codeproject are having nice article on hooking.
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
|
|
|
can anyone send some simple examples showing the WM_TIMER implementation?
|
|
|
|