|
This is a discussion board about Visual C++ and MFC. You should post this question on a delphi related board.
|
|
|
|
|
thank you.
but, which discussion board is delphi related board?
Zo.Naderi-Iran
|
|
|
|
|
There aren't any on this site.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
excuse me.
we don't need "to disable incremental linking" in Delphi project. becuase in delphi, function name is its address
Zo.Naderi-Iran
|
|
|
|
|
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello everyone,
I read the description of dwAllocationGranularity from,
1. http://msdn2.microsoft.com/en-us/library/ms724958.aspx
2. http://msdn2.microsoft.com/en-us/library/aa366887(VS.85).aspx
and tested on my system it is 65535.
But from the above description, I do not quite understand what does it mean. Does it mean that when memory manager deals with real memory allocation, it will always allocate 65535 bytes at a time, and divide into small chunks to upper level API (for example, when we new[256], it will allocate 256 bytes from the 65535 allocated raw bytes to application)?
Another question is, what benefit will we get if we know this parameter? For example, how do we allocate memory will utilize the system at most to achieve best performance?
thanks in advance,
George
|
|
|
|
|
George_George wrote: Does it mean that when memory manager deals with real memory allocation, it will always allocate 65535 bytes at a time
Yes.
George_George wrote: when we new[256], it will allocate 256 bytes from the 65535 allocated raw bytes to application
Yes, unless there isn't a big enough free block then it will allocate another 64K bytes.
George_George wrote: what benefit will we get if we know this parameter? For example, how do we allocate memory will utilize the system at most to achieve best performance?
All that it really tells you is that any such parameter is a compromise. Different applications would benefit from different values but the system can only have one default. A database app might benefit from large allocation chunks while a performance monitoring app might want smaller chunks.
There's not much you can do about this short of writing your own more sophisticated memory manager which is what you get in the .NET Runtime. I've written a prototype 'bucket' based manager which uses a virtual stack to compromise between the garbage collection cost of .NET and the heap fragmentation cost of the OS. It's not anywhere near publishable form at the moment but one day I hope it will be. There are 3rd party memory managers already out there, Google for Leap Heap for example if you're interested.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
|
tell me how can show wave form in audio files.
modified on Tuesday, January 15, 2008 3:16:34 AM
|
|
|
|
|
What ?? What do you mean by drawing ?? A audio file is just a file that contains binary data, you cannot "draw" something in it.
Could you elaborate please ?
|
|
|
|
|
i mean how can i show waveform in audio files.
|
|
|
|
|
Well, you don't give a lot of explanation, do you ?
I suppose that you want to extract the data which is in an audio file and display it on the screen, is that correct ?
Where are you stuck exactly, what did you already tried, which kind of audio files are you talking about ?
|
|
|
|
|
how can i tell u that,
i m sending u a link just chk it n the image on this link.
http://www.codeproject.com/KB/audio-video/waveeditBydswigger.aspx
i want this type of wave form in my audio file like MP3.
thanks n regards.
|
|
|
|
|
This is going to seem a bit complex...
You link to an article that has a picture of a program drawing the contents of an audio file to a window (ie, HDC).
The article has a download source link.
Have you tried reading the source to find out how it was done for that program?
Iain.
|
|
|
|
|
i read the article but in this article he use active x control but i have no knowledge of active x control.
i want help to show wave form in simple visual c++ 2005 code.
thanks
|
|
|
|
|
I saw previous your answer but I dont remember it was of Examples MSDN or codeproject.
|
|
|
|
|
it means u dont go thru the link
|
|
|
|
|
I think I saw one years ago or more it could shows wavelength and intensity of audio and avi files.
|
|
|
|
|
i m sending u a link just chk it n the image on this link.
http://www.codeproject.com/KB/audio-video/waveeditBydswigger.aspx
in this aryicle he used Active x control but i hv no knowledge of Active x control.
so can u tell me cow can i show wave form of audio file with the use of simle code.
i want this type of wave form in my audio file like MP3.
thanks n regards
|
|
|
|
|
You can learn ActiveX I guess its not hard for you .
|
|
|
|
|
|
Tell us what u want to do?
|
|
|
|
|
I have one table in an Oracle Db.. I want to access that DB in my application so for that i want to create one class. When i m trying to creat enew class using CDaorecordset as base class. I m not getting Table name to select under "SELECT DATABASE TABLE" dialogue.
Did u get me??
Could you please help me now?
megha
|
|
|
|
|
Hi megha,
Did you to first create the DSN for that Recordset??? And after that you may use RFX and DDX for exchanging data.
|
|
|
|
|
Hi alok,
I have created DSN Name. On class view when i clicked on new class and selected CRecordset (as baseclass) -> selected ODBC -> and in List box DSN which i have created -> after entering pasword clicked on OK -> then it should display list of tables for which i need to make a class but it not showing that table at all...
|
|
|
|