- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have large program and would like to check to see if a certain routine is present in another part of it so that it can be called. Is there a way to check to see if a ceratin subroutine is present at run time?
Alternatively, maybe if the routine in question can be put into a DLL, is there a way to see if if the routine is in the DLL at run time?
Thanks, Tim
Alternatively, maybe if the routine in question can be put into a DLL, is there a way to see if if the routine is in the DLL at run time?
Thanks, Tim
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cleanest way is to put your "optional" routines in a DLL, then use LoadLibrary on the DLL, followed by GetProcAddress to see if the routine is present.
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks James,
I see that the sample LOADEXP1 shows what you are saying,
Tim
I see that the sample LOADEXP1 shows what you are saying,
Tim
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