|
The files are written in chunks of data following the WAV file specification. There is an api with several functions beginning with 'mmio' you can use to more easily manipulate the files.
So, then, use the api and re-write the file leaving off the last 200-500 ms, or else truncate the parts of the data and re-write the header portions appropriately controlling the last chunk(s) in the file.
If you know the data size, sampling rate, etc. it should be easy to calculate how many trailing samples to discard to drop off 200-500 ms.
|
|
|
|
|
In my project,there are a lot of global members.
To my surprise that I found two of the global member has the overlapped memory address.
For example:
member a begin at address 0x00457280 and the size of a is 14D(hex)
member b begin at address 0x00457380 and the size of b is 848(hex)
obviously the two member overlapped!
But why?I have no idea on finding out a solution!
WINXP+VC6+SP6
Don't look at me in that way!
|
|
|
|
|
white jungle wrote: In my project,there are a lot of global members.
BAD
white jungle wrote: To my surprise that I found two of the global member has the overlapped memory address.
For example:
member a begin at address 0x00457280 and the size of a is 14D(hex)
member b begin at address 0x00457380 and the size of b is 848(hex)
obviously the two member overlapped!
But why?I have no idea on finding out a solution!
Can you tell more about that variables, how are declared and so on...?
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.
|
|
|
|
|
white jungle wrote: member a begin at address 0x00457280 and the size of a is 14D(hex)
member b begin at address 0x00457380 and the size of b is 848(hex)
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi i am new to mfc.now i am doing in tab controls i am having two items in tab. how can i change the items color ie the text color. please help me
|
|
|
|
|
See Here[^] and here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hey as you are new to VC++ i would suggest that you try this later wen you have done lot of codin in vc++.
but if you really want to do it then you need to draw an owner draw tab control
http://www.codeproject.com/tabctrl/customtab.asp
check this out and let me know if you have any problem
|
|
|
|
|
How to Trojen horses enter my mac using opn ports ?
My exact question is, i have an application which has an open port on which a socket is listning and accepting connectins but not accepting any further commands until he connection is authenticated, how is it that a virus has got through my appliction and enterd the system.
any help would be greatly appreciated.
DK
|
|
|
|
|
How Trojan Horse Works?[^]
PS: You *may* also have to refer to the Noobs Treatment Area in my signature, since it *might* help you.
|
|
|
|
|
DKurup wrote: how is it that a virus has got through my appliction and enterd the system.
Unless your code accepted the connection, received the "virus" bytes, knew that it was executable
code of some kind, and executed the code, then it didn't come through your socket.
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
hi i am having a dialog name NETDIALOG whose background is having another dialog BACKDIALOG stretched to full screen.if i opend the NETDIALOG its background color is same as the BACKDIALOG.i have to avoid this. what i have to do. the NETDIALOG should open with its own color.
|
|
|
|
|
I used to handle the OnPaint message:
void CDlgPPAGMain::OnPaint() <br />
{<br />
CPaintDC dc(this);
CRect r, r2;<br />
<br />
if( GetSafeHwnd() != 0 && m_clctrlParamsRobotSel.GetSafeHwnd() != 0)<br />
{<br />
GetClientRect(&r);<br />
m_clctrlParamsRobotSel.GetWindowRect(&r2);<br />
ScreenToClient(&r2);<br />
<br />
r.bottom = r2.top;<br />
<br />
dc.FillSolidRect(r,0x000000);<br />
}<br />
}
Sure that this is not the best method, but it works.
|
|
|
|
|
what is m_clctrlParamsRobotSel?
|
|
|
|
|
Don't worry on that, this is a piece of code that I've used and I've not removed anything, this is a variable that refers to a listcontrol that has the same width of the entire dialog, in your case you should get the size of the dialog client are and then paint it.
|
|
|
|
|
void CDlgPPAGMain::OnPaint() <br />
{<br />
CPaintDC dc(this);
CRect r;<br />
<br />
if(GetSafeHwnd() != 0)<br />
{<br />
GetClientRect(&r);<br />
dc.FillSolidRect(r,0x000000);<br />
}<br />
}
this should be ok for you...
|
|
|
|
|
yes thats working well. how we can change the background color of tab control.
|
|
|
|
|
Hey! that's new, I've re-read the first post, in order to do that there is an article here in the CP that explains how to do it. I promise you that I don't remember how to do it, but I've seen a post regarding to that this same week here in the VC forum.
Try to search for that, sure that it will work for you.
|
|
|
|
|
hi i used onpaint method to change the background color. but in vain. what i have to do to change the background color of the tab control.
|
|
|
|
|
Hello,
I have an application which is not having the document - view architecture and here the ChildFrame is derived from CMDIChildWnd and the ChildView is derived from CWnd.
Can I derive the view from CSrollView ?
And if I cannot derive from CScrollView will I be able to add the scrolling capabilities myself
Prithaa
|
|
|
|
|
prithaa wrote: I have an application which is not having the document - view architecture...Can I derive the view from CSrollView ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
Did you answer the question ?
Yes I am confused
Prithaa
|
|
|
|
|
prithaa wrote: Did you answer the question ?
No. I was mainly just wanting some clarification about your "I have an application which is not having the document - view architecture...Can I derive the view from CSrollView ?" comment. You can't have both.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
You mean to say if I don't have document-view architecture than I cannot derive my view from CScrollView.
Is that so
Prithaa
|
|
|
|
|
You apparently have two requirements: 1) not to use the doc/view architecture, and 2) derive a view from CScrollView. Can you not see how #2 contradicts with #1? You can do either, just not both in unison.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello,
Then can I derive my view from CWnd and provide the scrolling facilities myself.
Prithaa
|
|
|
|