Solved

MsgBox never gets called within my ActiveX DLL

Posted on 2003-10-21
2
228 Views
Last Modified: 2010-05-01
I have a very strange problem with my Visual Basic 6.0...
I have commented all the code so I am basically left with somthing like this
in my DLL class ...

Public Function TestFunction ( ...some parameters here ...) As Boolean
    MsgBox "This never gets called!!"
End Function

The strange part is the MsgBox never gets called...I pass in a string (call by reference) and I
am able to assign to it no problem so I know the function itself is being invoked...Is this due
to a bug? or am i missing somthing very obvious here?? I am quite certian i was able to use MsgBox with DLL calls before so perhaps I have some incorrect settings..please help

Thanks
CN
0
Comment
Question by:const71
2 Comments
 
LVL 4

Accepted Solution

by:
TigerZhao earned 30 total points
Comment Utility
Project\Project1 Properties...
General Tab
uncheck "Unattended Execution"
0
 

Author Comment

by:const71
Comment Utility
Great,

That fixed it :)


Thanks alot
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now