Page 1 of 1

Bad dll calling convention

PostPosted: Thu Jul 15, 2004 5:41 am
by dxk240(Legacy Member)
Hi,

I receive the following error when I call the Code128Auto procedure: Run-time error '49' Bad Dll calling convention.

I call the dll from visual basic like this:

Text1.Text = Code128Auto(CStr(Text2.Text))

Any suggestions will be helpful.

Re: Bad dll calling convention

PostPosted: Thu Jul 15, 2004 9:25 am
by glitch (legacy member)
Are you using Windows DLL?

You may use the Visual Basic code directly. They can be found under \program files\common files\morovia\moroviafonttools. The file name is MoroviaFontTools.vbs.

Re: Bad dll calling convention

PostPosted: Fri Jul 16, 2004 9:05 am
by glitch (legacy member)
Update: We found that this is due to the _cdel calling convertion added to the exported functions. We will resolve it in the next version of the Morovia Font Tools upgrade. I will keep you posted.

Re: Bad dll calling convention

PostPosted: Fri Jul 16, 2004 9:07 am
by dxk240(Legacy Member)
Thank you for the update. In mean time, I will just use it directly from the source code.