Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to Transform VC2010 rc file to QT, a dll file as plug app

How to Transform VC2010 rc file to QT, a dll file as plug app

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 831 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cawlfj
    wrote on last edited by
    #1

    Dear Mr. SGaist

    Many thanks for your reply.

    I want to buid a DLL file for a host softwaer as plug app, after tried i got the frist target that DLL can be attached in the host software and added a menu item.
    When click the menu item can call DLL by using MessageBox(NULL, L"Test", L"Show a message", MB_OK);

    but if i change the show message code to

    // this file is TaskMeassageBox.cpp

    #include"TaskMeassageBox.h"
    #include<Windows.h>
    #include<QDialog>

    void TaskMeassageBox::perform()
    {
    QDialog *dialog = new QDialog();
    dialog->show();
    //MessageBox(NULL, L"Test", L"Show a message", MB_OK); //can show the pop up the message

    }

    when click the menu item the host softwear wih crash down.

    // this file is TaskMeassageBox.h

    #pragma once
    #include <conio.h>
    #include <iostream>

    #include<QDialog>

    class TaskMeassageBox
    {
    public:
    void perform();

    };

    could you help to point out the where is wrong?

    Best regards,
    Jeff

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      There's something not clear in your question, do you want to create an application that uses plugins or create a Qt application that should resized in a DLL ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved