|
Hi
I want to use DirectSound with different file formats.
For Instance I need to play AIFF AIFC formats and some other.
I would appreciate any information regarding my question as well as samples of C++ code for conversions from AIFF AIFC to WAV files
Thank you
Klim
|
|
|
|
|
Hi !
I'm looking for a custom control to provide a "variable watch" like control.
You can find such controls in every environments such as Visual C++ ...
It allows you to display the name and the value of variable selected by the user :
myVariable1 ....................... 0x12485
myVariable2 ....................... 48725
myVariable3 ....................... 1001100
myVariable4 ....................... 0x20 0x42
Does anyone knows where to fing such a control ???
Thanks,
Vince
|
|
|
|
|
THis sounds like the watch window (alt+3 in debug mode)
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
Sure !!!
What i'm looking for is not where to find the watch window of Vc++ !!!
I'm looking for a class witch wrap functions of a watch window in order to be integrated in my own application (something like a Cwnd derivated class...)
|
|
|
|
|
|
Is there any Date Time pickers that would allow you to modify both data and time within the same cell?
|
|
|
|
|
|
I have
p.CreateDispatch("DllwithForm.Class1");
p.CheckingPB(hPbWnd,0,100000);
where CheckingPB is triggering repeated messages to be sent to a control. If I uncomment the release dispatch , I am concerned that it will release the dispatch before all my messages have been sent and received. Is this a fact? Since the app isnt working anyways I cant check it out, but wondered if its disastrous if that line is commented out...
Thanks,
ns
|
|
|
|
|
Help people, my head is spinning.....
I have an application that reads images back from a database into a directory. I need to 'touch' the file time stamp to match the database. The date field to retrieved as a COLEDATETIME and I need to convert this to a FILETIME in order to call the win32 SetFileTime() function.
Anyone any idea's how to perform this conversion (I'm sure is really obvious and the constructor for COLEDATATIME lets you do it the other way around!) --- Anyone any clues?
|
|
|
|
|
Use COleDateTime::GetAsSystemTime, then ::SystemTimeToFileTime.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
That works a treat!
Many Thanks.
Kevin.
|
|
|
|
|
I want to add an entry to the registry that all
users on the machine inherits. Is this possible?
|
|
|
|
|
|
hello,
Is it possible to have CreateDIBSection to allocate the bitmap in system memory rather than in video memory (without DDraw) ?
|
|
|
|
|
CreateDIBSection allocates bitmap data in 'system' memory, not in video memory.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
The fourth parameter of CreateDIBSection (VOID **ppvBits) gives me values over 0x80000000, is it still system memory ?
|
|
|
|
|
|
It's just because I make memory access and they seem to be slow.
Never mind, I'll do more tests.
Thanks.
|
|
|
|
|
We delete an array of char this way:
delete[] str;<br />
str=NULL
But, if the string is created like str=_T("test"); or #define str _T("test") , trying to delete it results in an exception.
Now, my question is this: how can I figure out if the string is deletable or not? (must be a const prob)
I know I should strcpy those strings before use, but lazy me...
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
|
|
|
|
|
There's no portable way of determining if object is on the heap or not. Switch to std::string or CString and forget about it.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
You can't.
Well, not without keeping some extra information anywhere.
Really this is a design problem, not an implementation problem - it's good practice to allocate and free memory at the same level of a program, so that level already knows how it allocated the memory.
For example
char* str = new char[100];
somefunction(str);
delete[] str;
char* str = "Hello world";
somefunction(str);
// No need to delete anything
The point is that "somefunction" didn't allocate the memory so it can't know how to free it and shouldn't try.
Basically whenever you allocate some memory you need to think about how it's going to be freed, and ensure that it's done at the same level as it was allocated, which is probably the only place that knows how to do it.
|
|
|
|
|
You may want to try with IsBadWritePtr . Do some experimentations with it to see how it handles strings (literal and dynamically-allocated strings).
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Or, just
try{ delete[] str; } catch(...){}
...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
|
|
|
|
|
I used to code java like that! Does it work for c++ too?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
|
|
|
|
|
Try
const LPCSTR str = _T("test");
and when the compiler complains about const do as it says. Don't cast the const away
Todd Smith
|
|
|
|