forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Register a .dll file

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
cOwl_7



Joined: 01 Jun 2011
Posts: 4

PostPosted: Thu Jun 16, 2011 7:37 pm    Post subject: Register a .dll file Reply with quote

Hello, I have a brief questions regarding registering of .dll files for debugging and other matters.

I currently have a test code, test.f95 s.t:

Code:

subroutine test()
!DEC$ ATTRIBUTES DLLEXPORT :: TEST
implicit none

end subroutine test


I create a .dll file using slink:
Code:

C:\...>slink
[SLINK/Win32 v1.44 Copyright (c) Silverfrost Ltd. 1995-2010]
* dll
* entry TEST
* lo test.obj
* exportall
* file
WARNING - Default LibMain being provided
Creating dynamic link library: C:\test.dll


When I run regsvr32, I receive the following error:
"test.dll was loaded, but the DllRegisterServer entry point was not found.

This file can not be registered”

Is this the proper way to specify an entry point using slink? If not, can you assist with the syntax? I attempted to use ("entry TEST") in the subroutine as well instead of (!DEC$ ATTRIBUTES DLLEXPORT :: TEST), and received the same error as well.

Thank you very much in advance for your advice.
Back to top
View user's profile Send private message
davidb



Joined: 17 Jul 2009
Posts: 558
Location: UK

PostPosted: Tue Jun 21, 2011 7:42 pm    Post subject: Reply with quote

Hi.

There are two types of DLL.

ActiveX DLLs must be registered with windows (using regsvr32 usually). They usually contain objects (instantiations of classes), e.g. an ActiveX DLL might contain a "clock" class which allows an analogue clock to be drawn on the screen.

Standard DLLs must not be registered. They contain functions and subroutines. Generally, you use them by putting them in your system folder (or the same folder as your application).

The error you have seen is because you have created a standard DLL. I think this is the only kind of DLL you can create with FTN95.

Regards
David.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group