Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 4 of 4
  1. #1
    Join Date
    March 2010
    Location
    Germany
    Posts
    114

    Plugin in C# possible?

    Hey,
    I wanted to ask if it's somehow possible to write a client-plugin in C# or similar?
    I tried a round a few possibilities, but it didn't work.

    Regards,
    Max

  2. #2
    Join Date
    July 2002
    Location
    Germany
    Posts
    2,191
    Hey,

    this is surely possible, as all you need to be able to do is write a library (.dll on windows) that exports a few certain functions. I can't tell you how to do it, but I am 100% sure it can be done. Read on how to create dlls in C# that can be used by other (non c#) software, it will tell you how to create a "c-style" dll interface.

  3. #3
    Join Date
    December 2009
    Location
    Deutschland
    Posts
    35
    I'm not sure if you're still searching for a way to do this, but anyways:
    I once started Wrapping the Plugin-SDK in a C# Project (but never finished it because other things needed my attention), basically the problem is:

    1) .Net-DLLs are NO dlls in the usual sense, only the .Net runtime is able to load / execute them
    2) The IL-Compiler does allow "native" dll-exports, but this feature is not available in any higher .Net language by default

    The way to go is:
    - Write your plugin
    - compile it to a managed dll
    - decompile it using ILDasm
    - insert the export-definitons
    - recompile it using ILasm again (both tools belong to Visual studio, to use them open the "Visual studio Commandline"
    To shorten this process, Robert Giesecke created a VS-Solution doing this for you using Attributes, just google it if you're interested.
    If you want to, you can base on what I had accomplished so far, see http://forum.teamspeak.com/showthrea...Plugin-Wrapper, but the SVN-repo will go down soon as I don't use that server anymore.

  4. #4
    Join Date
    March 2005
    Location
    France
    Posts
    10
    oh ! so complex !
    Maybe solution is to use a generic C++ plugin, then make an additional C# wrapper dll that communicate with that C++ plugin, not with TS3...

    i still looking for a simple c# sample somewhere, didn't found it yet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Where are the newest plugin.c and plugin.h files?
    By PatPeter in forum General Questions
    Replies: 5
    Last Post: July 24th, 2015, 12:43 PM
  2. TS3 IPC Plugin - Use the plugin sdk in your external apps
    By Thomas in forum Client Plugins / Lua Scripts
    Replies: 31
    Last Post: June 14th, 2011, 11:02 AM
  3. ts3 overlay plugin (Failed to open plugin)
    By netmario in forum Windows
    Replies: 0
    Last Post: September 22nd, 2010, 09:29 AM
  4. Replies: 0
    Last Post: April 9th, 2010, 01:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •