2010年7月24日 星期六

Qt-interest Archive - Using DLL files

Qt-interest Archive - Using DLL files:
Hi,

I want to call a dll file within my program so that I can call the functions in it. Please advise me how can i do it. As I am very new to Qt, it will be better if you can provide a simple example as well.

Please advise.
Thanking you in advance.

Regards,
Alex


---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

Message 2 in thread

human being schrieb:
> Hi,
>   
>   Please advise me how can i do it. As I am very new to Qt,

This has nothing to do with Qt. Read e.g. the docs in the MSDN and the
docs about Visual Studio about creating/linking with DLLs.

In case you're using a *.pro/qmake based build system, you can use
something like win32:LIBS -ltheLib.lib as to link with 'theLib.dll'.
Read the documentation about qmake (it also tells you the switches you
have to set as to create a DLL)

--
[ signature omitted ]

Message 3 in thread

Hi,

Thanks a lot for replying!

Do you mean that I just need to change the project file and compile it. Then in my program I can call the functions of the dll file?

Forgive me if that is not what you meant, because I am very new to Qt, and this is my first time dealing with dll files. That is why I may sound stupid.

Please advise.
Many thanks...

Regards,
Alex

Till Oliver Knoll  wrote:
human being schrieb:
> Hi,
>
> Please advise me how can i do it. As I am very new to Qt,

This has nothing to do with Qt. Read e.g. the docs in the MSDN and the
docs about Visual Studio about creating/linking with DLLs.

In case you're using a *.pro/qmake based build system, you can use
something like win32:LIBS -ltheLib.lib as to link with 'theLib.dll'.
Read the documentation about qmake (it also tells you the switches you
have to set as to create a DLL)

--
[ signature omitted ]
Message 4 in thread

沒有留言: