Spri
asked on
ActiveX EXE and Forms
Hi,
I have an ActiveX EXE running on my server, and I also have a client application that uses the AXE.
The AXE has a form that is supposed to be shown when the AXE is started. This happens when I manually startup the AXE.
However, when the client starts up and asks the server to start the AXE the AXE starts and the form is not shown.
What am I missing?
Spri
I have an ActiveX EXE running on my server, and I also have a client application that uses the AXE.
The AXE has a form that is supposed to be shown when the AXE is started. This happens when I manually startup the AXE.
However, when the client starts up and asks the server to start the AXE the AXE starts and the form is not shown.
What am I missing?
Spri
ASKER
That is how it is currently setup.(I probably should have mentioned that earlier)
I'm sorry, but it MUST work! This code is from my real project, and it works fine! May be you forget something....
ASKER
It works when I physically start up the service myself...but when the client makes the request for the object the form is no where to be seen..and the EXE is running because the client is able to communicate to it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are doing smth. wrong. Try this example :
Create new ActiveX Exe
in class1
Option Explicit
Public Function gettime() As String
gettime = Time
End Function
Add Form1 (it will be empty)
Add Module1 with:
Option Explicit
Sub Main()
Form1.Show
End Sub
In Project Properties set sub Main as Startup Object (!!!) it's important
Save project as onlyTest and compile it
Then create test project (standart EXE) with Module1
Option Explicit
Sub main()
Dim test As New onlyTest.Class1
MsgBox "Server Time = " & test.gettime
End Sub
Create new ActiveX Exe
in class1
Option Explicit
Public Function gettime() As String
gettime = Time
End Function
Add Form1 (it will be empty)
Add Module1 with:
Option Explicit
Sub Main()
Form1.Show
End Sub
In Project Properties set sub Main as Startup Object (!!!) it's important
Save project as onlyTest and compile it
Then create test project (standart EXE) with Module1
Option Explicit
Sub main()
Dim test As New onlyTest.Class1
MsgBox "Server Time = " & test.gettime
End Sub
ASKER
Thank you.
Sub Main()
myForm.Show
End Sub
In Project Properties set sub Main as Startup Object
HTH