Error while passing Stringbuilder as parameter to DLL

NeerajNeeraj Member Posts: 15
Hi,

I have a requirement where I need to pass Stringbuiler as parameter to DLL.
i.e.
IF ECRCsharp.InitializeTCPIP(IpCheck, 23, FALSE)THEN;
Where IpCheck is Stringbuiler, 23 is Port (Integer), Flaglog as False (Boolean).

While executing the code system is generating below error :

Microsoft Dynamics NAV

A call to Printec.ECRInterface.Interfacer.InitializeTCPIP failed with this message: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
OK

I have tried to append also but it isn't working.
If anyone has experience in the same please suggest.

Thanks and Regards,
Neeraj Singh
Sign In or Register to comment.