Source of a simple working module? Thread last updated on 2003-11-23 07:03:58

Posted by member 85415 on 2003-11-22 08:30:23

Hi there,

I have a nice idea for a module, and I want to build it.

What I'm looking for, is a source code of a module that is simple and also working.
All I practically need is to be able to catch certain !bang commands, and replay graphically to them. (Meaning, draw bitmaps on the screen).

I'm one of those that after they see on example they can write everything.
So if you can help me, please do.
:-]

Posted by member 7223 on 2003-11-22 10:24:12 link

I guess skinbox was made in that intention: a sample code module

Posted by member 99 on 2003-11-22 11:06:14 link

Yeah, but the current code for skinbux is incredibly ugly. (and a little buggy)

Bang commands are easy, look on shellfront.org for source to a winamp control module or something.

Responding with images is a little more complicated, if you haven't done any GUI stuff with Win32, it might be easier to provide events (ie, ModuleOnSomething ...) and let another module take care of it. Otherwise I'm not sure what the best example might be, perhaps shurtcut2, layercuts, or stim.

Posted by member 111 on 2003-11-22 18:19:47 link

Label/xLabel has the best structure I think :)

Posted by member 85415 on 2003-11-22 19:03:12 link

Thanks guys

I now have the geekamp source. I'm sure I can change to be my own module.
But I have a new problem...

How do I compile a module?!
I have Visual C++ 6, but it won't work with the litestep source I downloaded.

Can anyone of you please send me a working WorkSpace of litestep, so I could test my own module? And if you want to be extra kind, a working WorkSpace of a module would be great...

:-]

Posted by member 99 on 2003-11-22 20:13:00 link

You need to compile lsapi.dll to get lsapi.lib so you can link against it. Also, you will probably have to change the paths to lsapi.h and lsapi.lib in the source file and linker settings.

Posted by member 85415 on 2003-11-22 20:47:10 link

Right.
How do I compile the lsapi.dll to get lsapi.lib then?

Posted by member 7 on 2003-11-23 06:21:06 link

LiteStep is developed using MSVC 6... so the source should compile...

Posted by member 85415 on 2003-11-23 07:03:58 link

I did it!
Thanks for all the help

I'm on my way to building my firt module !