PDA

Click to See Complete Forum and Search --> : ActiveX.Exe's and forms


gerharst
Jan 3rd, 2001, 03:56 PM
The problem that I have been having is with ActiveX.Exe's and forms.

Server Component
1) I created a ActiveX.Exe and added a form, the class was already there
2) Added code to a function under the class that would show the form
3) Compiled the ActiveX.exe

client Component
1) Made a standard EXE
2) made a simple form with one command button
3) Referenced the ActiveX.exe
4) Code the form and then tested the client and server on same machine
5) The client created the object and the object was visible in the task manager/processess and the activex form popped up.

So I wanted to put the client on another computer
1) created a setup add .vbr to the setup program
2) installed the program
3) ran the program and it created the object on the server machine, but no ActiveX form was visible

Question, where is the form. I thought that it would have popped up on the server, but it did not. Help Please

Thanks

tumblingdown
Jan 4th, 2001, 01:41 AM
If your aX.exe is called foo, at a cmd prompt try typing

foo.exe /regserver



td.

samwise
Jan 4th, 2001, 11:16 AM
I created an ActiveX exe, with a form that popped open when the class was created. I registered the class on a server, and then tried to run the client program that referenced the ActiveX exe. However, in my case, I wanted the form to show up on the client computer, not the server computer. Much to my suprise (and stupidity), it did show up on the server computer.
Private Sub Class_Initialize()
Dim f As New Form1
f.Show vbModal
End Sub

I'm trying to remember how I did it.
What threading model are you using for your ActiveX exe?
1 - Private
2 - PublicNotCreatable
3 - SingleUse
4 - GlobalSingleUse
5 - MultiUse
6 - GlobalMultiUse
I'm trying to remember, that this is what I had to change to get it to do this, to show up on the server.

Samwise Galenorn
sam@galenorn.com