I'm working with winmm.lib (in C++) and am having a hard time with waveInOpen().

When I call waveInOpen() in my dll, it blows up. I think it's becasue its not getting a device context. I take the same code and put it in a regular exe... it works fine with no problems.

Anyone know of any afx magic I could use to get waveInOpen to work for me? I know there has to be something very simple to fix this.

Thanks all,
JC

Recommended Answers

> Did you find any solution yet?
Did you bother to check the post dates?

Jump to Post

All 2 Replies

Hi, i have same problem, i need call wavein api functions in my dll and it doesnt work but in exe it works flawlesly, if i call waveingetnumdevs it returns 0 devices.Did you find any solution yet?

> Did you find any solution yet?
Did you bother to check the post dates?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.