Solved

Visual C++ Web-based application

Posted on 2000-02-21
6
150 Views
Last Modified: 2013-11-20
I've created a Visual C++ dialog-based application with normal Windows controls. Is it possible to put this application on the web? How? If not, what are the alternatives?
0
Comment
Question by:dinoltan
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:jhattingh
ID: 2543119
What do you mean by "put it on the web?"
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 2543273
> Is it possible to put this application on the web? How?

Yep. Completely rewrite and rearchitect the application as an ISAPI extension, or as an ASP script.  I'm sorry, but there's no magic tool to do the conversion for you.

..B ekiM
0
 

Author Comment

by:dinoltan
ID: 2546187
What do you mean by an ISAPI extension?
Do you mean using the ISAPI Wizard available in VC++ and how is it going to communicate with the Web documents?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 11

Expert Comment

by:mikeblas
ID: 2546795
> What do you mean by an ISAPI extension?

I mean, an ISAPI Extension. It's a DLL that loads on the webserver and can be used to provide dynamic content from that website.

 > Do you mean using the ISAPI Wizard available in VC++

You could use that, sure. Or, you could write one from scratch.

 > and how is it going to communicate with the Web documents?

What "web documents" are you talking about?  Seems like you're about to change the scope of your original question.

..B ekiM
0
 

Author Comment

by:dinoltan
ID: 2549329
I'm developing a WEB-based application, so of course the web server has to communicate with web documents such as HTML files.
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 70 total points
ID: 2551025
Uh, no.

An ISAPI extension doesn't communicate with "Web Documents". I guess you could say an extension would _send_ a "Web Document", but there's no "communications" going on. A "Web Document" isn't an active object and doesn't accept input or output. It's just a stream.

It dynamically generates HTML and sends that code to the client. In MFC code, you'd just use the insertion operator to write the content you want:

   *pCtxt << "<HTML><HEAD><TITLE>Sample Page</TITLE>";
   *pCtxt << "<BODY><i>Here's the body of your response!</i></BODY>";
   *pCtxt << "</HTML>";

If you write a CGI script, you'll actually just use stdio; you could use printf() if you want!

..B ekiM
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 172
wordcount challenge 11 102
Updating statistics with error notification email in SQL server 4 71
Not needed 13 92
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 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

14 Experts available now in Live!

Get 1:1 Help Now