Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


ASP and language C

Posted on 1999-06-23
Medium Priority
Last Modified: 2013-12-25
how to execute an exe who i create with the language C in ASP ? please give me a sample
Question by:ylarvor
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
  • 2
  • 2
LVL 10

Expert Comment

ID: 1834708
Is it an executable or an ActiveX control?  If ActiveX, do this:

Set YourObj = Server.CreateObjecT("Project.Class")
YourObj.Function ....


Accepted Solution

jonalee earned 300 total points
ID: 1834709
ASP does not directly support execute any EXE file. Not like Perl.
But, you can create an AxtiveX Server Component. In that component, you call the EXE file.

  Set Obj=Server.CreateObject("Comm.Commnad.1")

As In the component, you need to use the function "CreateProcess" to execute the command. If you need the call return until the EXE file finish, you need to call the function "WaitForSingleObject" after call "CreateProcess"

LVL 10

Expert Comment

ID: 1834710
Hey jonalee, you coode looks a lot like mine... hmmm..

Expert Comment

ID: 1834711
The important of this is not code. The calling of Component is always the same. Also, ASP has only this one method to call other C++ or VB, etc code.
The important is that you need to tell him that use component as a bridge to call EXE file.
Also, you need to tell him to method to call.
One is call, then return ASAP.
The other is Call, wait for exit, then return.


Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 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