jliz2803 Posted May 17, 2006 Posted May 17, 2006 I am trying to run an app that calls a DLL, however, when I try to run the code I get an error message that says: "Can not marshal field FeeAmount of type fee_outrecord: This type can not be marshaled as a structured field" Here is the fee_outrecord where the error is referring to Public Structure fee_outrecord <VBFixedArray(99)> Dim FeeAmount() As Double <VBFixedArray(99)> Dim FeeTax() As Double 'UPGRADE_TODO: "Initialize" must be called to initialize instances of this structure. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="B4BFF9E0-8631-45CF-910E-62AB3970F27B"' Public Sub Initialize() ReDim FeeAmount(99) ReDim FeeTax(99) End Sub End Structure I have a basic understanding of VB.Net but nothing to this level, are there any suggestions? Quote
Leaders snarfblam Posted May 20, 2006 Leaders Posted May 20, 2006 Have you tried removing the VBFixedArray attributes? The marshalling problem is most likely related to the arrays. These are the kinds of problems you run into when you use the VB6 code upgrade tools that come with .Net. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts