|
I _could_ change the type, but it would be more [bureaucratic] effort than it's worth.
Thanks anyway,
Pete
|
|
|
|
|
For future reference though, a vector of doubles in a list would have been a much nicer solution. I usually delete pointers if I need to carry them ( because of polymorphism ) using a for_each and a function object that calls delete on everything in my container.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Even I don't see much sense in storing double* instead of double in a vector. It will also cause Heap fragmentation and your code may cause more page faults as each double may be scattered all over the memory. Unless you have very important reason against it, change it to double.
|
|
|
|
|
Well, it seems that it would be worth the effort, based on all of your posts. I shall get to it...
Thanks for the advice everyone
|
|
|
|
|
Hello. This problem has been plaguing me and I can't seem to find an answer. I am programming a Win32 App using the Win32 API. I am using MCI to play a midi and I need to figure out how long the song is. Does anyone know how to do this or can anyone direct me to a resource that would show me? I've tried many things but I just can't seem to figure it out. Thanks in advance.
|
|
|
|
|
Have you tried searching on google for information on the MIDI format?
|
|
|
|
|
Yes, and I've read it too.
|
|
|
|
|
From http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmcmdstr_6tyl.asp
To send the status command, call the mciSendString function.
status length track number
Returns the length of the track, in time or frames, specified by number.
For PPQN format files, the length is returned in song pointer units. For SMPTE format files, it is returned as hh:mm:ss:ff, where hh is hours, mm is minutes, ss is seconds, and ff is frames.
|
|
|
|
|
is there a way i could get a specifc portion from an image in visual c++6.
i meant to say if i had a image and i want to make another file of that image of its center portion only .
looking forward from all the gurus of code
|
|
|
|
|
i'm sure the various image classes on this site can help.
or, as always, i know where you can find a commercial solution...
-c
Cheap Oil. It's worth it!
|
|
|
|
|
Chris Losinger wrote:
or, as always, i know where you can find a commercial solution...
One can only imagine!
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
i always mention the stuff here first!
-c
Cheap Oil. It's worth it!
|
|
|
|
|
Chris Losinger wrote:
i always mention the stuff here first!
It really is a nice library. I for one will revisit it if I start a project requiring serious imagine processing.
Jeremy L. Falcon<nobr>
Homepage : Sonork = 100.16311
"It was a blind man who taught me how to see." - Aerosmith
|
|
|
|
|
Chris Losinger wrote:
or, as always, i know where you can find a commercial solution...
...or use paintlib
Cheers, Marc Click to see my *real* signature
|
|
|
|
|
If the image is a bitmap (DIB or DDB) you could probably use something like DrawDIBDraw().
HTH,
Pete
|
|
|
|
|
I think you can use the BitBlt function to clip your original image. Set the destination size to the size of the center portion you'll be copying. Set the source x and y coordinates to the top-left point of where you want to start copying from on the original image. For information about BitBlt, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_0fzo.asp
|
|
|
|
|
hi,
may be if u can load it to the screen DC u can save any part of the image..
Hope this helps..
Regards
hkprs
|
|
|
|
|
I am trying to mahe a multimon application with DDraw, I am working on visual 6.0 and DirectX 7.0 on W2K.
I would like to undestand why when I launch "DirectDrawEnumerateEx" with the flag DDENUM_DETACHEDSECONDARYDEVICES it does not enumerate my secondary screen device. In this case of course my second screen device is detached from desktop. When the second screen device is attached, it works well (with the flag DDENUM_ATTACHEDSECONDARYDEVICES) but I don't like much this configuration for a basic user is a little disturbing.
Any suggestion is wellcome, even if you know where I can find information about that
|
|
|
|
|
At first, my program is on the front of the desktop. Then I click on its minimize button, so that it will shrink as an icon on the task bar. I then click on this icon to restore it. What message would be sent to my program then? ! Since I overwrite the handler of WM_ERASEBKGND, I need to repaint the background in this case.
Thanks a lot in advance
|
|
|
|
|
override OnSize.
-c
Cheap Oil. It's worth it!
|
|
|
|
|
I overwrite the CMyView::OnSize(), but it is not called when I click on the minimize button or restore it from task bar. why?
|
|
|
|
|
Try overriding OnShowWindow() . OnSize() will be called when the window is resized.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Your window receives a WM_SHOWWINDOW message. The value of lParam is SW_PARENTOPENING . Other messages follow this message.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
no, it's not called, either.
|
|
|
|
|
The messages are probably being sent to your mainframe window.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|