Calling ImportRTF in NIRTF.DLL from Visual B.NET

Hello,

I have a requirement to call the ImportRTF function in NIRTF.DLL from Visual Basic .NET. I’m not sure how to delare and call the function.

Can anyone help?

The difficult part for me is how to set up the EditImportData structure… In LotusScript it’s done like this:

Type EditImportData

 FileName As String * 100

 FontID As Long

End Type

But, I’m not sure how to set this up in VB and send it to the function. Here’s what I have on the function declaration itself:

Declare Function ImportRTF Lib “NIRTF” Alias “ImportRTF” _

( D As EditImportData, Byval F As Integer, Byval M As Long, Byval A As String, Byval N As String) As Integer

Thanks.

Bill