Re: RE : [fpc-pascal] Problem linking a Windows DLL

2011-09-08 Thread Anton Shepelev
Ludo Brands: > Both errors indicate that the dll couldn't be > loaded. Or the dll itself isn't found, or the dll > has dependencies (probably c libraries) that > aren't found. OK, I have found the missing dependency using the "Dependency Walker" utility. Thank you, Anton _

Re: [fpc-pascal] Problem linking a Windows DLL

2011-09-08 Thread Anton Shepelev
Ludo Brands: > Both errors indicate that the dll couldn't be > loaded. Or the dll itself isn't found, or the dll > has dependencies (probably c libraries) that > aren't found. The DLL does work on another PC, so the problem must be with some dependencies. Many thanks. But how can

Re: [fpc-pascal] Problem linking a Windows DLL

2011-09-08 Thread Elmar Haneke
> I have a plain Windows DLL made in Visual Studio C++ > and working with other C applications. Is there in addition an messagebox shown indicating an problem with C runtime? If so you probably need an Manifest file for your FPC application Elmar ___ f

RE : [fpc-pascal] Problem linking a Windows DLL

2011-09-08 Thread Ludo Brands
> >An unexpected error occurred while initializ- >ing an application 0xc034 > > When using it dynamically, the LoadLibrary() func- > tion returns NilHandle, indicating failure. > Both errors indicate that the dll couldn't be loaded. Or the dll itself isn't found, or the dll has d

[fpc-pascal] Problem linking a Windows DLL

2011-09-08 Thread Anton Shepelev
Hello all, I have a plain Windows DLL made in Visual Studio C++ and working with other C applications. When I try to statically import it into an FPC program I get the following error: An unexpected error occurred while initializ- ing an application 0xc034 When using it dynami