Results 1 to 4 of 4

Thread: Dispatcher between Qt DLL and C#

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Dispatcher between Qt DLL and C#

    Hey @all,

    i stand for the following problems:
    1.) I have a Qt DLL which I must embed into an C# Project
    2.) I have a C# DLL which I must embed into a Qt Project

    For both situations i've read something about "dispatcher" classes/DLL's.
    Can anybody give an example on how i must do it?
    A simple "Hello World" example were a great help.
    Other .NET languages must also be supported in the future.

    Maybe someone can give me some help, because I've never written programs with .NET before.

    Thanks in advance

    Best Regards
    LG NoRulez

  2. #2
    Join Date
    Feb 2008
    Posts
    98
    Thanks
    2
    Thanked 24 Times in 24 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Dispatcher between Qt DLL and C#

    I don't have experience with .NET but if you want to use Qt with C# you may use Qt#, which are the C# bindings for Qt:

    http://freshmeat.net/projects/qtcsharp/

  3. #3
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: Dispatcher between Qt DLL and C#

    The problem by this is that it must be pure .NET without bindings. Sorry i forgot this to say by my first post.

    Regards NoRulez

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Dispatcher between Qt DLL and C#

    You have to have some kind of bindings if you want to go between C# and C++. Find a C# class that will let you call a C++ library (or a C function), wrap your Qt code into a proper interface that will be callable from C# (that's your binding) and compile it as a library and then call it from your C# code. Remember to provide some means to periodically process Qt events (i.e. by periodically calling QApplication::processEvents() from C# code).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.