Click here to Skip to main content
16,008,175 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 6:56
cstrader23227-Nov-07 6:56 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak27-Nov-07 8:19
mveDave Kreskowiak27-Nov-07 8:19 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 12:07
cstrader23227-Nov-07 12:07 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak27-Nov-07 14:32
mveDave Kreskowiak27-Nov-07 14:32 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 14:59
cstrader23227-Nov-07 14:59 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 15:01
cstrader23227-Nov-07 15:01 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak27-Nov-07 15:29
mveDave Kreskowiak27-Nov-07 15:29 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 16:58
cstrader23227-Nov-07 16:58 
OK, thanks for your patience and help.

The project code that creates the separate dll:

Namespace Indicators
Public Class Indicator
Inherits MarshalByRefObject
Public Function Calculate()
Return 99
End Function
End Class
End Namespace


The project code that tries to read the .dll, excluding only the designer code.
(Right now however it won't run because I copied the code you supplied me but I don't know how to define the Indicator type)

Imports System.Reflection
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ad As AppDomain = AppDomain.CreateDomain("New Domain")
Dim as1 As Assembly = Reflection.Assembly.ReflectionOnlyLoadFrom("C:\ClassLibrary1.dll")
Console.WriteLine(as1.FullName)
Dim remoteCode As Indicator = DirectCast( _
ad.CreateInstanceAndUnwrap(as1.FullName, "ClassLibrary1.Indicators.Indicator"), _
Indicator)
End Sub

End Class



GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 17:22
cstrader23227-Nov-07 17:22 
GeneralRe: vb.net versus c# problem Pin
Dave Kreskowiak28-Nov-07 3:29
mveDave Kreskowiak28-Nov-07 3:29 
GeneralRe: vb.net versus c# problem Pin
Luc Pattyn27-Nov-07 15:35
sitebuilderLuc Pattyn27-Nov-07 15:35 
GeneralRe: vb.net versus c# problem Pin
cstrader23227-Nov-07 17:04
cstrader23227-Nov-07 17:04 
QuestionCode error.Please help..What error is this? Pin
kc_renji27-Nov-07 2:27
kc_renji27-Nov-07 2:27 
AnswerRe: Code error.Please help..What error is this? Pin
pmarfleet27-Nov-07 2:31
pmarfleet27-Nov-07 2:31 
Questionwant to read a field line by line. Pin
kokilaB26-Nov-07 23:59
kokilaB26-Nov-07 23:59 
AnswerRe: want to read a field line by line. Pin
Colin Angus Mackay27-Nov-07 0:09
Colin Angus Mackay27-Nov-07 0:09 
GeneralRe: want to read a field line by line. Pin
kokilaB27-Nov-07 0:21
kokilaB27-Nov-07 0:21 
GeneralRe: want to read a field line by line. Pin
kokilaB27-Nov-07 1:15
kokilaB27-Nov-07 1:15 
Questionlistbox code problem Pin
soniasan26-Nov-07 23:54
soniasan26-Nov-07 23:54 
AnswerRe: listbox code problem Pin
Colin Angus Mackay27-Nov-07 0:13
Colin Angus Mackay27-Nov-07 0:13 
Questionhi all Pin
poonams26-Nov-07 23:43
poonams26-Nov-07 23:43 
AnswerRe: hi all Pin
Colin Angus Mackay27-Nov-07 0:14
Colin Angus Mackay27-Nov-07 0:14 
QuestionMicrosoft Visual SourceSafe related issue. Pin
KETAN K.26-Nov-07 22:46
KETAN K.26-Nov-07 22:46 
AnswerRe: Microsoft Visual SourceSafe related issue. Pin
Dave Kreskowiak27-Nov-07 4:57
mveDave Kreskowiak27-Nov-07 4:57 
GeneralRe: Microsoft Visual SourceSafe related issue. Pin
KETAN K.28-Nov-07 1:28
KETAN K.28-Nov-07 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.