[Qt-interest] qt dll in .net c# app?

Liam Staskawicz lstask at gmail.com
Fri Jan 22 01:36:15 CET 2010


I've been trying to integrate a library written in Qt into a .NET C# app.  Has anybody else done something similar?

At this point, I have just about everything building in Visual Studio 2008 - I've made a couple of manual wrapper classes in the style of the examples at http://doc.trolltech.com/4.6/activeqt-dotnet.html, but when I try to import and then make a static method call on one of my wrapper classes, I'm getting errors like:
 * The type or namespace MyLib could not be found (are you missing a using directive or an assembly reference?)

It clearly can't resolve my 'using' directive, but I'm not quite sure how to fix that...

Also, one of the steps I took to get things to build was to select the Common Language Runtime support option in Properties -> Configuration Properties -> General, although when I build, I'm getting a lot of the following warnings:
 * /path/to/qt/corelib/tools/qchar.h: warning '__fastcall' incompatible with the \clr option, converting to '__stdcall'

I'm not sure if this will turn out to be a big problem, but it does suggest that I might have something set up incorrectly.

This is all with Qt 4.6.1.  Any tips?  Thanks for your assistance!
Liam



More information about the Qt-interest-old mailing list