|
|
#1 |
|
Junior Member
|
Sample for Visual Studio.net (VB.net, C#) ?
I'm a really bad C/C++ programmer, and I'm searching for sample of wacs build with Visual Studio.net (VB.net, C#) in order to build my own.
Is someone have already build something like this ? Thanks guys ! |
|
|
|
|
#2 |
|
Member
Join Date: Feb 2001
Location: France
Posts: 60
|
c# -> .net only
The problem with VS.NET is that you can't make native win32 C# program, you can only make apps that runs in the .NET CLR (Common Language Runtime). So it may took time to see something for these languages (communication between win32<->.net is not easy to implement).
If you want to use VS.NET you can use VC++7 which works perfectly with the provided SDK (and the editor is soooooo good). |
|
|
|
|
#3 |
|
Junior Member
|
Maybe there is a way to build a VC++7 Classes DLL who implement in the .net format the Winamp3 classes for use in any VS.net languages.
Something like a Winamp3.studio.ComponentAPI class that implement the ComponentAPI class in studio/api.h, for example... |
|
|
|
|
#4 |
|
Junior Member
|
Found some C# code for controlling Winamp!
I was looking around for exactly what you guys were looking for, this code can probably be very easily changed to work for VB.NET and also to work with the WM_COMMAND features of Winamp.
Here ya go: public class Control { public Control() { WINDOW_HANDLER = FindWindow("Winamp v1.x",null); if(WINDOW_HANDLER == 0) { throw new Exception("Could not find a Winamp window!"); } } private int WINDOW_HANDLER; // following values found in WinUser.h private const int WM_COMMAND = 0x111; private const int WM_USER = 0x400; private const int WM_COPYDATA = 0x4A; public const int WINAMP_PLAY = 40045; public const int WINAMP_PREVIOUS = 40044; public const int WINAMP_PAUSE_TOGGLE = 40046; public const int WINAMP_STOP = 40047; public const int WINAMP_FADEOUT_STOP = 40147; public const int WINAMP_NEXT = 40048; [DllImport("user32.dll",EntryPoint="SendMessage")] private static extern int SendMessage(int _WindowHandler, int _WM_USER, int _data, int _id); [DllImport("user32.dll",EntryPoint="FindWindow")] private static extern int FindWindow(string _ClassName, string _WindowName); public void SendCommand(int _command) { SendMessage(WINDOW_HANDLER,WM_COMMAND,_command,0); } } |
|
|
|
|
#5 |
|
Winamp3 Component Guuuru
Beta Team |
This will only work for Winamp 2x... and for Winamp 3 IF the Winamp 2x Plugin Manager is installed.
Winamp 3 does not support the api natively... its API is completely different, and it would take some work to make it .NET compatable. Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. - Albert Einstein Winamp 3 Projects | Winamp 2x Plugin Manager | Explorer Playlist | FileSystem Object | Shoutcast List | Sashimi
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|