Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7580383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:54:14+00:00 2026-05-30T17:54:14+00:00

Ok. I have a VB6 compiled DLL that i have imported to a webservice(C#

  • 0

Ok.

I have a VB6 compiled DLL that i have imported to a webservice(C# ASMX).

In VB6 i have this following types:

Public Type typeAccountInfo
    singular        As String
    code             As String
    description     As String
End Type

Public Type timeSheetRowPost
    lock            As Boolean
    code            As String
    from            As Long
    to              As Long
    fakt            As Boolean
    ik              As String
    ek              As String
    ak              As String
    accounts()      As typeAccountInfo
End Type

Public Type timeSheetDayPosts
    date            As String
    scheduleFrom    As Long
    scheduleTo      As Long
    break           As Long
    dagPost()       As timeSheetRowPost
End Type

Public Type timeSheet
    period            As String
    dayCount          As Long
    days()       As timeSheetDayPosts
End Type

TimeSheet > timeSheetDayPosts > timeSheetRowPosts > typeAccountInfo

I have a VB6 function that gets all the data i need.

When i implement this in my webservice asmx, i do it in the following way:

 public List<returnType> myFunction(input parameters){

  List<timeSheet> VB6Array = new List<timeSheet>();
  VB6Array = new List<timeSheet>((timeSheet[])VBWrapper.myVB6Func(input params));


  // at this point VB6Array holds all the data i need. And all i need (want) at this point is to be able to cast this VB6(system.array) to a List<> object that i can return as my returntype. 

 // Pseudo : List<ReturnType> myNewReturnType = new List<ReturnType>((ReturnType[])VB6Array); 

 // However all my tries has been without success....and what i get is You must implement a default accessor on System.Array because it inherits from ICollection.

 return myNewReturnType;
 }

Any tips and/or pointers on how to cast or convert a VB6 type (system.array) to a List<> will be highly appreciated.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:54:15+00:00Added an answer on May 30, 2026 at 5:54 pm

    You may have to manually loop through the list and copy the data to a new

    List<your_new_similar_class>
    

    at least if you want a quick fix.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VB6 dll that is trying to create a COM object using
I have a VB6 application that needs to update it's self. For this purpose,
I have a dll(written in vb6) that compiles VB6 code. I'm reading the VB6.exe
I have a VB6 program that someone recently helped me convert to VB.NET In
We have inherited VB6 dll which we need to make changes to. We have
I have a VB6 App that uses a .Net component (via a .tlb reference
We have a VB6 project that compiles to an ActiveX EXE that happens to
I have a VB6.0 project that contains the line Implements IObjectSafety I tried reopening
OK, so I have a C++ project that compiles to a DLL file. I
I have a compiled VB6 application without access to the source. Is it possible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.