When using .dll extension: "cannot load" compile error

Discussions specific to Team Developer 5.1.

When using .dll extension: "cannot load" compile error

Postby Dave Rabelink » Mon Oct 06, 2014 12:00 am

I have a strange but very annoying issue with TD5.1 (on any SP installed).

For most external function declarations, I have to omit the .dll extension to be able to compile.

See screenshot:

TD51_DLL_ExtensionIssue.png


I have this on all my systems.
The PATH to the TD installation folder is set (no other TD installations on the system).
Also the PATH in the preferences.

I see this only on TD 5.1, all other TD versions (older and newer) do compile the same source.

Here a quote from the TD documentation:

Note: The name of a DLL file does not have to have a *.DLL extension (such as USER32.DLL
and GDI32.DLL).


Here a quote from the MSDN documentation on LoadLibrary:

If no file name extension is specified in the lpFileName parameter, the default library extension .dll is appended.


So, does anyone have seen this? Any clue on what might be the cause and a possible solution?
Right now, I have to change all TD libraries and remove the .dll extensions to be able to use them.

I attach the file which does not compile on TD5.1.

TD51_DLL_ExtensionIssue.zip


PS
Seen on Win7 64 bit OS.
Unfortunately I do not have any XP system available, so it is unclear if this issue exists also on XP or not.
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles on Team Developer Wiki
Download samples from TD Sample Vault

Image
Go forward! Come join the TD, SqlBase & TDMobile community on
Team Developer Community Forum
User avatar
Dave Rabelink
 
Posts: 1655
Joined: Sat Feb 17, 2007 12:01 am
Location: Gouda, The Netherlands

Return to Team Developer 5.1

Who is online

Users browsing this forum: No registered users and 1 guest

cron