This is a discussion on "Tutorial System using VB.NET" within the ASP.NET Forum section. This forum, and the thread "Tutorial System using VB.NET are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Tutorial System using VB.NET
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Tutorial System using VB.NET
I'm student and doing assignment for Intelligent Tutorial System where focusing on programming such as C. I need to do a html web page where people can write coding at the page and a server for that page will compile the code and give output such as has an error or not. However i'm stuck and do not know how to do it.i'm planning to using VB.NET application.Those anyone can help me?
|
|
|
|
|||
|
I am not sure on executin an app within .net on a server, but pretty sure this can be done as it was possible in classic asp with the use of a component.
As the C compiler is commandline, I can see no reason why this could not be executed. You will need to output your code from the asp page to a file, execute the commandline compiler (directed at the outputted file), and then return the result to a string, etc. I am pretty sure you can compile in a test mode or do a test compile? Problems arrise when using various switches for the compiler and also the compile order when one compiled code relys on another piece of compiled code, headers, libs, etc. Not to sure on the security issues here, but would imagine there could be some dangerous results, even with a test compile, such as the compiler crashing! I would imagine this is very possible, but probably not advisable. I dont think you would find an ISP prepared to host it, unless you did this yourself. Hope this is some sort of help.. |
|
|||
|
|
|
|||
|
oooh ok....thanks...
another suggestion frm my lecturer was if possible he ask me to put the compiler into the webpage itself. i know it's might heavy for user to load the page with the compiler,however that one is just his suggestion.Is it possible to do that? and if possible, anyone can tell me any site that provide the guideline to do that? |
|
|||
|
Is your lecturer just guessing about what can be done?
|
|
|||
|
I wouldn't want to put the compiler onto the webpage itself...
Not only are you giving them more to download, you're also expecting more to work on completly different systems and browsers and what not? It's easier to keep the compiler on the server as that way you know it always works and you don't have compatability problems. And Smokie, I expect he's just putting ideas into their heads... |
|
|||
|
I got a few steps to do that system.Below are the steps:
1) Ask the user to submit their code - Either via a text box or via an upload 2) Invoke the compiler via the WScript.Shell 3) Have FSO (FileSystemObject) parsing the output directory and move the files in the appropriate folder(s) of the site so that the user can access/download them. 4) Create links to point to the files. The steps are possible to do in ASP. Is it possible to do in ASP.NET? |
![]() |
| Tags |
| tutorial, system, using, vbnet |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Category/Tutorial System Help | Aaron1988 | PHP Forum | 9 | Jan 26th, 2008 14:29 |
| Looking for a 3D tutorial | thresherpirate | Starting Out | 2 | Jul 2nd, 2007 11:56 |
| need a pop up tutorial | Joolsd186 | JavaScript Forum | 5 | Aug 16th, 2006 17:00 |