Results 1 to 7 of 7

Thread: How to use a c# function or dll in a Qt project

  1. #1
    Join Date
    May 2014
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default How to use a c# function or dll in a Qt project

    Hi everyone, i'm developing a little project using Qt, and i need to use a function written in C#, i have read about qyoto,mono,smoke, but i did not understand very much about it, so can somebody explain me if there's a way to do it, or if not, can you explain me a different way to do it?
    Thank you so much, and sorry for my english, i'm italian :P and i'm a newbie in Qt programming
    i'll wait for your kind aswers =)
    BYE :thumbsup:

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    Does the DLL export the usual C style interface or is it just managed code without any native interface?

    In the first case you should be able to use the C API just like for any other Windows DLL.

    Cheers,
    _

  3. #3
    Join Date
    May 2014
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    Well my real problem is that i've to manipulate a ref cursor returning by a postgresql db, but in Qt i did not find any solution, so i have a c# function that makes it, i know that qt can use it, but i don't know how Sure, if i found how to manipulate ref cursors with Qt's libraries it's so much better, but googling i didn't find anythitng helpull
    anyway thank you for answering

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    Using a C# library to work with PostgreSQL sounds like a rather convoluted approach.

    If the abstraction provided by QSql does not expose the feature you need, why not use the PostgreSQL API directly?

    Cheers,
    _

  5. #5
    Join Date
    May 2014
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    oh thanks for the idea,but my problem now becomes : "how to use pg api in qt?" i started very recently with qt, so i don't know how to use external api

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    I don't know the PG API but I expect it to be a C API.

    So you add the path to its includes to your INCLUDEPATH variable and and the library and its path to the LIBS variable of your .pro file

    Cheers,
    _

  7. #7
    Join Date
    May 2014
    Posts
    7
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Cheap Ray Ban outlet supply more fashion Ray Ban Erika sunglasses for sale

    all right i'll try XD thanks XD

Similar Threads

  1. Replies: 1
    Last Post: 22nd April 2014, 00:21
  2. Replies: 11
    Last Post: 5th September 2012, 21:47
  3. Replies: 2
    Last Post: 6th July 2011, 14:08
  4. Replies: 0
    Last Post: 10th March 2010, 09:13
  5. Replies: 1
    Last Post: 4th December 2009, 00:34

Tags for this Thread

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.