SWStringArray to .Net string array or ArrayList

dotnet framework


  • 1. [Searching Solution]Are there any multithread serial port control library?
    For CSharp, are there any serial port programming libraries which have been implemented with multi-thread? In my C# program, multiple threads require to access the serial port. Are there any libraries or code samples which could provide a programming model or class? Thanks ^^
  • 2. Change a Tab on a VB Tab Control
    I have a program that was written in Visual Basic 6.0 (i did not write it). The application displays a simple Visual Basic form with a standard Visual Basic 6 tab control (SSTabCtlWndClass). I want to write a C# application that will "manipulate" the control (simulating the a user). How can I switch Tabs from the C# app given that the C# app will be in a completely different process? I am specifically looking for a good example of how to do this with .NET interop. Thanks, Matt
  • 3. Getting pointer for an array for DISPPARAMS
    I'd like to use InvokeEx method for IDisplatchEx for the WebBrowser control. My first problem is getting the parameters to be passed via the structure DISPPARAMS for Invoke on IDispatch. Can someone help with getting the pointer to an array of objects in C# so it can be passed into the structure? DISPPARAMS dispparams = new DISPPARAMS(); dispparams.cArgs = n; dispparams.cNamedArgs = 0; dispparams.rgdispidNamedArgs = pointer to (Params object/array); I need to use InvokeEx from IDispatchEx as opposed to Invoke on IDispatch or Type.InvokeMethod as I need to set value for a variable that has not been defined yet. My second issue is actually getting the correct interface definition for IDispatchEx in C#. Has anyone got this definition - I tried pinvoke.net. Thank you.
  • 4. VB2005 Referance Problem
    The project I am developing uses a third party COM component which references both the Microsoft ActiveX Data Objects 2.7 Library and the Visual Basic for Applications COM objects. When I add the third party component to my project the other two get added automatically as expected. Up until recently everything was working fine, however now I get a series of error messages, see below, preventing the project from being built. Reference required to assembly 'ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the type 'ADODB.CommandTypeEnum'. Add one to your project. I have tried uninstalling the third party component and reinstalling it as well as removing the references and re-adding them but am unable to resolve the problem. I am fairly new to dot.net so this is causing me some major concern, any help or advice would be greatly appreciated. Many Thanks

SWStringArray to .Net string array or ArrayList

Postby am9obiBjb253ZWxs » Sat, 15 Oct 2005 04:55:01 GMT

Any idea or code example how i can marshal a SWStringArray to a .Net string 
array or ArrayList?

Similar Threads:

1.SWStringArray to .Net string array or ArrayList

Any idea or code example how i can marshal a SWStringArray to a .Net string 
array or ArrayList?

2.Converting arraylist to string array

Can anyone see aproblem with this line of code

string rolelistarray = rolelist.ToArray(GetType(System.String));

I'm getting a problem with the GetType(System.String) section

3.Converting ArrayList to String Array

Is it possible to convert an ArrayList to a string array?

I have a routine that takes a string array as a parameter,
converts it to an ArrayList for manipulation purposes,
and now I need to convert it back to a string array.

example of code I am using:

Sub MakeChanges(byval strChange() as string) as string()
   Dim aryValue As ArrayList = New ArrayList(strChange)
   aryValue.add "newvalue"

   ' here I want to convert the aryValue back to a string()
End Sub

-Walt Zydhek

4.Converting a string of integers to an array/arraylist

I have a string of integer, such as the following:

"12 24 12 9 2"

and I want to convert this into an array or arraylist which will
seperate the string into an array of integers.

How do I do this

5.String Array Object to an ArrayList


I've begun converting an ASP site over to .NET and I'm a novice at both the
new platform as well as C#.

I have a COM+ object that returns a string array when it is called.  The
size of the array can vary depending on the parameters passed.

What I need to do is loop through the returned array and if applicable write
the array element to the screen.

I'd like to know if an ArrayList is the best way to go or is there something
else in C# I should use.  I'm not adding, deleting or appending anything to
the returned array.

Secondly, what would be the syntax for this?

What I have so far is the declaration:
     ComLogicEngine.ComPlusLogic oConfig = new

And the call to the COM+ object:
     oConfig.Execute("blah", "blah", "blah");

Thank you for your help,


6. Casting an arraylist of integers to a string array

7. cast arraylist to string array

8. how do i access string() array inside arraylist?

Return to dotnet framework


Who is online

Users browsing this forum: No registered users and 45 guest