Jump to content


Photo

Does Anyone Have Winmm.lib? *found It!*


  • This topic is locked This topic is locked
14 replies to this topic

#1 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 09 May 2008 - 06:33 PM

HI,

I am trying to make a dll that will support up to 16 jstix, a long waited for thing...

I found the code to do it, but I need


"Winmm.lib" to finish it :P

I really want to try this out...

it will support x, y, z, hat buttons, rudder, and more...
I think on up to 16 jstix!!!!!!!!!!


so,

please help me find this file...

I really want to make this!!!!!!!!!!


edit:
I found it!
C:/Dev-C++/lib/libwinmm.a
  • 0

#2 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 11 May 2008 - 08:26 PM

* cough cough *
  • 0

#3 chainsawkitten

chainsawkitten

    GMC Member

  • GMC Member
  • 1372 posts
  • Version:GM:Studio

Posted 12 May 2008 - 07:39 PM

Here's a topic on another forum about it: http://forums.devx.c...hp/t-83800.html

It seems like you need to download some sort of Platform SDK.
  • 0

#4 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 12 May 2008 - 10:04 PM

all the links are dead...
  • 0

#5 ragarnak

ragarnak

    GMC Member

  • GMC Member
  • 19468 posts
  • Version:GM8

Posted 13 May 2008 - 09:09 AM

I found the code to do it, but I need

"Winmm.lib" to finish it :P

A .LIB-file is specific to the programming-language you're using.

Suggestion : check if your C++ environment has got a program called "implib" or alike, with which you can generate a .lib-file from the dll yourself.

Mind you, you will than still need to create a (if I'm not mistaken) .h -file (h for header), which contains the function-definitions and constants, records, etc used by the functions.

Hope that helps.
  • 0

#6 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 13 May 2008 - 01:53 PM

well,
I pulled the sorce code off msdn,
and it says I need to include winmm.lib...
and I think that you have to have msvc++ or somthing ridiculess like that...
(It comes with mcvC++)
but I don't have all day to downlo0ad a 2gig piece of junk.
(yes I tried it)

so, I was wonderin that if somone had it, they could help me.

ummm...

I understand the cpp file, but I still can understand what the .h file does...
and I don't know how to "export" a fuinction.
but, I will figure it out eventually...
  • 0

#7 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 15 May 2008 - 03:44 PM

I HAVN'T FOUND IT YET!
I NEED THIS BAD
  • 0

#8 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 16 May 2008 - 11:52 AM

Ugh, did you seriously wait close to a week to get it? You know what...I am going to get MSVC++ because I want it...I will upload that file if it is there.

I am currently installing it...

Edit: The download size is 316 MB with a 268 MB addition I chose...Are you lazy? Yes! (If you have proof of a slow internet connection then I will take that back with an apology)

Edited by GMREC1111, 16 May 2008 - 12:09 PM.

  • 0

#9 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 16 May 2008 - 12:10 PM

well, my dad doesn't want me to install it.
and my labtop is soooooo slooooow that it takes 5 minuutes to start up (yes that was timed)
I might be able to install it, get the lib and then un-install it...

the stuff I read said it was...

VC98\Lib\WINMM.LIB



hmm.
maybe it is VC# instead of C++?
dunno.

Edited by Caniac, 16 May 2008 - 12:14 PM.

  • 0

#10 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 16 May 2008 - 12:15 PM

Well, I still want to get VC++ so I don't mind...I will edit this post with it if I have it or not.

School...

Edited by GMREC1111, 16 May 2008 - 12:15 PM.

  • 0

#11 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 16 May 2008 - 12:17 PM

ok.

do you think you can help me understand .h files?
I am not really sure what they do...
also,
how do I "export" a function?
(I could probably figure it out, but it would take a loooong time)
  • 0

#12 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 16 May 2008 - 08:40 PM

A *.H file is a C/C++ Header File, it is the same as all other files like *.CPP files. It can do anything that other files* do, it's just like a script in Game Maker, it contains a function or two and what it does. So, in a header file you can see what functions are declared and so on...

Since you are using C++ I will tell you again... Roach has a pinned topic in the DLLs sub-forum, it contains many tutorials on many languages (shame there isn't a VB6 one) and there is one for C++, I used it... Next time, follow the text in the picture of in your signature...

Search before you post!

You really knew where it was and was just lazy to get it, you should have searched before you posted a reply there...MSDN is a great place to go because it lists help on all Microsoft products, if you are using Dev-C++ then it is kinda like VC++ but there are differences.

As a matter of fact I have found the file in Dev-C++'s folder, if you have Dev-C++ then the actual file name is "libwinmm.a". I won't upload it because of your laziness.
  • 0

#13 Caniac

Caniac

    The #1 Caniac

  • New Member
  • 2622 posts

Posted 17 May 2008 - 03:12 AM

I am not lazy.
my parents won't let me install it.

I did look at roaches topic.
I will have to look again, as I still don't understand.....

Edited by Caniac, 17 May 2008 - 03:13 AM.

  • 0

#14 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 17 May 2008 - 02:38 PM

>_> You are going to make a DLL with NotePad? If you can't install stuff then you can't make the DLL! If you PM me the code I will see what I can do as I have Dev-C++ with the *.lib file.

Since I'm nice here is a link to the C/C++ DLL Tutorial by Roach, HERE.

Edited by GMREC1111, 17 May 2008 - 02:41 PM.

  • 0

#15 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts

Posted 18 May 2008 - 04:52 PM

Ah I see, it worked for, but you don't know how it works.
Well saying you looked at it 1000 times doesn't mean you don't understand. I've read MS WinAPI manual only a trillion times, but it doesn't mean I didn't understand it (well most of it at least...)
I'll write some quick tips later on, I'm a bit in a hurry right now.

Here we go:
export double add(double number1, double number2)
{
	  return(double)number1+number2;
}
That is what roach wrote.
'export' makes sure that the function is going to be available to outside programs.
'double' is the data type that the dll function would return back (in GM there is string and real). It is possible that dlls return nothing (in that case they are procedures not functions). BUT GM craches! It needs that the dll returns something to continue! Also, it is used in GML external_define(...).
'add' is the funcion's name. It will also be used in the following gml: external_define(dllname,functionname,...), make sure it is a valid name, that is avoid special symbols spaces and numbers, ex "45" is wrong while "func45" is right, instead of spaces you could consider using underscores (_) which do work correctly.
Next, there is a list of variables inside round brackets. These arepassed to the dll from GM. Make sure that the data type corresponds to that of GM.

That's all there is to it. I suggest you don't get too ambitious with it. Try learning c++ better then try making your dll.
That's all I can help. The rest is learning by trial and error on your side.

Edited by uuf6429, 18 May 2008 - 05:20 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users