- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have some trouble. I'm creating DLL with structure:
module SubSub has subroutine DLLSubSub which is exported.
module DLL has subroutine DLLSub which uses DLLSubSub from module SubSub and is exported too.
In main program I can run DLLSubSub. All ok. But when I run DLLSub this subroutine can't run DLLSubSub: access violation error.
Of course onesolve is write DLLSubSubInternal and don't export it -- then all works. But in this case I have to 1) duplicate subroutine DLLSubSub to DLLSubSubInternal specialy for DLL 2) use this duplicat DLLSubSubInternal name in DLLSub.
Probably there is method not to duplicate subroutine? Help, who knows.
Stanislav
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"Access granted" for attachments. So I attach sample Dll for better understanding my problem.
Stan
Message Edited by fedorovstanislav@mail.ru on 08-12-2005 11:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Done. I got it. One specially DLLIMPORT interface is required for DLLSubSub in DLL module. So DLL module imports DLLSubSub subroutine from the same library specially for DLLSub subroutine. DLL uses DLL herself.
Stan
Done. I got it. One specially DLLIMPORT interface is required for DLLSubSub in DLL module. So DLL module imports DLLSubSub subroutine from the same library specially for DLLSub subroutine. DLL uses DLL herself.
Stan
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page