Click here to Skip to main content
15,890,947 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Generalassembly not showing in Add Reference dialog box Pin
econner16-Aug-04 11:05
econner16-Aug-04 11:05 
GeneralRe: assembly not showing in Add Reference dialog box Pin
econner16-Aug-04 15:00
econner16-Aug-04 15:00 
General.NET CPU usage by thread Pin
JohnMDavey16-Aug-04 1:16
JohnMDavey16-Aug-04 1:16 
Generaldatagrid scroller -- help me --- :-)) Pin
kings_115-Aug-04 3:57
kings_115-Aug-04 3:57 
GeneralRe: datagrid scroller -- help me --- :-)) Pin
sbasheer30-Aug-04 4:26
sbasheer30-Aug-04 4:26 
Generalaccess2000 via OleDB doesn't work for memo fields Pin
Hagen7415-Aug-04 2:28
Hagen7415-Aug-04 2:28 
Generalngen assemblies does not work Pin
Hagen7414-Aug-04 23:18
Hagen7414-Aug-04 23:18 
GeneralMarshal C# String to ActiveX DLL Pin
rgondzur13-Aug-04 12:05
rgondzur13-Aug-04 12:05 
I have an VB ActiveX DLL with a function the receives a string parameter.
I want to call this function from C#.
I made a reference to the DLL in my VS 2003 project.

DLL Function
--------------
public function ShowMsg (strIn as String)
msgbox strIn
end function


C# Function Call
------------------

string str1 = "ABCD";

Class7 s = new Class7Class();

s.ShowMsg(str1);


When I call the function from C#, I get an error:

Argument '1': cannot convert from 'byte[]' to 'ref string'

How do I marshal a C# string to an ActiveX DLL string?

Thanks,

Rg

GeneralRe: Marshal C# String to ActiveX DLL Pin
Steven Campbell13-Aug-04 15:25
Steven Campbell13-Aug-04 15:25 
QuestionHow to Remove a DLL Reference Pin
rgondzur12-Aug-04 9:40
rgondzur12-Aug-04 9:40 
AnswerRe: How to Remove a DLL Reference Pin
cvp7712-Aug-04 21:23
cvp7712-Aug-04 21:23 
GeneralRe: How to Remove a DLL Reference Pin
rgondzur13-Aug-04 3:05
rgondzur13-Aug-04 3:05 
GeneralRe: How to Remove a DLL Reference Pin
rgondzur13-Aug-04 12:05
rgondzur13-Aug-04 12:05 
GeneralRe: How to Remove a DLL Reference Pin
cvp7715-Aug-04 21:09
cvp7715-Aug-04 21:09 
GeneralRe: How to Remove a DLL Reference Pin
rgondzur16-Aug-04 3:24
rgondzur16-Aug-04 3:24 
GeneralRe: How to Remove a DLL Reference Pin
cvp7717-Aug-04 0:30
cvp7717-Aug-04 0:30 
QuestionHow to show winform with negative location values Pin
Sebastian P.R. Gingter12-Aug-04 2:07
Sebastian P.R. Gingter12-Aug-04 2:07 
AnswerRe: How to show winform with negative location values Pin
Sebastian P.R. Gingter12-Aug-04 2:57
Sebastian P.R. Gingter12-Aug-04 2:57 
General"Depth Of Field" Sample in C# Pin
Stanimir_Stoyanov11-Aug-04 22:20
Stanimir_Stoyanov11-Aug-04 22:20 
GeneralView T-SQL statement in VB.NET IDE Pin
Ryan Joseph11-Aug-04 21:24
Ryan Joseph11-Aug-04 21:24 
General.Net Remoting Pin
BhaktavatsalamReddy11-Aug-04 18:58
BhaktavatsalamReddy11-Aug-04 18:58 
GeneralRe: .Net Remoting Pin
mav.northwind12-Aug-04 20:21
mav.northwind12-Aug-04 20:21 
Generalcommon lang. runtime debugging services Pin
dotnet_cpp11-Aug-04 9:38
dotnet_cpp11-Aug-04 9:38 
GeneralRe: common lang. runtime debugging services Pin
leppie23-Aug-04 21:54
leppie23-Aug-04 21:54 
Generalconfiguring the output path of VS .NET Pin
Mahasen Bandara11-Aug-04 1:39
Mahasen Bandara11-Aug-04 1:39 

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.