Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rdalton

  1. rdalton

    UpdateData???

    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
  2. rdalton

    detecting the caller....

    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
  3. rdalton

    UpdateData???

    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...
  4. rdalton

    UpdateData???

    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...
  5. rdalton

    UpdateData???

    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...
  6. rdalton

    Thread Problems....

    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
  7. rdalton

    Thread Problems....

    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...
  8. rdalton

    main thread priority?

    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...
  9. rdalton

    Progress Bar...

    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
  10. rdalton

    embedded win32 console...

    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...
  11. rdalton

    Basic "Save / SaveAs" question

    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...
  12. rdalton

    mmio....reading in a stereo wav file

    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...
  13. rdalton

    mmio....reading in a stereo wav file

    H3R0: You have to make sure to link the library. Project->Settings...(Link tab), then under Object/Libraray modules, add winmm.lib Here's the code for getting the wave header info, and the wave sample data...my playback code is very long and is not using typical playback methods. I hope...
  14. rdalton

    mmio....reading in a stereo wav file

    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...
  15. rdalton

    mmio....reading in a stereo wav file

    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...

Part and Inventory Search

Back
Top