Question

Is there a way to send data from a dll to an exe, entering data from the dll into a form in the exe

Asked by: eneate

Hi

I have a main application running as an exe file, it contains a form which I add text data to
I also have an external active x dll which runs some functions. I want to be able to click on a button ion a form created by the dll and send the data inot the form in the exe. Adding data to the already existant form in the exe not creating a new one. I can generate the text in the dll but don't know ip I can append this data to the form in the exe?

Any ideas guy's???

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-07-11 at 06:42:47ID23557148
Tags

visual basic

Topic

Visual Basic Programming

Participating Experts
1
Points
500
Comments
43

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Exe TO DLL
    I have a simple SDI exe application with print, print preview, save, open file and many more options. I can run this exe and it works fine. Now i want to convert this exe into a DLL. I tried to convert it but it gives me DLL registration problem. I will really appriciate i...
  2. DLL >> EXE
    Part I )) hi everybody !! i wanted to ask if somebody can give me an address of some articles where i can understand how to make procedures and functions in a DLL file, nd make the application to be small and call everything it needs from thr DLL files mentioned ?? Part II ...
  3. exe to dll
    Hi; I have a regular small .exe file run from command prompt. I wonder if it may be possible to convert this file into a dll inorder to call with VB applications. The exe file is called with 2 parameters; and I want to use the output without disk read/write operations. Reg...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Corey2Posted on 2008-07-11 at 08:01:00ID: 21982984

I am not sure what I am missing but a dll can not run by itself.  It needs an exe or script to implement it.  

To better answer your question

How is your dll activated?
Do you have source for the ActiveX dll?

 

by: eneatePosted on 2008-07-11 at 08:36:24ID: 21983340

Hi

The dll is activated from my exe, yes I have the source for the active x.

The problem is that I have a form in my exe that is generated from the exe not the dll.
When the exe activates the dll I need the dll to pass a string to the exe which will invoke a command in the exe to pass a string to the form.

Thanks

 

by: Corey2Posted on 2008-07-11 at 09:36:18ID: 21983856

There are many ways to pass data from one object in your application to another.  If I understand the situation correctly the best way would be to Raise an event from the ActiveX dll.  You will then need the form to catch this event

to do this the form code wil look something like below

'EXE FORM CODE------------------------
Public withevents MyAXdllObj as AXdllObj
 
'you will need a event catch stub
Private Sub MyAXdllObj_MyEvent(byval Str as string)
  'perform actions
End Sub
 
'End EXE Form CODE--------------------------
 
'ActiveX form code --------------------------
Public event MyEvent(byval Str as String)
 
Public Sub Button1_Click()
  RaiseEvent MyEvent("This is the data I want to pass to my other form")
end sub
 
'END ActiveX Code-------------------------------------

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 11:01:41ID: 21984581

Hi, thanks for the help

if I pass a string how do I also add it to the form in the exe?

Basically I have a button in the dll that will create a line of text
The exe contains a function that writes that  line of text and additional data into a form in the exe. The form may or may not be open it is controlled from a function in the exe.

I don't want to click on anything in the exe except the button that loads the form in the dll. I then need the dll form to apply some processes it writes them back to the main exe as a string activating the exe write functions to the exe forms?

 

by: Corey2Posted on 2008-07-11 at 11:10:23ID: 21984640

I presume you are calling your activex form something like below

sub SomeMethod ()
Dim AXFrm as new myAxForm
AXFrm.Show
end sub


instead of the ax form being declared with in the sub you declare it as a class level variable.  Note the WithEvents declaration is very very important.

Private WithEvents AXFrm as new myAxForm

sub SomeMethod ()
AXFrm.Show
end sub

Then you add the event stub similar to the one from my last post (This can be automatically by dropping down the Left Combobox at the top of the code page and selecting AXFrm and then dropping down the right combobox and selecting the event you want to catch)  Now when the form is shown and it raises the event then the EXE will process the string automagically.

 

by: eneatePosted on 2008-07-11 at 11:42:26ID: 21984880

Hi

This is the first time I've really used a dll so please bear with me.

I've decalred the link as

Private df As New edf.cls1

if I change it to private withevents df as new edf i get the error invalid use of new

in the sub I call the form by df.show_form

the show form event is part of a class in the dll.

 

by: Corey2Posted on 2008-07-11 at 11:49:47ID: 21984932

Looks like in vb6 you can't instanciate a variable withevents immediately so

Private WithEvents df As edf.cls1 
 
Sub MyStartAXForm()
 
    set me.df = new edf.cls1
    me.df.show
 
end sub

                                              
1:
2:
3:
4:
5:
6:
7:
8:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 11:55:47ID: 21984980

if I add the privtae with events I get the error object does not source automation events

 

by: Corey2Posted on 2008-07-11 at 12:00:12ID: 21985013

You have to add the event declaration to the ActiveX form

'ActiveX form code --------------------------
'this line declares the event and causes the clase to source automation events
Public event MyEvent(byval Str as String)
'You might have to build the AX form before the exe project will recognize this change.
 
Public Sub Button1_Click()
'this is how you trigger the event (causeing the forms to talk)
  RaiseEvent MyEvent("This is the data I want to pass to my other form")
end sub
 
'END ActiveX Code-------------------------------------
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 13:21:09ID: 21985727

Hi, thanks for that.

I've added the declare and the exe loads the form using    
 Set df = New edf.cls1
 df.show_form

if I add me.df (or frma.df) it doesn't recognise it.

Once the form is open how do I get the code in the dll to trigger the event in the exe? without clicking on anything in the exe?

 

by: eneatePosted on 2008-07-11 at 13:44:59ID: 21985902

Hi
I think I'm slowly getting there, so thanks

DF is now recognised as an event in my exe form. This works to call the form

    Set frm_toolbar.df = New edf.cls1
frm_toolbar.df.show_form

I then have in my exe form
Private Sub df_MyEvent(ByVal str As String)
frm_toolbar.df.process 'this is the class in my dll
write_text 'this is a function in the exe which writes the text to the exe form
End Sub

in the dll click event I have used RaiseEvent MyEvent("kjkdskfhskdjhfskd")

but nothing happens - ???

 

by: Corey2Posted on 2008-07-11 at 13:49:37ID: 21985936

I think you want to call the df.process method in the df code before raising the event.
Then you can place a breakpoint on the event handling sub to make sure it is getting called.
Nothing is happening because you are not passing the str to the write_text method so it isn't receiving the string that was passed across.

 

by: eneatePosted on 2008-07-11 at 14:15:01ID: 21986114

I think the problem may be getting the right call from the form to the class in the dll from the button click event.

In the class i have

Public Function audit_trail()

 RaiseEvent MyEvent(audit_text)

End Function

audit_text is a global string

in the button click event in the dll form I have

audit_text = "write to file"
MsgBox audit_text

Call a.audit_trail

at the top of the for I used Dim a As cls1
to link the class module. the msgbox reports the code correctly then I get error variable ot with variable not set

 

by: Corey2Posted on 2008-07-11 at 14:20:18ID: 21986143

I understood that cls1 is the activex form
This code needs to be in the activex form not the exe

Public Function audit_trail()

 RaiseEvent MyEvent(audit_text)

End Function

For Call a.Audit_Trail you have to at some point set a to something

set a = new cls1

 

by: Corey2Posted on 2008-07-11 at 14:22:05ID: 21986152

But again if a is your activex form you have to declare it
Dim Withevents a as cls1
otherwise you will not be waiting for the event and the exe will never know the event was raised.

 

by: eneatePosted on 2008-07-11 at 14:23:59ID: 21986165

sorry, I'm good at confusing myself on this one!!

the function is in the class mod of the active x not the exe - you were right the first time.

 

by: eneatePosted on 2008-07-11 at 14:29:48ID: 21986215

I have this in the button click of the dll form

Private Sub Command1_Click()
Set a = New cls1

audit_text = "write to file"
MsgBox audit_text

Call a.audit_trail

End Sub

this in the class mod of the dll form

Public Function audit_trail()

 RaiseEvent MyEvent(audit_text)

End Function

I get the first msgbox the appear but nothing else, I put a msgbox at the begining of the df_myevent sub in the main exe but it doesn't get this far...

 

by: Corey2Posted on 2008-07-11 at 14:33:25ID: 21986237

I hate to confuse you more at this point, but
if you are calling a function from the exe you could also do this


----exe code---
Public Sub RunAudit ()
audit_text = "write to file"
MsgBox audit_text
set a = new cls1
Dim ReturnFromActiveX as String
ReturnFromActiveX  =  a.audit_trail("Text to Process")
'Now the processed text is stored in ReturnFromActiveX
write_text(ReturnFromActiveX)
end sub
 
Sub Write_Text (byval Text as string)
   textbox1.text = Text
end sub
 
--------ActiveX code----------
 
Public Function audit_trail(byval InText as string) as string
 
     'Process the text that came in
     dim OutText as string
      OutText = Intext & " -  I Modified the in text"
     audit_trail = outtext
 
End Function
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 14:36:47ID: 21986258

confusing me, not a problem I'll have a look and get back to you. Thanks

 

by: Corey2Posted on 2008-07-11 at 14:38:27ID: 21986266

At the top of each of your forms add the following line below.  This will expose the root of most of your problems.  You aren't grasping the scope of a declaration.

If you declare a variable in a sub or function it is only available in that function to pass it to another you have to pass it to the other sub as a parameter or it goes out of scope and dissapears option explicit will not allow you to intrinsically declare a new variable by just using it and forces you to have all your variables declared in the propper scope.

Corey

Option Explicit

                                              
1:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 14:40:21ID: 21986274

in the orevious code I added a msgbox to the beginning of the code in the dll class. This showed up fine so the call a.audit_trail is going there.

The function in the dll class is
Public Function audit_trail()
MsgBox "at"
 RaiseEvent MyEvent(audit_text)

End Function

but nothing happens after that?

 

by: eneatePosted on 2008-07-11 at 14:44:10ID: 21986304

in the main exe I do already have option explicit, but not in the dll. I have just added it built it and rerun but it goes to the msgbox in the class function and no further, any idea what I'm just not getting ;-)

 

by: Corey2Posted on 2008-07-11 at 14:47:19ID: 21986319

Could you post all the code in the exe related to this problem
the declaration of the AXform
the event trap stub
the method that causes the ax form to show

 

by: eneatePosted on 2008-07-11 at 14:49:52ID: 21986331

I've also added this to the class function call
both message boxes return fine and the contents of the variable ar being carried across but bothing actually ets actioned in the main exe?

Public Function audit_trail()
MsgBox "at"
 RaiseEvent MyEvent("test text")
 MsgBox audit_text
 
End Function

                                              
1:
2:
3:
4:
5:
6:

Select allOpen in new window

 

by: Corey2Posted on 2008-07-11 at 14:53:17ID: 21986356

Is the code you just posted in the main exe?

 

by: eneatePosted on 2008-07-11 at 14:55:22ID: 21986371

OK first the code in the exe that loads the form with no problems
Private Sub Command25_Click()

''' Show the Activex interface
   'df.show_form
    Set frm_toolbar.df = New edf.cls1
frm_toolbar.df.show_form
 
  End Sub

This is declared at the top of the form

Public WithEvents df As edf.cls1

this is the df event code with test msg boxes
Private Sub df_MyEvent(ByVal str As String)
MsgBox "even"


audit_text = frm_toolbar.df.audit_trail
MsgBox audit_text
write_audit_trail

End Sub

attached as a snippet is all the code in the form of the dll

thanks for perservering with me

Option Explicit
 
Public cs As String
Dim WithEvents a As cls1
Dim mTestForm As frmedf
 
 
 
Private Sub Command1_Click()
Set a = New cls1
 
audit_text = "write to file"
MsgBox audit_text
 
Call a.audit_trail
 
End Sub
 
Private Sub Command2_Click()
Unload Me
Set frmedf = Nothing
End Sub
 
Private Sub Form_Load()
 
frmedf.Option1(0).value = True
Call edf_options
 
End Sub
 
Private Sub Option1_Click(Index As Integer)
Call edf_options
End Sub
 
now the dll class form code
 
Option Explicit
 
Public Event MyEvent(ByVal Str As String)
 
Public Sub show_form()
 
frmedf.Show
 
End Sub
Private Sub Class_Initialize()
 
  'Set mTestForm = New frmedf
 
End Sub
 
Public Function audit_trail()
MsgBox "at"
 RaiseEvent MyEvent("test text")
 MsgBox audit_text
 
End Function

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 14:57:01ID: 21986375

in answer to the question just before my last post, no the previous code is in the class mod of the dll

 

by: eneatePosted on 2008-07-11 at 14:57:41ID: 21986379

just for clarity this is in the class mod of the dll NOT the exe

Public Function audit_trail()
MsgBox "at"
 RaiseEvent MyEvent("test text")
 MsgBox audit_text
 
End Function

 

by: Corey2Posted on 2008-07-11 at 15:00:36ID: 21986392

Change the exe as follows

Private Sub Command25_Click()
 
''' Show the Activex interface
   'df.show_form
 
    Set frm_toolbar.df = New edf.cls1
    df = frm_toolbar.df '<--Add this line
    frm_toolbar.df.show_form
 
  End Sub

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:

Select allOpen in new window

 

by: eneatePosted on 2008-07-11 at 15:07:04ID: 21986431

I get the error property doesn't support this property or method relating to lin df = frm_toolbar.df
if I take it out the form loads but I get the same result as before?

 

by: Corey2Posted on 2008-07-11 at 15:08:52ID: 21986444

Sorry I normally code in .Net and in .net you don't have to use the Set keyword.

Set df = frm_toolbar.df

 

by: eneatePosted on 2008-07-11 at 15:17:53ID: 21986498

ok, that run now with the set, but it doesn't pass to the exe. the df_event doesn't appear to trigger as the first msgbox doesn't activate - thanks

 

by: Corey2Posted on 2008-07-11 at 15:24:27ID: 21986533

is mTestForm  the form you want the data go show in?

 

by: eneatePosted on 2008-07-11 at 15:34:52ID: 21986578

no, that was just a test er just ignor it

the text just doesn't appear to pass over. I've created a new test exe and it does the same as my original one. I just though I's try and simplify it a bit and see if I can pass the text via a string to trigger an event from the exe.

This is the code from the new exe form

Option Explicit
Public WithEvents df As edf.cls1

Private Sub Command1_Click()
    Set Me.df = New edf.cls1
 Set df = Me.df '<--Add this line
    Me.df.show_form
End Sub

Private Sub df_MyEvent(ByVal Str As String)
MsgBox "event"

Call ght
End Sub

this is the code from the new exe module (that I want to dll to trigger)

this is all the code in the dll form

Option Explicit

Public cs As String
Dim WithEvents a As cls1
Dim mTestForm As frmedf
Public Event MyEvent(ByVal Str As String)



Private Sub Command1_Click()
Set a = New cls1

audit_text = "test text"

Call a.audit_trail

End Sub

Private Sub Command2_Click()
Unload Me
Set frmedf = Nothing
End Sub

Private Sub Form_Load()

frmedf.Option1(0).value = True
Call edf_options

End Sub

Private Sub Option1_Click(Index As Integer)
Call edf_options
End Sub

and finally this is all the code in the dll class

 

by: eneatePosted on 2008-07-11 at 15:36:26ID: 21986589

sorry missed the code in the new exe module it is

Public Function ght()
MsgBox "test"
End Function

 

by: Corey2Posted on 2008-07-11 at 16:30:04ID: 21986787

I think you forgot the code for the cls1

 

by: eneatePosted on 2008-07-12 at 01:01:32ID: 21988106

sorry, long night here is the cls code

Option Explicit

Public Event MyEvent(ByVal Str As String)

Public Sub show_form()
 
frmedf.Show

End Sub
Private Sub Class_Initialize()

  'Set mTestForm = New frmedf
 
End Sub

Public Function audit_trail()
MsgBox "at"
 RaiseEvent MyEvent(audit_text)
 MsgBox audit_text

'End Function

I also tried changing th above function to


Public Function audit_trail(ByVal InText As String) As String
 
     'Process the text that came in
     Dim OutText As String
      OutText = InText & " -  I Modified the in text"
      MsgBox OutText
     audit_trail = OutText
     
     MsgBox audit_trail

again the msgboxes work perfectly but ti doesn't go the the raise event funxtion in the exe??

 

by: eneatePosted on 2008-07-12 at 04:58:21ID: 21988754

Hi

If I add the call from the exe call me.df.audit trail, it accesses the msgbox in the audit function in the dll and goes to the event in the exe. But I need it to work the other way around.
I need to click on a command in the dll and cause a function in the exe to execute?
If I try to run it from the dll it goes to the 1st line in the class module function but doesn't ececute the command in the exe under the my event listing - I'm obviously missing something??

Help!! ;-)

 

by: Corey2Posted on 2008-07-13 at 20:53:14ID: 21995551

The problem appears to be that when catching events you have to be watching the same instance of the same class that is actually firing the event.

In this case you have 2 instances of cls1.  In the exe you have Public Withevents df as cls1 and in the dll you have Public WithEvents a as cls1.  I believe you are calling code on 'a' but in the exe you are watching df.  If you make a and df the same object first you will catch the events.  This can be done by adding one of the following lines before calling the audit.

Set a = df
or
Set df = a

essencially df in the exe needs to be the same as 'a' in the dll.  You are currently creating a new cls1 object for a.



ofcourse you may need to add some extra pathing in there like

 

by: eneatePosted on 2008-07-14 at 11:10:13ID: 22000496

Hi

Thanks for the reply. It looks like if I click on a function in the exe it triggers the request in the dll and then executes the function in the my event of the exe.
But I need the it the other way around, when I click on the button in the dll I need it to trigger an event from the exe modules?

 

by: Corey2Posted on 2008-07-16 at 09:35:47ID: 22017598

You stated that the EXE starts the Dll, and this is what you said is working,  so perhaps you have to take a step back and look at the fundamentals of how things are put together and move code around until things work the way you expect.

All you need is for both the exe and the dll to have a variable set to the same instance of an object.  When that object fires an event (Nomatter if it was triggered by an event(button click from the dll) or a call from the exe)  the event trap in the exe will catch it and run everything that is called in the event trap stub.

 

by: eneatePosted on 2008-07-16 at 10:48:05ID: 31475615

Hi

Thanks very much for all the help. I'm sure as I have it working one way I'll be able to move it around the other. Thanks again for all your help

 

by: Corey2Posted on 2008-07-17 at 20:20:55ID: 22032658

Hope everything works out as you plan.  Thanks for the grade.  Sorry it ended up being a long thread.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...