|
|
|

22-07-2004, 04:42
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
|
|
|
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!
|

22-07-2004, 19:26
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: US
Posts: 20
|
|
|
I would be interested in checking out your work. Let me know when you are finished.
|

23-07-2004, 03:25
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
|
|
|
I will, won't be long now...maybe after this weekend (tried to do it tonight, but, not enough time)
|

23-07-2004, 20:30
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
|
|
|
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
|

03-08-2004, 09:46
|
|
-= TeamSpeak User =-
|
|
Join Date: May 2004
Location: Wales
Posts: 6
|
|
|
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
|

05-08-2004, 03:30
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
|
|
|
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!
|

19-03-2005, 12:12
|
 |
-= TeamSpeak User =-
|
|
Join Date: Mar 2005
Location: England
Posts: 4
|
|
|
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.
|

09-08-2005, 21:52
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2004
Location: Somewhere, USA
Posts: 19
|
|
|
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
|

09-03-2007, 22:06
|
|
-= TeamSpeak User =-
|
|
Join Date: Nov 2005
Location: Austin, TX
Posts: 10
|
|
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
|

09-10-2008, 22:44
|
|
-= TeamSpeak User =-
|
|
Join Date: Oct 2008
Location: Colne, Lancashire, UK
Posts: 1
|
|
Any updates on this? I've just found this thread, and am interested in using the wrapper for a small program I need..
|

15-10-2008, 23:10
|
 |
-= TeamSpeak Support =-
|
|
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,257
|
|
|
The downloads seem to be online, so you can download them for free and use it on your own.
|

04-06-2009, 14:54
|
|
-= TeamSpeak User =-
|
|
Join Date: Jun 2009
Location: Germany
Posts: 1
|
|
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?
|

05-08-2009, 06:05
|
|
-= TeamSpeak User =-
|
|
Join Date: Aug 2009
Location: Australia
Posts: 20
|
|
Quote:
Originally Posted by schmads
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.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 01:56.
Powered by vBulletin® Version 3.8.4 Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
|