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
- Subject: Re: Using DLL files
- From: Till Oliver Knoll <oliver.knoll@xxxxxxxxxxx>
- Date: Tue, 19 Sep 2006 18:27:54 +0200
- Delivered-to: qt-interest@trolltech.com
- List-help: <mailto:qt-interest-request@trolltech.com?subject=help>
- List-post: <mailto:qt-interest@trolltech.com>
- List-subscribe: <mailto:qt-interest-request@trolltech.com?subject=subscribe>
- List-unsubscribe: <mailto:qt-interest-request@trolltech.com?subject=unsubscribe>
- Organization: AutoForm Engineering GmbH
- Resent-from: qt-interest@xxxxxxxxxxxxx
- Resent-message-id: <6ripo.a.ofd.fhbefb@esparsett>
- Resent-sender: qt-interest-request@xxxxxxxxxxxxx
- To: Qt Interest List <qt-interest@xxxxxxxxxxxxx>
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
- Subject: Re: Using DLL files
- From: human being <humanforums@xxxxxxxxx>
- Date: Wed, 20 Sep 2006 03:46:55 -0700 (PDT)
- Delivered-to: qt-interest@trolltech.com
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=j1s735mAdEQkRkR+e2v2YPmVNvIoVra6yiTy8WYue6BnD46w+U8ddIpEyLti20zZYxLpMv4ayIk/003t2So4R2XiDJf5MIWl4atY7PpLJgQmu6cvLgiFNGh+JBBghT0xlqRHmIIDfwGEHKl63tl5UEqxN1TMjy87jrMi19N+qO0= ;
- List-help: <mailto:qt-interest-request@trolltech.com?subject=help>
- List-post: <mailto:qt-interest@trolltech.com>
- List-subscribe: <mailto:qt-interest-request@trolltech.com?subject=subscribe>
- List-unsubscribe: <mailto:qt-interest-request@trolltech.com?subject=unsubscribe>
- Resent-from: qt-interest@xxxxxxxxxxxxx
- Resent-message-id:
- Resent-sender: qt-interest-request@xxxxxxxxxxxxx
- To: qt-interest@xxxxxxxxxxxxx
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 Knollwrote: 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
沒有留言:
張貼留言