Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Heath Stewart1-Apr-04 6:07
protectorHeath Stewart1-Apr-04 6:07 
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol1-Apr-04 8:28
sbeausol1-Apr-04 8:28 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Nick Parker1-Apr-04 10:15
protectorNick Parker1-Apr-04 10:15 
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol1-Apr-04 10:23
sbeausol1-Apr-04 10:23 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Heath Stewart2-Apr-04 8:51
protectorHeath Stewart2-Apr-04 8:51 
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol2-Apr-04 10:32
sbeausol2-Apr-04 10:32 
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol2-Apr-04 10:46
sbeausol2-Apr-04 10:46 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Heath Stewart2-Apr-04 10:48
protectorHeath Stewart2-Apr-04 10:48 
Okay, so it is marshaling the string as a BSTR. Good. I don't use VB.NET much, but syntax you'd need to pass is ref myString, which is typically unusual since a string is already a reference type (though immutable), so you don't usually use ref or out. Unfortunately, I don't know of any equivalent keyword to pass a reference to an argument in VB.NET. You may have to use C#, which has support for better memory manipulation. If you want to have just one assembly, you can compile the C# code as a module (not assemly or EXE) and then compile that into the VB assembly using the /addmodule switch on vbc.exe, the VB.NET command-line compiler.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: OCX Control .NET Heath Can you help? Pin
sbeausol2-Apr-04 10:56
sbeausol2-Apr-04 10:56 
GeneralRe: OCX Control .NET Heath Can you help? Pin
Heath Stewart2-Apr-04 11:00
protectorHeath Stewart2-Apr-04 11:00 
GeneralStill fails in C# Pin
sbeausol2-Apr-04 11:18
sbeausol2-Apr-04 11:18 
GeneralRe: Still fails in C# Pin
Heath Stewart3-Apr-04 3:14
protectorHeath Stewart3-Apr-04 3:14 
GeneralRe: Still fails in C# Pin
sbeausol3-Apr-04 6:17
sbeausol3-Apr-04 6:17 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:11
protectorHeath Stewart1-Apr-04 5:11 
GeneralRe: save datagrid Pin
bertcox1-Apr-04 5:35
bertcox1-Apr-04 5:35 
GeneralRe: save datagrid Pin
Heath Stewart1-Apr-04 5:56
protectorHeath Stewart1-Apr-04 5:56 
GeneralInterop Question. Again... Pin
DrGreen1-Apr-04 3:15
DrGreen1-Apr-04 3:15 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 3:41
mveDave Kreskowiak1-Apr-04 3:41 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 3:57
DrGreen1-Apr-04 3:57 
GeneralRe: Interop Question. Again... Pin
Dave Kreskowiak1-Apr-04 4:11
mveDave Kreskowiak1-Apr-04 4:11 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 5:39
protectorHeath Stewart1-Apr-04 5:39 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:06
DrGreen1-Apr-04 6:06 
GeneralRe: Interop Question. Again... Pin
Heath Stewart1-Apr-04 6:23
protectorHeath Stewart1-Apr-04 6:23 
GeneralRe: Interop Question. Again... Pin
DrGreen1-Apr-04 6:33
DrGreen1-Apr-04 6:33 
GeneralRe: Interop Question. Again... Pin
leppie1-Apr-04 6:17
leppie1-Apr-04 6:17 

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.