Jul 24, 2008

Functions In Win32

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

Functions In Win32

kvarnerexpress
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.

 

 

 


Reply

osknockout
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.

Reply

rainMystery
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"

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : functions, win32

  1. Various String Functions In C
    (5)
  2. Win32: Dialog Box And Accelerator
    Win32 API programming (0)
    ok my problem is how do i make or assign a keyboard accelerator with modal dialog boxes since the
    message loop is inside the function call of DailogBox() functions, unlike the modeless dialog box in
    which you are the one who will create the message loop for the dialog box... is it even possible?....
  3. Win32 Api Problem
    Win32 API Problem (4)
    the problem is that i want to be able to make my program automatically load to memory or execute as
    soon as windows start up. the only solution i know is to put a link in the startup folder for all
    user or an specific user.... is there any other possible way using Win32 API function calls that do
    the trick.. like some part in the windows registry were you add the path and file name of programs
    you want to execute at start up? i need only pure Win32 API function calls since im not using
    visual basic but a bloodshed win32 compiler. MFC gives me headache. /smile.gif" s....
  4. Help With Functions In C++
    (4)
    Hey guys I could really use some help wiht C++ because My C++ class consists of me three others, and
    a ton of people learning HTML. So in other words its basically independent study. He dosnt really
    care how you get the assignments done or when you do... just get them done. Well to say the least I
    am STRUGLING in this class do to the lack of instruction. Now the latest assignment im sure seems
    eazy for many of you but for me... well considering this is my first year of programming im still
    quitea a newbie. So the assignment says right a function named Reduce() that....
  5. Functions Failing When Embedded In If()
    Just a beserk problem that's plagued me on and off for years (3)
    I've had this problem on and off over the years (me just being silly, generally), so I thought I
    might share how to fix it. This has come up several time whilst using sockets, actually, so
    here's an example. For instance, CODE if(hd_ = bind(AF_INET, SOCK_STREAM,
    IPPROTO_TCP)  <= 0) {  perror("socket() failure");
     exit(1); } What's the problem? The problem is that, CODE hd_ =
    bind(AF_INET, SOCK_STREAM, IPPROTO_TCP) should be encapsulated within parentheses.
    Why? When the ....

    1. Looking for functions, win32

Searching Video's for functions, win32
advertisement



Functions In Win32



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE