Reply To: Need to build an interface for XML to SQL Datadata

Reply To: Need to build an interface for XML to SQL Datadata

Home Forums NAACCR XML Standard Need to build an interface for XML to SQL Datadata Reply To: Need to build an interface for XML to SQL Datadata

#9658
AnonymousJeff Reed
Spectator

Thank you Kathleen,

Your pseudo code is what I have in development so no problem testing. Looks like I have the problem using a pointer return variable to access the actual string. The bynumber() function I successfully used returns the value so I have no problem there, the byNaaccrId() returns a pointer and apparently I am rusty on using pointers to access the string value because I cant seem to get it working and I am not finding a good example.

[DllImportAttribute(“XMLPlus.dll”, EntryPoint = “XMLPlus_GetItemDefByNumber“)]
public static extern int XMLPlus_GetItemDefByNumber(int XmlId,
int naaccrNum, System.IntPtr owner, System.IntPtr callback_func);

[DllImportAttribute(“XMLPlus.dll”, EntryPoint = “XMLPlus_GetItemDefByNaaccrId“)]
public static extern int XMLPlus_GetItemDefByNaaccrId(int XmlId,
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string naaccrId,
System.IntPtr owner, System.IntPtr callback_func);

Copyright © 2018 NAACCR, Inc. All Rights Reserved | naaccr-swoosh-only See NAACCR Partners and Sponsors