Old 9th November 2001, 18:59   #1
clickman
Junior Member
 
Join Date: Feb 2001
Posts: 7
Send a message via ICQ to clickman
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 !
clickman is offline  
Old 10th November 2001, 17:07   #2
C_Wizard
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).
C_Wizard is offline  
Old 11th November 2001, 06:33   #3
clickman
Junior Member
 
Join Date: Feb 2001
Posts: 7
Send a message via ICQ to clickman
Smile

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...
clickman is offline  
Old 8th February 2002, 06:13   #4
Snoogans
Junior Member
 
Join Date: Aug 2000
Location: Redmond,WA,98052
Posts: 1
Send a message via ICQ to Snoogans
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);
}


}
Snoogans is offline  
Old 8th February 2002, 13:01   #5
schweitn
Winamp3 Component Guuuru
Beta Team
 
schweitn's Avatar
 
Join Date: Dec 2000
Location: Milwaukee, WI
Posts: 1,068
Send a message via AIM to schweitn Send a message via Yahoo to schweitn
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
schweitn is offline  
 
Go Back   Winamp & Shoutcast Forums > Winamp3 > Wasabi Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump