Click here to Skip to main content
15,867,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I check if LPCTSTR is empty ? Pin
Rob Grainger11-Apr-11 12:55
Rob Grainger11-Apr-11 12:55 
QuestionProblem Showing Enumerated Sound Devices in ComboBox [modified] Pin
Paul Hasler10-Apr-11 16:49
Paul Hasler10-Apr-11 16:49 
AnswerRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Hans Dietrich10-Apr-11 19:03
mentorHans Dietrich10-Apr-11 19:03 
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Paul Hasler10-Apr-11 20:26
Paul Hasler10-Apr-11 20:26 
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Hans Dietrich10-Apr-11 20:41
mentorHans Dietrich10-Apr-11 20:41 
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Paul Hasler10-Apr-11 21:18
Paul Hasler10-Apr-11 21:18 
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Hans Dietrich10-Apr-11 21:27
mentorHans Dietrich10-Apr-11 21:27 
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Paul Hasler10-Apr-11 22:01
Paul Hasler10-Apr-11 22:01 
Thanks Hans. It works. Big Grin | :-D
I think I took MSDN's description of DirectSoundEnumerate too literally.
It says:
HRESULT DirectSoundEnumerate(
         LPDSENUMCALLBACK lpDSEnumCallback,
         LPVOID lpContext
)

Parameters

lpDSEnumCallback
Address of the DSEnumCallback function that will be called for each device installed in the system.
lpContext
Address of the user-defined context passed to the enumeration callback function every time that function is called.


So I assumed lpContext had to be a pointer, but since it's just being passed straight on to the callback function anyway, I guess it doesn't have to be.

Your help is greatly appreciated.Thumbs Up | :thumbsup:
Best regards
Paul
GeneralRe: Problem Showing Enumerated Sound Devices in ComboBox Pin
Hans Dietrich10-Apr-11 22:13
mentorHans Dietrich10-Apr-11 22:13 
Questionhow to set IE to open my file format? just like PDF files. Pin
refla10-Apr-11 16:08
refla10-Apr-11 16:08 
AnswerRe: how to set IE to open my file format? just like PDF files. Pin
Hans Dietrich10-Apr-11 19:06
mentorHans Dietrich10-Apr-11 19:06 
QuestionRedirecting output to DVI or HDMI. Pin
beastian10-Apr-11 4:34
beastian10-Apr-11 4:34 
AnswerRe: Redirecting output to DVI or HDMI. Pin
Code-o-mat10-Apr-11 11:37
Code-o-mat10-Apr-11 11:37 
GeneralRe: Redirecting output to DVI or HDMI. Pin
beastian13-May-11 4:28
beastian13-May-11 4:28 
GeneralRe: Redirecting output to DVI or HDMI. Pin
Code-o-mat13-May-11 4:30
Code-o-mat13-May-11 4:30 
Questionproblem to draw line in list control Pin
shashankacharya8-Apr-11 19:30
shashankacharya8-Apr-11 19:30 
AnswerRe: problem to draw line in list control Pin
Nitheesh George8-Apr-11 20:18
Nitheesh George8-Apr-11 20:18 
GeneralRe: problem to draw line in list control Pin
shashankacharya8-Apr-11 22:13
shashankacharya8-Apr-11 22:13 
GeneralRe: problem to draw line in list control Pin
Rotted Frog8-Apr-11 23:02
Rotted Frog8-Apr-11 23:02 
QuestionHow can find the text file encoded in other than ANSI format? Pin
Le@rner8-Apr-11 18:29
Le@rner8-Apr-11 18:29 
AnswerRe: How can find the text file encoded in other than ANSI format? Pin
Rotted Frog8-Apr-11 22:56
Rotted Frog8-Apr-11 22:56 
AnswerRe: How can find the text file encoded in other than ANSI format? Pin
Richard MacCutchan8-Apr-11 23:20
mveRichard MacCutchan8-Apr-11 23:20 
QuestionHow to read the buffer from the SQL's image field type ? [modified] Pin
wangningyu8-Apr-11 15:55
wangningyu8-Apr-11 15:55 
QuestionHow to partially map a shared memory Pin
pandit848-Apr-11 3:06
pandit848-Apr-11 3:06 
AnswerRe: How to partially map a shared memory Pin
Niklas L8-Apr-11 21:51
Niklas L8-Apr-11 21:51 

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.