Click here to Skip to main content
15,918,211 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Copying Locked File Pin
Colin Angus Mackay2-Jan-06 22:34
Colin Angus Mackay2-Jan-06 22:34 
QuestionAdding C# class to VB.NET project Pin
militiaware1-Jan-06 11:27
militiaware1-Jan-06 11:27 
AnswerRe: Adding C# class to VB.NET project Pin
Dave Kreskowiak1-Jan-06 12:34
mveDave Kreskowiak1-Jan-06 12:34 
AnswerRe: Adding C# class to VB.NET project Pin
Sameers Javed2-Jan-06 23:32
Sameers Javed2-Jan-06 23:32 
QuestionAPI Pin
militiaware1-Jan-06 11:22
militiaware1-Jan-06 11:22 
AnswerRe: API Pin
Dave Kreskowiak1-Jan-06 12:32
mveDave Kreskowiak1-Jan-06 12:32 
QuestionHow to load a shared memer from an anssembly? Pin
ZimNovember1-Jan-06 11:18
ZimNovember1-Jan-06 11:18 
AnswerRe: How to load a shared memer from an anssembly? Pin
Dave Kreskowiak1-Jan-06 12:14
mveDave Kreskowiak1-Jan-06 12:14 
First, you might want to rethink using this method for a while. At least until the next service pack for .NET 1.1.
A memory leak may occur when you run a .NET Framework 1.1 application that requires the Assembly.LoadWithPartialName() function to load an assembly[^]

I'v never done it, not have I even tried let alone compiled this, but you might be able to do something like:
    Dim lvAssembly As Assembly = Assembly.LoadWithPartialName("MyAssembly")
    Dim myType As Type = lvAssembly.GetType("FullyQual'ed.typeName")
    myType.InvokeMember( _
 
        ' The name of the Method to invoke.
        "myStaticMethod", _
 
        ' Binding flags for finding the method name in the Type,
        ' and what to do with it.
        BindingFlags.DeclaredOnly Or BindingFlags.Public Or _
        BindingFlags.Static Or BindingFlags.InvokeMethod, _
 
        ' Use the default Binder.
        Nothing, _
 
        ' Object to invoke the method on.
        ' Since this is a static method, I don't think you have to put anything here,
        ' but I'm probably wrong.
        Nothing, _
 
        ' An array of arguments to pass to the method, in order of their appearance
        ' in the method definition.
        args)

You'll more than like have to modify this. I suggest reading up on Type.InvokeMember[^] for more information.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 18:15 Sunday 1st January, 2006
GeneralRe: How to load a shared memer from an anssembly? Pin
ZimNovember2-Jan-06 10:56
ZimNovember2-Jan-06 10:56 
GeneralRe: How to load a shared memer from an anssembly? Pin
Dave Kreskowiak2-Jan-06 11:52
mveDave Kreskowiak2-Jan-06 11:52 
QuestionAbout "intrins.h" Pin
sheshidar1-Jan-06 10:48
sheshidar1-Jan-06 10:48 
AnswerRe: About "intrins.h" Pin
Dave Kreskowiak1-Jan-06 11:40
mveDave Kreskowiak1-Jan-06 11:40 
Questionassembly Pin
pgcnet1-Jan-06 5:41
pgcnet1-Jan-06 5:41 
QuestionNotify LAN (dis)connection Pin
MohammadAmiry31-Dec-05 3:27
MohammadAmiry31-Dec-05 3:27 
AnswerRe: Notify LAN (dis)connection Pin
Dave Kreskowiak1-Jan-06 7:01
mveDave Kreskowiak1-Jan-06 7:01 
GeneralRe: Notify LAN (dis)connection Pin
MohammadAmiry2-Jan-06 21:16
MohammadAmiry2-Jan-06 21:16 
QuestionFast Printing in VB dot NET (DOS mode) Pin
tonyveedon31-Dec-05 2:45
tonyveedon31-Dec-05 2:45 
AnswerRe: Fast Printing in VB dot NET (DOS mode) Pin
vertig073031-Dec-05 4:41
vertig073031-Dec-05 4:41 
GeneralRe: Fast Printing in VB dot NET (DOS mode) Pin
tonyveedon31-Dec-05 6:19
tonyveedon31-Dec-05 6:19 
AnswerRe: Fast Printing in VB dot NET (DOS mode) Pin
Dave Kreskowiak31-Dec-05 4:50
mveDave Kreskowiak31-Dec-05 4:50 
GeneralRe: Fast Printing in VB dot NET (DOS mode) Pin
tonyveedon31-Dec-05 6:20
tonyveedon31-Dec-05 6:20 
GeneralRe: Fast Printing in VB dot NET (DOS mode) Pin
Dave Kreskowiak1-Jan-06 6:23
mveDave Kreskowiak1-Jan-06 6:23 
QuestionCrystal Report Error (Urgent) Pin
ajay bharti30-Dec-05 23:31
ajay bharti30-Dec-05 23:31 
AnswerRe: Crystal Report Error (Urgent) Pin
vertig073031-Dec-05 1:58
vertig073031-Dec-05 1:58 
AnswerRe: Crystal Report Error (Urgent) Pin
karim ben romdhane2-Jan-06 21:07
karim ben romdhane2-Jan-06 21:07 

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.