Results 1 to 6 of 6

Thread: DLL export problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    13
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default DLL export problem

    hi to all!

    i've created a simple program with export(i'm not sure if my export code is right) and compile it as .dll..

    then i'm trying to access the .dll using delphi.. but the problem is i can't acces the function in my .dll.. please help..

    heres my code:

    //in .h
    Qt Code:
    1. class q_decl_export dialogimpl : public qdialog, public ui.html#Dialog
    2. {
    3. Q_OBJECT
    4. public:
    5. DialogImpl;
    6. #endif" class="bbcodeurl">#ifndef DIALOGIMPL_H
    7. #define DIALOGIMPL_H
    8. #include <QDialog>
    9. #include "ui_dialog.h"
    10.  
    11. class Q_DECL_EXPORT DialogImpl : public QDialog, public Ui::Dialog
    12. {
    13. Q_OBJECT
    14. public:
    15. DialogImpl( QWidget * parent = 0, Qt::WFlags f = 0 );
    16. void ShowMessage();
    17. private slots:
    18. };
    19. Q_DECL_EXPORT void ShowMessage();
    20. #endif
    21. //in .cpp
    22.  
    23. #include
    24.  
    25. //
    26. q_decl_export dialogimpl.html#DialogImpl;
    27. }" class="bbcodeurl">#include "dialogimpl.h"
    28. #include <QMessageBox>
    29.  
    30. //
    31. Q_DECL_EXPORT DialogImpl::DialogImpl( QWidget * parent, Qt::WFlags f)
    32. : QDialog(parent, f)
    33. {
    34. setupUi(this);
    35. ShowMessage();
    36. }
    37.  
    38. Q_DECL_EXPORT void DialogImpl::ShowMessage()
    39. {
    40. QMessageBox::information(this, tr("DLL"),"DLL exported!");
    41. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by marcel; 11th February 2008 at 07:08. Reason: missing [code] tags

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. qtopia core 4 Fonts on device problem
    By thanwei in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th September 2007, 20:42
  3. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  4. problem aboout install qt/e 3.3.4
    By cti1912 in forum Installation and Deployment
    Replies: 0
    Last Post: 12th October 2006, 09:28
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.