Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Functions In Win32
kvarnerexpress
post Jan 13 2005, 09:52 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



Hey, all.

Hope someone can make some useful suggestions, as i'm pretty much at a dead end!

I'm writing some code to run in a win32 envrionment, using the API to interface with audio hardware. At the moment this is very simple, and I'm pretty much just regurgitating micro$oft tutorials. I'm using the Bloodshed Dev-C++ compiler.

My problem is this -- i'm trying to use the CWaveFile class to provide a simple interface to .wav files. This class is defined in DSUtil.cpp, and makes use of the 'standard' mmio functions. To use these, I have to #include the mmsystem.h library, and link to the winmm.lib library; both of which I have done.

However -- when I try to compile, I get linker errors referring to the mmio functions, saying things like ' [Linker error] undefined reference to `mmioWrite@12''

I've no idea what else i'm supposed to link to/include; and there doesn't seem to be anything either on the web or on MSDN to clarify things further.

Anyone had any experience of this?

Best regards.
Go to the top of the page
 
+Quote Post
osknockout
post Jan 14 2005, 10:57 PM
Post #2


Super Member
*********

Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



Hahaha. Sorry, I have no experience with that stuff, but
I think the problem here is you don't have a standard
version of the header or lib. Try getting another one and
replace your current DevC++ copy of the file.
Go to the top of the page
 
+Quote Post
rainMystery
post Dec 2 2006, 05:33 AM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 2-December 06
Member No.: 34,479



QUOTE(kvarnerexpress @ Jan 13 2005, 09:52 PM) *

Hey, all.

Hope someone can make some useful suggestions, as i'm pretty much at a dead end!

I'm writing some code to run in a win32 envrionment, using the API to interface with audio hardware. At the moment this is very simple, and I'm pretty much just regurgitating micro$oft tutorials. I'm using the Bloodshed Dev-C++ compiler.

My problem is this -- i'm trying to use the CWaveFile class to provide a simple interface to .wav files. This class is defined in DSUtil.cpp, and makes use of the 'standard' mmio functions. To use these, I have to #include the mmsystem.h library, and link to the winmm.lib library; both of which I have done.

However -- when I try to compile, I get linker errors referring to the mmio functions, saying things like ' [Linker error] undefined reference to `mmioWrite@12''

I've no idea what else i'm supposed to link to/include; and there doesn't seem to be anything either on the web or on MSDN to clarify things further.

Anyone had any experience of this?

Best regards.



Hope this could still be helpful to others out there. Here's what I did : I just included libwinmm.a from /DevC++/lib in the linker part of my "Project Options"
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php Functions To Send Mail(9)
  2. Win32: Dialog Box And Accelerator(1)
  3. Functions(8)
  4. Error Not A Valid Win32 Application(10)
  5. Call Cookie Functions In Iframe(2)
  6. [php] Clean Code Functions(5)
  7. Functions(0)
  8. Wappy's Php Snippets(13)
  9. Ajax Functions On Free Host(6)
  10. New Aim 6.5 Has Trojan- Win32.tibz.ez(1)
  11. Php Email Validation(1)
  12. Arrays Outside A Function(3)
  13. How Do Cameras Capture Pictures?(12)
  14. Encrypt Functions(0)
  15. [php](simple) Using Functions To Combine Values In A Form(2)
  1. Ucfirst() And Ucword() Functions In Game Maker(2)
  2. [tut/mod]functions Learning The Basics(0)
  3. Disabled Functions List?(5)
  4. Javascript Help(1)
  5. Gd Functions(2)
  6. Various String Functions In C(5)
  7. Mirc Identifiers In Vb6(0)
  8. Cooolest Winapi Functions(0)
  9. Some Php Functions Explaination Required(2)
  10. Help With Functions In C++(4)
  11. Win32 Api Problem(4)
  12. Globals Inside Functions(4)
  13. The Uniform Server(5)
  14. Radasm© Win32 Assembly(1)
  15. Functions Failing When Embedded In If()(3)


 



- Lo-Fi Version Time is now: 6th September 2008 - 06:24 PM