|
-
Jan 3rd, 2001, 04:56 PM
#1
Thread Starter
New Member
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
-
Jan 4th, 2001, 02:41 AM
#2
Hyperactive Member
If your aX.exe is called foo, at a cmd prompt try typing
foo.exe /regserver
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Jan 4th, 2001, 12:16 PM
#3
Member
Sounds like what I did
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
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|