|
Thank you,
Now i am getting list of printer names using EnumPrinters
|
|
|
|
|
Hi,
I am trying to assign a drive letter for the newly created raw volume. I
used the code example mentioned for DefineDosDevice function. This program
takes drive letter and devicename as parameters. I could successfully run the
program on 2k3 servers. But when i try the same code on 2k server, it runs
for first time. then again from disk management console, i delete the drive
letter and try to run the same program but this time it fails with error 87.
I have passed the drive letter for the program which is not existing on the
system but still it throws an error. Can somebody please help me in this
regard or any pointers to such related problems.
I took the program from the link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/editing_drive_letter_assignments.asp
The error i got is as below
editdrive.exe v:\ \device\harddisk2\partition1
(editdrive.exe is my program )
error 87: could not add v:\
I have compiled my program on windows XP.
On 2k professional i saw that it assigns the drive letter but not the one i
requested. even in this case the error is still popped out.
Thanks with best Regards,
Pavan
|
|
|
|
|
hello
i want to know that as animation control is used to play clip of .avi type.
now i use folloeing code in a button to play a clip
m_ani.Open(_T("Findfile.avi"));
m_ani.Play(0,-1,-1);
but clip is not playing .now i want to know that (_T("Findfile.avi") how this will pick clip as .avi clip is stored at c:\MSDN\samples\vid98\content\mmedia now plz tell me.
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
|
m_ani is member variable of animation control of type CAnimateCtrl
Ashish Dogra
MCA
Noida
|
|
|
|
|
Did you saw example CAnimateCtrl in msdn Here[^] and Here[^]
whitesky
|
|
|
|
|
this code does not help me as
i want to know only that how avi file is loaded see my previous post
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
What your problem msdn example is good
use open with filename for open an avi file and play(0 for begin frame,-1==last frame,-1==replay) for play
whitesky
|
|
|
|
|
sir yhaknks for your reply
but i try this one and no clip is shown on anmated control
Ashish Dogra
MCA
Noida
|
|
|
|
|
Are you sure your file is avi
whitesky
|
|
|
|
|
yes sir as i search them as .avi and
then i use one of the name in my code
Ashish Dogra
MCA
Noida
|
|
|
|
|
I dont know your code but i tested this code for you and it worked test this code
CAnimateCtrl m_Ctrl;
<code>
m_Ctrl.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,100),this,1);
m_Ctrl.Open("C:\\WINDOWS\\clock.avi");
m_Ctrl.Play(0,-1,-1);
</code>
whitesky
|
|
|
|
|
thanks sir it works
thanks a lot
but sir can we resize this
Ashish Dogra
MCA
Noida
|
|
|
|
|
You can use form MoveWindow with new size
whitesky
|
|
|
|
|
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()
|
|
|
|