|
According to MSDN [^] this could also mean that your call was successful and "the return value is the number of scan lines copied from the bitmap". Perhaps you can post a code snippet?
|
|
|
|
|
To add to Moaks reply...
You're passing NULL for "LPVOID lpvBits" parameter, correct?
If so, have you initialized the struct pointed to by the "LPBITMAPINFO lpbi" parameter properly?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
hello!!
in my application i'm splitting files "by size" using
(Class)Utility::SplitFile(char* Filename,long Size )
its working ......but now i want to split file by play length
i am not able to get the solution
thanks!!
|
|
|
|
|
Repost!
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Its simple you can calculate length of file and split file
|
|
|
|
|
anu jaggi wrote: ...but now i want to split file by play length
So does the Utility class provide such a method?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hello!!
in my application i'm splitting files "by size" using
(Class)Utility::SplitFile(char* Filename,long Size )
its working ......but now i want to split file by play length
i am not able to get the solution
thanks!!
|
|
|
|
|
Same post for get new answers!
|
|
|
|
|
Repost one more time.;P
GV
|
|
|
|
|
I have a window inherited from CView, used for showing pictures.
When moving dialog over it, there are sometimes black lines left on the window. It seems like calling InvalidateRect with a little small rectangle area as parameter. I don't know how it comes out. Please help me solve it!
I set this window's map mode to MM_ISOTROPIC and the logical extent is smaller than device extent.
Does it have something to do with the problem?
Thanks in advance!
|
|
|
|
|
Are the lines just on the pictures or in the entire view window?
Regardless, you are responsible for repainting any invalid areas of the window.
The MM_ISOTROPIC mode only comes into play when you are doing this painting...
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Call the function again in OnDraw() function to draw whatever you are drawing in the view window.
Anurag Gandhi.
|
|
|
|
|
i want to convert a Cstring let's say
CString s="1E";
unsigned char k;
i want to convert it to be this way
printf("k=%x",k);
i want the result to be :
k=1E
how is this possible please i'm running out of time
emma
|
|
|
|
|
|
no i want to enter it as i send before it is given in the code and not to be get as input
emma
|
|
|
|
|
look, i use sscanf() (with 2 s), not scanf()
|
|
|
|
|
imanos wrote: it is given in the code and not to be get as input
and indeed sscanf does what you are requiring. see here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks a lot it worked waaaaaaaaaaaaaw
thanks in advance
emma
|
|
|
|
|
Have a look at ::strtol(...)[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks for ur valuable time ur all great actually the sscanf worked for me and i'm sure this one works too so thanks
emma
|
|
|
|
|
Will CString::Format be helpful ?
Regards,
Paresh.
|
|
|
|
|
actually i didn't try it but sscanf was just fine
Thanks for ur valuable time ur all great
thanks
emma
|
|
|
|
|
you can do:
k = strtol(s, &pStop, 16);
where pStop is a char pointer (see strtol documentation).
of course you'll get k=0x1E .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
u know sscanf worked for me but sure i'll try all the solutions to have them all
Thanks for ur valuable time ur all great
thanks
emma
|
|
|
|
|
First of all, I'm still using MFC4.2 with VC6. But the problems I ran into are probably the same since Win3.x .
I have a CDialog, made with the dialog editor. Beside other controls I have a tab control in this dialog, which is attached to a CTabCtrl Object.
Now I want to mask out a part of this tab control. Easy, isn't it?
So I created dynamically a CStatic object, "Static1", with the background color corresponding to the dialog background color and sized and positioned the window to cover the area that I want to mask out. This static is a child of the TabControl.
So far so good.
But as soon as the tab control is repaintd my static control disappeared behind the tab control.
I made a second static control, "Static2", this time with the resource editor. This static is not a child of the TabControl.
Same behaviour.
I tried to adjust the z-order of "Static1". No effect.
I even called SetWindowPos with the wndTopMost pointer after each button down-, selection change- and WM_PAINT notifictaion, just for the case that the z-order is changed somehow somewhere. No success.
The behaviour is:
Upon startup or completely repaint of the dialog I see "Static1" and "Static2" ("Static2" is above "Static1").
After changing the Tabs (or hovering) I see the tab control. (Static 1 & 2 are behind the tab control).
If the statics are just covered by a window and drawn again afterwards, the result is indetermined, mostly all three controls are only drawn partitially in the overlapping area.
What can I do to nail my static on top of the tab control and that it gets repainted AFTER every repaint of the tab control?
Regards
Leo
|
|
|
|