Solved

command line argument for activex-dll/exe

Posted on 1997-09-09
3
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

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

Accepted Solution

by:
estogo earned 150 total points
ID: 1839167
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
ID: 1839168
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

726 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