Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Compilation and Callback

Status
Not open for further replies.

Kalin

Programmer
Jul 24, 2001
76
0
0
NL
Hi,

I have got a program which dynamicaly compiles a vb-file when it is being executed, this allows me to alter the code in the vb-file without altering the executable.

So far so good, I did manage to create this using CompileAssemblyFromSource().

The problem I have is the following....

From within the vb-file I want to call methods in the executable, I don't seem to be able to get my head round this.

Following are some snippets of code:

Start of a module in the executable...

Code:
Public Module modStockRound

    Public Sub NewAuction()

    ......

    End Sub

End Module

The piece of code in the file which should call the method NewAuction()

(At this moment the complete vb file)

Code:
Imports Microsoft.VisualBasic

Public Class StockRound

    Public Sub StartStockRound(ByVal Phase As String)

                modStockRound.NewAuction()

    End Sub

End Class

Grtz,

Kalin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top