Solved

command line argument for activex-dll/exe

Posted on 1997-09-09
3
336 Views
Last Modified: 2012-08-13
Hello,


I would like to supply an activex-dll/exe on a web-page  with command-line parameters. I have experimented with the tag param name on the HTML-page, but this has not yielded any result. I'm creating the activex-dll/exe with Visual Basic 5, but i'm not sure which components I have to include with my project (class modules or userdocuments or just modules/forms) in order to obtain these param name - values .

Thanks in advance,

Bas Pronk
0
Comment
Question by:BasPronk
3 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
Comment Utility
tried calling these programs using programname.ext?variable1=xxx&variable2=yyy?
0
 
LVL 1

Accepted Solution

by:
estogo earned 150 total points
Comment Utility
Instead of Command line parameters to drive your exe or dll you could create Properties that the object acts on.

<OBJECT ID=MyObjectID CLSID=02347120384481234
CODEBASE=MyCode.cab >

HTML like the above is created by the Application setup wizard if you reauest and Internet setup. Place the code in your web page and you are ready to go.

After the above HTML is processed you can Call code like what I've written below to activate your app.

<SCRIPT LANGUAGE=VBSCRIPT>

Set objMyObj = CreateObject("MyprogID")

objMyObj.MyProperty = "A value"

objMyObj.MyMethod

</SCRIPT>

Hope this helps,

Erik Stogo
0
 

Author Comment

by:BasPronk
Comment Utility
Thanks for the answer. I have tried to implement it in my webpage and in my activex.exe, but somehow I did not succeed. Could you send  me some sample code of a complete webpage in which it does work (for instance with an Office-class or any other common class).

thanks

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now