Thread: How use dialog in DLL?plz help me

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    8

    How use dialog in DLL?plz help me

    Hi Every One

    I 'm writting a dll using MFC classes for deriving a hardware.It works well till I add a dialog class to it and derived an object from that dialog,and when I use pDlg->DoModal() function,my dll makes a runtime error and my VB program which uses that dll,abnormally ended.
    So,please let me know,is it possible show a dialog (an object derived from CDialog) in a dll?if yes How can I implement it?

    million Thanks

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Here is one good tutorial.

    http://www.mindcracker.com/mindcrack...eg_dll_dlg.asp

    Kuphryn

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    8

    Really thank you Kuphryn but.....

    hi Kuphryn
    really thank you for your help,but actually it didn't help me.In real I have a VB project and I develope a DLL for it with VC++,to do some functions in dll,and I want to show the progress of works while functions in DLL are working,so that I need a Dialog in DLL.but as you know,an usua l dialog has Ok and Cancel button and when I use a DoModal function,it waits till user click on ine of these two button,but I want my dialog has only one image and only one progress control and the while image is changing,progress shows the percent of work.So do you have any idea for me?may you help me again?

    Thanks in advance

    AsAdi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Edit controls of a dialog from another dialog...
    By Snake in forum Windows Programming
    Replies: 9
    Last Post: 07-01-2005, 02:18 PM
  3. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  4. Getting the position of a dialog without parent on the screen
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2003, 02:59 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM