Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • Leaders
Posted
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.
[sIGPIC]e[/sIGPIC]
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...