473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Running VB code external to my application

Max
Hello,

I have written a VB.NET Windows application that will be
used by my customers to automate another application.

I want to allow my users to execute Visual Basic code
that they have written.

I know how to call an external compiled application
(executable) and run it.

Is it possible to call a VB code module that is external
to my compiled application?

Thank you for any help.

Best regards,

Max
Nov 20 '05 #1
4 1347
Yes

It is called remoting.

Do a search for it. Microsoft has a very simple app for an example. I
forgot the exact page or else I would post it.

Shawn Shelton

Max wrote:
Hello,

I have written a VB.NET Windows application that will be
used by my customers to automate another application.

I want to allow my users to execute Visual Basic code
that they have written.

I know how to call an external compiled application
(executable) and run it.

Is it possible to call a VB code module that is external
to my compiled application?

Thank you for any help.

Best regards,

Max


Nov 20 '05 #2
Save this code (source - if you mean it) to file, run compiler on it and
load resulting assembly as separate process or internal call - check
AppDomain and CodeDom namespaces for available functionality.

If clients will generate assemblies (dll or exe), you can use AppDomain and
Reflection fuctionality only to call methods.

HTH
Alex

"Max" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
Hello,

I have written a VB.NET Windows application that will be
used by my customers to automate another application.

I want to allow my users to execute Visual Basic code
that they have written.

I know how to call an external compiled application
(executable) and run it.

Is it possible to call a VB code module that is external
to my compiled application?

Thank you for any help.

Best regards,

Max

Nov 20 '05 #3
* "Max" <an*******@discussions.microsoft.com> scripsit:
I have written a VB.NET Windows application that will be
used by my customers to automate another application.

I want to allow my users to execute Visual Basic code
that they have written.

I know how to call an external compiled application
(executable) and run it.

Is it possible to call a VB code module that is external
to my compiled application?


<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/DotNetCompiler.zip>
<http://www.codeproject.com/csharp/livecodedotnet.asp>

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Max
Thank you to all that replied . . . all suggestions are
very helpful.

Best regards,

Max
-----Original Message-----
Hello,

I have written a VB.NET Windows application that will be
used by my customers to automate another application.

I want to allow my users to execute Visual Basic code
that they have written.

I know how to call an external compiled application
(executable) and run it.

Is it possible to call a VB code module that is external
to my compiled application?

Thank you for any help.

Best regards,

Max
.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
6
by: Charles Law | last post by:
Suppose my application is running on a client machine, and they report an intermittent problem. It only occurs after the program has been running for a while, and then occasionally fails to perform...
3
by: Oenone | last post by:
In VB6, it's possible to create a project with a class library within it. The project can then be run with F5, and it sits and waits for an external process to create an instance of one of its...
2
by: wakun | last post by:
Hi there, I have my webpage written in C# and I am going to run an external program within the web page. I have my code like using System; using System.Diagnostics; namespace NRP { public...
5
by: plmanikandan | last post by:
Hi, I am having a exe application which will be triggered by a external program.I need to check whether the exe is already running or not.If the exe is runing i need to discard the external...
4
by: nishi57 | last post by:
I hope I can get some help regarding this issue, which has been going on for a while. I have a desktop user who is having problem running "Stored Procedures". The DB2 Connect application works fine...
4
by: Rico | last post by:
Hello, I have an Access application and I would like to not only run an external application, but at the point in the code where it is run, I'd like to wait for the external applicaiton to...
4
by: Olumide | last post by:
Hi - I'm writing a plugin with VS.NET (2003), for an application (Autodesk Maya). My work cycle is basically: 1. write code 2. unload plugin in target application (where I do my testing) 3....
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.