Page 1 of 1

Suggestion for Import

Posted: Thu May 04, 2006 5:12 am
by Mike Stefanik
It would be nice that if you use Import and declare a function, that it would also automatically check to see if an "A" (or "W") version exists. For example, if you had an import library with the function FooBarA, then instead of having to do this:

Code: Select all

Import "MyLibrary.lib"
  FooBar.l(strParam1$, dwParam2.l) As "_FooBar@8"
EndImport
You could simply do:

Code: Select all

Import "MyLibrary.lib"
  FooBar.l(strParam1$, dwParam2.l)
EndImport
First it would check for _FooBar@8 and if it didn't find that, then instead of reporting an error, it would next automatically check for _FooBarA@8 (or _FooBarW@8 if Unicode was specified). If neither were found, then return a link error.