Click here to Skip to main content
15,888,803 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net 2010 determine what files each user has access to Pin
CHill6013-Oct-15 10:26
mveCHill6013-Oct-15 10:26 
QuestionVB.NET Windows Application Pin
Ranganath Deshpande8-Oct-15 10:18
Ranganath Deshpande8-Oct-15 10:18 
AnswerRe: VB.NET Windows Application Pin
Richard Andrew x648-Oct-15 10:38
professionalRichard Andrew x648-Oct-15 10:38 
QuestionAccess tablet webcam Pin
Member 120415567-Oct-15 17:18
Member 120415567-Oct-15 17:18 
QuestionProblems implementing MEF Pin
Kenneth Haugland7-Oct-15 8:43
mvaKenneth Haugland7-Oct-15 8:43 
AnswerRe: Problems implementing MEF Pin
Brisingr Aerowing7-Oct-15 9:15
professionalBrisingr Aerowing7-Oct-15 9:15 
GeneralRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 9:32
mvaKenneth Haugland7-Oct-15 9:32 
QuestionRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 18:57
mvaKenneth Haugland7-Oct-15 18:57 
There is just one problem left, I can't seem to load the Assembly from the imported dll. But I am able to get the type that Im interested in by using this method:
VB
Dim Path As String = ("C:\Users\ ... WpfPlayingAroundWithMEF\LibImportedClasses\bin\Debug")

Dim pluginFiles() As String = Directory.GetFiles(Path, "*.dll")

Dim ipi = (From file In pluginFiles
           Let asm2 = Assembly.LoadFile(file)
           From type In asm2.GetExportedTypes()
          ).ToArray()

So why doesn't the lines:
VB
Dim asm = Assembly.LoadFrom("C:\Users\ ... LibImportedClasses\bin\Debug\LibImportedClasses.dll")
Dim catalog2 As New AssemblyCatalog(asm)

Load the assembly so I can use them?

Edit:
My other project lib looks like this:
VB
Imports System.ComponentModel.Composition
Imports WpfImportedFiles

Public Class Add
    Implements WpfImportedFiles.IMathFunctions

    Public Function DoMath(Num1 As Double, Num2 As Double) As Double Implements IMathFunctions.DoMath
        Return Num1 + Num2
    End Function
End Class

I have tried to add the Export attribute, but that seems to be provided by the inheritedexport in the interface.

modified 8-Oct-15 2:31am.

AnswerRe: Problems implementing MEF Pin
Kenneth Haugland7-Oct-15 20:55
mvaKenneth Haugland7-Oct-15 20:55 
Questionmouse hover over button to show sliding label and don't hide it until mouse leaves the panel. Pin
Pravas Ranjan7-Oct-15 3:11
Pravas Ranjan7-Oct-15 3:11 
QuestionCompiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 1:27
DAH_bham6-Oct-15 1:27 
AnswerRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 1:49
mveRichard Deeming6-Oct-15 1:49 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 2:33
DAH_bham6-Oct-15 2:33 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 2:37
mveRichard Deeming6-Oct-15 2:37 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 2:38
mveRichard Deeming6-Oct-15 2:38 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Dave Kreskowiak6-Oct-15 5:14
mveDave Kreskowiak6-Oct-15 5:14 
SuggestionRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Richard Deeming6-Oct-15 5:20
mveRichard Deeming6-Oct-15 5:20 
GeneralRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
DAH_bham6-Oct-15 3:36
DAH_bham6-Oct-15 3:36 
AnswerRe: Compiled code cannot create Excel.Application, Interpreted is fine Pin
Dave Kreskowiak7-Oct-15 4:33
mveDave Kreskowiak7-Oct-15 4:33 
QuestionStandard VB 2013 progress bar animation weirdness Pin
Member 15839634-Oct-15 8:53
professionalMember 15839634-Oct-15 8:53 
QuestionRe: Standard VB 2013 progress bar animation weirdness Pin
Brisingr Aerowing4-Oct-15 13:09
professionalBrisingr Aerowing4-Oct-15 13:09 
AnswerRe: Standard VB 2013 progress bar animation weirdness Pin
Member 15839634-Oct-15 22:16
professionalMember 15839634-Oct-15 22:16 
QuestionRe: Standard VB 2013 progress bar animation weirdness Pin
Richard MacCutchan4-Oct-15 22:02
mveRichard MacCutchan4-Oct-15 22:02 
AnswerRe: Standard VB 2013 progress bar animation weirdness Pin
Member 15839634-Oct-15 22:41
professionalMember 15839634-Oct-15 22:41 
GeneralRe: Standard VB 2013 progress bar animation weirdness Pin
Richard MacCutchan4-Oct-15 22:53
mveRichard MacCutchan4-Oct-15 22:53 

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.