Silverfrost Forums

Welcome to our forums

interfacing .NET and Win32 libraries

12 Dec 2006 9:38 #1438

I noticed in the 5.0 documentation that a .net app can call a win32 library.

since this is one line I think the documentation could be a bit more explict here. In say C# and VB you would have to declare the win32 library in code as a static method. In C++ its a different game altogether with mixed asemblies the norm in .NET apps

anyway I tried referencing a few FTN95 win32 libraries from some .net apps and sure enough this works, this is cool so thanks becasue this can be a pain.

I am somewhat intrigued by this, what are the limitations? I have in the past tried compiling FTN95 projects to .NET which fail to link because of WIN32 libraries.

It would appears this is due to the win32 dll using common blocks with the declarations of the form

COMMON/NAMES[DLLIMPORT]/

if I compile just the code without the [DLLIMPORT] bit removed the DBK_LNK linker works great

can this be worked around in .net ?

Carl

Please login to reply.