Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConvert doc/txt file to PDF using C++. Pin
Subrat 470826611-Nov-08 17:26
Subrat 470826611-Nov-08 17:26 
AnswerRe: Convert doc/txt file to PDF using C++. Pin
bob1697211-Nov-08 18:32
bob1697211-Nov-08 18:32 
GeneralRe: Convert doc/txt file to PDF using C++. Pin
Saurabh.Garg11-Nov-08 22:41
Saurabh.Garg11-Nov-08 22:41 
GeneralRe: Convert doc/txt file to PDF using C++. Pin
bob1697212-Nov-08 3:18
bob1697212-Nov-08 3:18 
AnswerRe: Convert doc/txt file to PDF using C++. Pin
Cedric Moonen11-Nov-08 20:32
Cedric Moonen11-Nov-08 20:32 
QuestionHow to pass data from MFC to Win 32 Console through windows messaging [modified] Pin
Darrel Q Pham11-Nov-08 15:45
Darrel Q Pham11-Nov-08 15:45 
AnswerRe: How to pass data from MFC to Win 32 Console through windows messaging Pin
Darrel Q Pham17-Nov-08 15:34
Darrel Q Pham17-Nov-08 15:34 
QuestionNeed help converting raw PCM data into streaming audio Pin
lavagoblin11-Nov-08 12:42
lavagoblin11-Nov-08 12:42 
I have an application that connects to a Sound Level Meter. A new feature request is to be able to provide a live streaming audio of what the instrument is recording. The data coming from the instrument is in a raw PCM format and I request a new packet of data every second.

Right now, I am saving the data into a .wav file by creating a RIFF header based on the channels, bits per sample, and sample rate configured on the instrument and calculating an arbitrary size based on 10 minutes of data. I then start writing each packet of data to the file. My plan was to then start a playback after 5 seconds using the default wave player. So far, nothing has worked. Windows Media Player complains that the file is in use (since I am still writing to it) and Nero complains that the header is invalid (most likely since the size data is not actually correct). I have also tried mciSendString() without success.

I have absolutely no experience with streaming audio so I am not sure I am even going down the correct path. If anyone has any thoughts or suggestions, I would be grateful.

Thanks,
-LG
AnswerRe: Need help converting raw PCM data into streaming audio Pin
enhzflep11-Nov-08 14:00
enhzflep11-Nov-08 14:00 
AnswerRe: Need help converting raw PCM data into streaming audio Pin
Mark Salsbery11-Nov-08 15:35
Mark Salsbery11-Nov-08 15:35 
QuestionPull Downs Menu Items Pin
BobInNJ11-Nov-08 11:33
BobInNJ11-Nov-08 11:33 
AnswerRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 11:59
lavagoblin11-Nov-08 11:59 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 12:24
BobInNJ11-Nov-08 12:24 
GeneralRe: Pull Downs Menu Items Pin
lavagoblin11-Nov-08 13:01
lavagoblin11-Nov-08 13:01 
GeneralRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 14:09
BobInNJ11-Nov-08 14:09 
GeneralRe: Pull Downs Menu Items Pin
lavagoblin12-Nov-08 4:18
lavagoblin12-Nov-08 4:18 
GeneralRe: Pull Downs Menu Items Pin
Mark Salsbery11-Nov-08 15:42
Mark Salsbery11-Nov-08 15:42 
AnswerRe: Pull Downs Menu Items Pin
BobInNJ11-Nov-08 13:00
BobInNJ11-Nov-08 13:00 
QuestionGet parent process command line in 64 bit Pin
Jack Rong11-Nov-08 10:23
Jack Rong11-Nov-08 10:23 
QuestionHow to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 8:11
AmVal11-Nov-08 8:11 
QuestionRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 8:41
Mark Salsbery11-Nov-08 8:41 
AnswerRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal11-Nov-08 11:25
AmVal11-Nov-08 11:25 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery11-Nov-08 12:39
Mark Salsbery11-Nov-08 12:39 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal12-Nov-08 4:30
AmVal12-Nov-08 4:30 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 7:29
Mark Salsbery12-Nov-08 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.