Help: Using DLL's with VB and VC++ 
Author Message
 Help: Using DLL's with VB and VC++

Quote:

> I currently have a VB5 application that makes frequent calls to a DLL
> that
> I created in VC++.  That works fine, but I want to display status info
> (in a nice dialog box) to the user while the DLL is doing some
> processing.
> Should I create a VB5 DLL to call from the VC++ DLL or somehow use
> callbacks?  What is the best way to implement this?

Use VB for your GUI, or MFC will find some way to bite you in the butt!

Quote:
> Also, I am having a problem creating a DLL in VB5.  I declared my
> functions as Public but I can't see them using DUMPBIN.

VB creates OLE/ActiveX DLL's, which are very different from regular DLL's.

[snip]

--
Joe Foster <mailto:joe*AT*bftsi0.gate.net> Spam is irrelevant.
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!



Sat, 18 Mar 2000 03:00:00 GMT  
 Help: Using DLL's with VB and VC++


Quote:
> I currently have a VB5 application that makes frequent calls to a DLL
> that
> I created in VC++.  That works fine, but I want to display status info
> (in a nice dialog box)

Ok Here is the hard line this is the Microsoft vision of the thing.

You should turn your DLL into an OCX with an OnStatus event then you only
need to code a status display.

MYCOntrol_StatusChanged(Status as integer)
   select case Status
        case 1
            statusbar.text = "Now munching your disk drive"
        case 2
                statusbar.text = "Emailing threating letters to goverment
leaders in your name."
           etc...

By the way it appears that the new standard is not to have separate dialog
boxes to display status but to show the status on the main form. Check Word
97 down at the bottom a lot is going on.

jr!



Sun, 19 Mar 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Need help passing a DC handle from vb to a vc++ dll

2. help with developing DLL in VC++ to be used in VB

3. VC++ DLL throws an exception OLEAUT.DLL when used in VB.

4. Help:Using VB Funtions In Access With DLL's, EXE's

5. Help:Using VB Funtions In Access With DLL's, EXE's

6. Help:Using VB Funtions In Access With DLL's, EXE's

7. Help:Using VB Funtions In Access With DLL's, EXE's

8. VB can't find entry point in VC++ DLL

9. Non-Modal form in VB DLL can't be called from VC++

10. Debugging VC++ DLL's with VB apps

11. VB5 doesn't accept VC++ DLL: please help

12. Help: Calling dll's form Vbasic writen in VC++ 5.0

 

 
Powered by phpBB® Forum Software