?
Solved

MsgBox never gets called within my ActiveX DLL

Posted on 2003-10-21
2
Medium Priority
?
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
TigerZhao earned 120 total points
ID: 9595676
Project\Project1 Properties...
General Tab
uncheck "Unattended Execution"
0
 

Author Comment

by:const71
ID: 9595690
Great,

That fixed it :)


Thanks alot
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 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