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,

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.