Solved

MsgBox never gets called within my ActiveX DLL

Posted on 2003-10-21
2
233 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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