English   German
  #1  
Old 22-07-2004, 04:42
me2 me2 is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
me2 is on a distinguished road
Building .NET Wrapper - any interest?

Hi Folks,

I'm almost done building a wrapper class for all of the functions in the SDK under C#. I've tested each function and only two do not work:

tsrGetChannelInfoByName
tsrGetPlayerInfoByName

I get TSRemote errors even when I provide the correct info, so I'm thinking that it's not my code.

I added a function for loading the client if it's not loaded as well.

A port to VB.NET would be easy, so if you have any interest in that, please specify, and I'll get right on it when I'm done with this one.

Anyways, if there is any interest in this library of imports and marshaling functions, please let me know and I'll post them (the code files) when I'm done re-organizing them.

Thanks!
Reply With Quote
  #2  
Old 22-07-2004, 19:26
patag patag is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: US
Posts: 20
patag is on a distinguished road
I would be interested in checking out your work. Let me know when you are finished.
Reply With Quote
  #3  
Old 23-07-2004, 03:25
me2 me2 is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
me2 is on a distinguished road
I will, won't be long now...maybe after this weekend (tried to do it tonight, but, not enough time)
Reply With Quote
  #4  
Old 23-07-2004, 20:30
me2 me2 is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
me2 is on a distinguished road
Here It Is

ok, it's all done for now. Grab the source code below (.cs file) and have fun!

http://home.comcast.net/~jmemo/TSRemote.zip

Please see the notes at the top of the file! They contain issues and other items.

Any bugs/errors/suggestions please post.

Thx
Reply With Quote
  #5  
Old 03-08-2004, 09:46
NoLoComprendo NoLoComprendo is offline
-= TeamSpeak User =-
 
Join Date: May 2004
Location: Wales
Posts: 6
NoLoComprendo is on a distinguished road
Send a message via MSN to NoLoComprendo
Damn strings...

Heylo there!

I started making my own .NET wrapper in VB.NET about a month and a half ago, but stopped because of an error in tsrGetChannelInfoByName - I just couldn't marshal a string across correctly. The function kept returning 20 - "Channel Name Not Found". Which was a blatant lie.

Apparently, you've met this problem too, but overcome it. What was the problem? How do I fix it?

Thanks in advance,
NoLo
Reply With Quote
  #6  
Old 05-08-2004, 03:30
me2 me2 is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
me2 is on a distinguished road
problems

I did run into this problem, you're right. And you know, it's one of those problems that I don't know how I fixed, so I ported the code for that function to VB.NET and put it on my home page. Here's the link:

http://home.comcast.net/~jmemo/VB_Ge...InfoByName.zip

There is a problem with Microsoft's marshaler when it comes to sizing, so I write my own marshaling functions. I've reported it to them but I don't expect a response on it, oh well.

Hope this helps!
Reply With Quote
  #7  
Old 19-03-2005, 12:12
Glyn's Avatar
Glyn Glyn is offline
-= TeamSpeak User =-
 
Join Date: Mar 2005
Location: England
Posts: 4
Glyn is on a distinguished road
Hi,

I'm about to start a little project using your wrapper. Want any feedback?

Also, at the risk of seeming like an idiot, where can I get hold of the SDK. I've tried searching the forums and I find lots of references to it but no actual location to obtain it from!

Thanks,

Glyn.
Reply With Quote
  #8  
Old 09-08-2005, 21:52
me2 me2 is offline
-= TeamSpeak User =-
 
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
me2 is on a distinguished road
Sorry Bout That...

I haven't been doing much with teamspeak for a while.

The SDK is just the DLL that gets installed with your teamspeak version, you copy it into the folder with your plugin or put your plugin in the teamspeak folder.

There are several language specific function references, if that's what you're looking for, then look for the specific language in the search box, there's a Delphi, C++, C# and VB, maybe others...

Again, my apologies for not getting back to you...

James
Reply With Quote
  #9  
Old 09-03-2007, 22:06
schmads schmads is offline
-= TeamSpeak User =-
 
Join Date: Nov 2005
Location: Austin, TX
Posts: 10
schmads is on a distinguished road
I have recently been getting strange -1003 Invalid Error messages from TeamSpeak when using this wrapper. Well, or perhaps it doesn't have anything to do with the wrapper, which is why I wanted to ask about it here.

Has anyone else found that occasionally while interfacing with TeamSpeak, the calls will start failing, and then the error will be -1003? It doesn't seem to be consistent, and it also seems to randomly start working again. Sometimes I will start the app and it will be fine for hours, and sometimes it will do it on startup and then fix itself in a minute or less, etc. Very unpredictable, and I'm not doing anything with TeamSpeak itself that I can tell is causing it.

System environment: I'm building this in Visual Studio 2005 SP1 + Beta Vista Patch on Vista 64-bit. The code is C#, with references to a G15 wrapper DLL and using this wrapper for TS. The build environment seems fine. I'm building this all in 32-bit mode, since TS/TSRemote.dll is all 32-bit. 90% of the time, the program interfaces with TS just fine, so I can't think that it's the build environment, but perhaps it is. The G15 interface doesn't seem to hiccup at all, so it's all a bit strange. I'm running VS as an administrator, so at least when debugging, my software is also as an Administrator, although it works properly (90% of the time) as a standard user as well. I'm running the latest beta executable of TS, so perhaps I should try rolling that back too.

Strange behavior, so I thought I'd ping this thread. Otherwise, it's a very slick C# wrapper, and I really doubt that the wrapper itself is the cause. Perhaps Vista is just annoyed at me
Reply With Quote
  #10  
Old 09-10-2008, 22:44
polomint polomint is offline
-= TeamSpeak User =-
 
Join Date: Oct 2008
Location: Colne, Lancashire, UK
Posts: 1
polomint is on a distinguished road
Any updates on this? I've just found this thread, and am interested in using the wrapper for a small program I need..

Reply With Quote
  #11  
Old 15-10-2008, 23:10
Thomas's Avatar
Thomas Thomas is offline
-= TeamSpeak Support =-
 
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,257
Thomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond repute
The downloads seem to be online, so you can download them for free and use it on your own.
__________________
I am no developer, only supporter (pro bono).
Forum Rules , How to ask questions , FAQ
Reply With Quote
  #12  
Old 04-06-2009, 14:54
Theki Theki is offline
-= TeamSpeak User =-
 
Join Date: Jun 2009
Location: Germany
Posts: 1
Theki is on a distinguished road
Yesterday, I found this Class here in the Communtiy
I was realy lucky, i searched so long time for this.

I have a question:
Is it possible, to send a message at all?
And is it possible to send a message at a channel in a spezial color, for examble red?
Reply With Quote
  #13  
Old 05-08-2009, 06:05
Stidor Stidor is offline
-= TeamSpeak User =-
 
Join Date: Aug 2009
Location: Australia
Posts: 20
Stidor is on a distinguished road
Quote:
Originally Posted by schmads View Post
I have recently been getting strange -1003 Invalid Error messages from TeamSpeak when using this wrapper.
I'm having the exact same problem. I also believe that problem is the one that has been stuffing up your TS Plugin for me over the last year or two. (It stops responding)

I decided to make my own plugin and now I've run into the same problem. It seems to happen when disconnecting/connecting. I'm using the updated tsremote.dll and the lasterror is 'ERROR -1003 INVALID ERROR RETURNED (GET_VERSION)'

Using VS 2008 on Vista SP2 (64bit)

Did you ever find a fix schmads? Do you know of this problem me2? I can only clear the error by closing and re-opening TeamSpeak. Is there some way the wrapper can dispose, release, re-init or something.

Last edited by Stidor; 05-08-2009 at 08:44.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:56.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices



You Rated this Thread: