VB.NET

Xlobby plugin development

VB.NET

Postby art on Sun Mar 13, 2005 3:35 am

I was just wondering if it's possible to write a plugin in vb.net or if it has to be in c sharp? I'm not really a programmer, but I did some little work in vb that I would like to turn into a plugin for xlobby. Can somebody comment?
Last edited by art on Mon Mar 13, 2006 9:30 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby stevenhanna6 on Wed Mar 16, 2005 8:07 pm

I think its possible, the vb .net is very similar to the c# except for syntax...I don't see why vb.net wouldnt work.
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby m_ski on Wed Jul 20, 2005 11:26 am

Has anybody got a plugin working in VB.NET?

I have done a lot of progamming in VBA and VBScript, and never done any C programming, so I would like to start writing a plugin using 'Visual Basic 2005 Express Edition'.

Does anyone have the source code for the most basic of plugin that will just appear in the plugin list in xlobby, I tried but cannot get anything to appear in the plugin list (It doesn't crash xlobby though so I guess that might be a start!!)
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby art on Wed Jul 20, 2005 2:59 pm

m_ski wrote:Has anybody got a plugin working in VB.NET?


Yes, I have some working code in VB.NET - I'm fininshing plugin for MYHD, but don't have much time to do it :) ... anyway post your contact info and I'll send you the source.

art
Last edited by art on Mon Mar 13, 2006 9:30 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby m_ski on Thu Jul 21, 2005 7:03 am

Thanks Art,

please send to xlobbyATskillingDOTmeDOTuk.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby JSL on Thu Jul 21, 2005 8:07 pm

Hi Art,

I'm too interested in having a working sample of some VB code. Could I have a copy of your source code as well? Please send to mailto:jsl15@privat.dk

Thanks!

JSL
JSL
 
Posts: 31
Joined: Thu Dec 30, 2004 11:22 am

Postby m_ski on Fri Jul 22, 2005 11:23 am

art has sent me some source code from Visual Studio 2003 but unfortunately I can't get it to work in Visual Studio Express 2005 Beta 2. It compiles ok and builds a dll file but then xlobby does not recognise the plugin.
Is anybody using either VB or C# in Visual Studio Express 2005 Beta 2 and can they get it to build a plugin correctly? If C# works then maybe I'll have to learn it.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby art on Sat Jul 23, 2005 2:55 pm

m_ski wrote:art has sent me some source code from Visual Studio 2003 but unfortunately I can't get it to work in Visual Studio Express 2005 Beta 2. It compiles ok and builds a dll file but then xlobby does not recognise the plugin.
Is anybody using either VB or C# in Visual Studio Express 2005 Beta 2 and can they get it to build a plugin correctly? If C# works then maybe I'll have to learn it.


m_ski,

Sorry I didn't respond to your e-mail, but I was doing some tests to see what is the problem and ... I may be completely off on this, but I think it's the .NET Framework beta 2 problem vs. xlobby working on 1.1 and not the code itself. I base this on my experience with Steven's xstats plugin. I downloaded the source and built it in 2003 ver - of'course everything was OK, but when installed VC# express 2005 beta 2 and build the same source in it, build was OK, but XL could not see it.
Like I said I'm not a programmer and I may be waaayyy off on this, but that's what I've noticed during my tests.

Maybe Steven or someone with more experience could comment on this....

art
Last edited by art on Mon Mar 13, 2006 9:31 pm, edited 1 time in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby m_ski on Mon Jul 25, 2005 11:18 am

art,

I really appreciate your help on this - Thanks.
I think you may be right about the .net framework 2. Does anybody know how (or if) I can build the dll in Visual Express 2005 using .net 1.1 instead of the beta version of .net 2?

Something else I noticed is that the dll I build with Visual Express 2005 is much larger in size than the one that you built in VS2003. Obviously there is something diffrent going into the actual dll assembly.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby m_ski on Mon Jul 25, 2005 11:57 am

Found some info to back this theory up...

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=14095

and maybe a possible way around it (I'll try and test it tonight) which will possibly force xlobby to use .net 2 library...

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=4caff66c-df51-40ab-bd88-090d34e77520
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby m_ski on Tue Jul 26, 2005 11:13 am

It works - If I force xlobby to use the .net 2 beta using the reg files above then it will recognise a plugin created with Visual Express 2005.

But (There is always a but isn't there?) this would mean I could not distribute a plugin unless the users also had .net 2 beta framework AND it seems to cause a bit of a problem with my system - either xlobby or girder, I am not sure. When I do a sendmessage from girder to xlobby which instructs xlobby to go to the main menu screen then xlobby seems to quit straight out as far as I can tell.

I guess I will have to give up on the free route and buy Visual Studio 2003 in order to get a robust solution.
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby vicom on Wed Jul 27, 2005 6:50 am

can I also have the VB.NET plugin source code. I've been battling to create a plugin using VB.

vicom AT tuks DOT co DOT za
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Postby art on Wed Jul 27, 2005 9:50 pm

You can download it here
Last edited by art on Wed May 10, 2006 10:55 pm, edited 3 times in total.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby vicom on Thu Jul 28, 2005 6:52 am

Thanx.. will play around with it
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Postby fletch on Wed May 10, 2006 8:26 pm

Does anyone have any examples of a plug-in created with VB.NET? The download above appears to be corrupt. I can't seem to figure it out from the information posted using C#.

I think my VB project should work, I've added the reference to XPluginSDK.dll and created the interface members documented on the forum. I can create the plugin DLL, but nothing shows up in xLobby. However the file is locked while xlobby is running, so it tries to load it. Hopefully somebody can point me in the right direction. Thanks.
fletch
 
Posts: 64
Joined: Sun Feb 05, 2006 1:11 am
Location: Castle Rock, CO

Next