hey bluecrush,
sorry for the delay...In my case, I just re-organized my code and the problem went away due to a cleaner solution. Can you be more descriptive about what it is your trying to do and where you are getting the assert? Maybe I can help.
Bob
Does anyone know if this is possible...
have a function be able to detect which function or class called it without passing any parameters?
been thinking about this one...
rdalton
I see what the problem is now, but I'm having trouble getting around it. I pass a pointer to the dialog to the worker thread during creation. I use this pointer in the to make changes to some MFC controls (mainly static text) then try to update the controls. I'm trying to pass a HWND using...
Everything works as expected in release mode...In debug mode there is an assertion failure in wincore.cpp line 884. If I hit ignore the code proceeds through the loop and the text is actually updated, but next time it hits the UpdateData(false) line there's the same assert error. It's strange...
Hello,
I'm working through a crazy bug right now with the UpdateData(false) command. I'm trying to update ordinary text that represents a counter in my dialog. Every second I format the string and issue the UpdateData(false) command, which then calls the DataExchange function and so on...While...
Yes, the audio playback is done by a worker thread and it is given the highest priority. Is there any way to change the priority of the main thread (which handles GUI events)?
bob
Hi,
I'm building a small audio application that uses multiple threads for audio processing and gui control. I have a slider bar that controls the play position in the audio file. The slider bar is incremented every second, and I have some text, displaying the time, that gets updated. The...
I have a dialog application that spawns 4 threads with the Highest priority, but I also want to give the main thread the Highest priority. Can someone help me do this? I've tried theApp.SetThreadPriority(), but when I check the process in taskmanager it's priority is still normal, and I have to...
I'm wanting to display a progress bar while the application calls a function that goes out and queries all the serial ports for a certain piece of hardware. Can someone inform me of how to use a progress bar in my dialog app and keep it in close sync with the actual querry time? thanks.
rdalton
I'm tyring to embed a console type window in a dialog application. I wan't to use the console as a type of log window so the user can see what the application is doing behind the scene. Therefore, the output should be redirected to the console and I would like to use cout and printf commands...
I'm trying to add some customized code when the user chooses to save or saveAs in a SDI. I have a function that
handles the command message for ID_FILE_SAVE and ID_FILE_SAVEAS from either the toolbar or the "File" menu, but the code is not getting called. A saveAs dialog box opens...
mingis:
I have the header information...mainly the filesize and sample size (2 bytes). The problem is that it's taking too long to either 1:Read all the data (both left and right channels) then parse through the array and split into two seperate arrays. 2: Loop through the filesize and read...
...wave header info,
and the wave sample data...my playback code is very
long and is not using typical playback methods. I hope this helps...
short* WavFileToArray(CString ptr, long *size)
{
HMMIO hmmio;
// for the Group Header
MMCKINFO mmckinfoParent;
// for finding chunks within the Group...
The header file is <mmsystem.h>. It has many different functions defined for MultiMedia Input/Output (mmio). There are specific function for parsing RIFF filetypes. A good link is:
http://www.borg.com/~jglatt/tech/mmio.htm
My problem is that I want to strip off the left and right channel...
I'm using mmioRead to read in the data chunk of a wav file, but if the file has two channels I want to seperate each channels data, which is interlaced. Does anyone know any function that will seperate the channels data? Right now I'm reading everything, then looping through the returned array...
In the mainframe menubar I have a HOWTO option under the help menu, I want the function to open a text file using notepad or some other default txt viewer. How do I launch a program and open a file from within my application? thanks.
I started a project that I've been building on for a while. I'm now finishing the project, but I'd like to be able to change the project name. Is there a way to do this? I've gone through every property page and nothing will let me change the actual project name. What I thought would be an...
I'm trying to copy a dialog from one project to another, so I don't have to lay it out again. Is there anyway to do this? I've exported other resources (ie bitmaps), but I can't figure out how to transfer the dialogs. Thanks.
I'm using a custom tree control in my application and I want to add an event to the control. I would like to handle the "On Double Click" event. The control has no events that can be handled. How can I add one? Thanks.
I've solved the problem by using a new boolean variable that becomes true on the very first call to OnInitialUpdate(). Then using an if statement, the SubclassDlgItem code is passed over every other time the function is called. The problem was due to multiple calls to SubclassDlgItem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.