mayayana
Mon May 30 18:23:57 CDT 2005
Maybe someone else can answer for vb5cce. I have
never used that. In VB, in case this info. might be
of any use to you, you can control the behavior in the
project properties dialogue. Set version compatibility setting
(on the Component tab) to project compatibility to maintain the
same typelib through successive compiles. But if you change
the interface then it will, still, write a new typelib and require
re-registration.
That's part of how COM works: Each interface is unique.
In order to have the same object, registered with the same
CLSID, across different machines, the interface needs to
be dependable - or the whole system wouldn't work. So if you
alter the interface then VB will recompile it as a new version
with a new CLSID.
You shouldn't need to change the actual project and OCX name
between compiles, as far as I know, but I don't know the details
of how the "control creation edition" works.
--
--
Daniel <Daniel@discussions.microsoft.com> wrote in message
news:0D277ABE-B3D9-4F34-A9CA-8A1A6746BD2B@microsoft.com...
> I posted simple version because I didn't want to show full version of what
I
> am working on. As long as I could find the functionality working, that was
> what I was looking for.
>
> I admit that I am not an expert in vb or vbscript and you may be right to
> feel that it is a little odd to talk about deploying when I just found how
to
> create ocx.
>
> But I hope I can get some answer for what I ask without explaining all the
> details of what I am working on.
>
> I would appreciate if I can find a way to get around this problem I am
> having. Do I need to change the project and ocx name each time I make
> revision to ocx? It looks a little inconvenient.
>
> Thanks
> Daniel
>
> "mayayana" wrote:
>
> > >
> > > I was able to pass parameters. My visual studio 6 and vb 6 did not
have
> > > visual sourcesafe installed. So I had to use vb5cce.
> >
> > ???? Visual SourceSafe has nothing to do with anything.
> > It's for keeping code and versioning organized in group
> > development environments.
> >
> > It sounds like you should really familiarize yourself more
> > with VB, with compiled COM objects, and with ActiveX
> > usage in webpages before compiling and distributing an OCX.
> > I don't mean to be unkind, but you
> > started 2 days ago trying to hide a simple VBScript so that
> > others would not see your code. Now, 36 hours later, you're
> > distributing OCXs, clearly with very little understanding of the
> > tools that you're using.
> >
> > > The htm file will run from the server.
> > > But it looks that ocx needs to be distributed to all the pc's that
will
> > use
> > > this ocx. Am I right?
> > >
> > Yes. It needs to be installed locally in order to show up
> > in a webpage. Also, your OCX presumably has
> > no digital signature, and is not "safe" for use on a
> > webpage, so IE won't load it anyway
> > unless you're on a closed network with extremely
> > low security settings on all client copies of IE. There are
> > several security settings in IE that involve ActiveX.
> > In order for your OCX to work (and not present alarming
> > warnings to the client) the client must be using IE and the
> > settings such as "Download unsigned ActiveX controls" and
> > "Initialize and script ActiveX controls not marked
> > as safe" must be set to Enabled.
> > Even then, what you're trying to do - access files and
> > printing on a remote machine through a browser - is
> > something you have no business trying to do unless
> > you're acting on behalf of the owner(s) of the machines that
> > you're trying to access.
> >
> >
> > > Thanks for all the help
> > >
> > > Daniel
> > >
> > >
> > > "mayayana" wrote:
> > >
> > > > Since you have VB6 you have three options:
> > > >
> > > > An ActiveX DLL is a COM DLL that can easily
> > > > be created to be scriptable.
> > > >
> > > > An ActiveX EXE is similar to a DLL but it runs
> > > > asynchronously, so it can be used in situations
> > > > where you want to provide events.
> > > >
> > > > Neither a DLL nor an EXE needs any kind of GUI,
> > > > but both can use VB forms if you want that.
> > > >
> > > > The third option is an OCX, which would usually
> > > > be made to be embedded in some kind of GUI -
> > > > IE or a VB form.
> > > >
> > > > All three have COM interfaces and all three offer
> > > > the ability to "expose" public properties and methods to
> > > > script.
> > > >
> > > > For a sample project of an ActiveX DLL that shows
> > > > how to build public object and non-creatable
> > > > public object interfaces:
> > > >
> > > >
http://www.jsware.net/jsware/vbcode.html#axdll
> > > >
> > > > On the same page are several UserControl
> > > > projects. (An email component, an HTTP file
> > > > download component, and a customized Listbox.)
> > > > A UserControl is the code of an OCX before it's
> > > > compiled. It can be compiled directly into a VB
> > > > EXE or compiled separately as an OCX.
> > > >
> > > >
> > > > --
> > > > --
> > > > Daniel <Daniel@discussions.microsoft.com> wrote in message
> > > > news:8950707C-6300-428E-B763-A245D763DC77@microsoft.com...
> > > > > That site was really helpful. I was amazed how easy it was to
create
> > ocx
> > > > > control for the project I was working on. Thanks a lot again. Now
I
> > want
> > > > to
> > > > > pass some parameters I will get from html input area. I am not
> > familiar
> > > > with
> > > > > how to pass parameters to the ocx control from vbscript. Can you
help
> > me
> > > > in
> > > > > this?
> > > > >
> > > > > Thanks
> > > > > Daniel
> > > > >
> > > > > "Joe Earnest" wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > [snipped]
> > > > > >
> > > > > > "Daniel" <Daniel@discussions.microsoft.com> wrote in message
> > > > > > news:DE8699CB-E3D7-4D8B-A6F3-ACE072B4E625@microsoft.com...
> > > > > > > Is there a detailed example on some website?
> > > > > > >
> > > > > > > Thanks
> > > > > > > Daniel
> > > > > > ....
> > > > > >
> > > > > > Guenter Born (a script author) has a page on VB5CCE on his
website.
> > > > Click
> > > > > > on ActiveX Controls in the main page's left column, and then on
> > VB5CCE.
> > > > > >
> > > > > >
http://people.freenet.de/gborn/WSHBazaar/WSHBazaar.htm
> > > > > >
> > > > > > Get the MS download here (at least for now):
> > > > > >
> > > > > >
http://download.microsoft.com/msdownload/sbn/vbcce/vb5ccein.exe
> > > > > >
> > > > > > Joe Earnest
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > >
> > > >
> >
> >
> >