Results 1 to 2 of 2

Thread: Difficulty Exporting DLL functions

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2025
    Posts
    99

    Difficulty Exporting DLL functions

    Hi,

    I am using VC 2022 and trying to develop a very simple DLL for work. It's a crude timer set of functions that is called before an HTML obj.click function as the click function freezes upon display of the System Dialog. That means it requires human intervention. I'm trying to do away with that to process some records by automation.

    I have not been able to get the functions to export. GetProcAddress fails and using DependenciesGui there are no exports. I'm at my witts end as I thought that the way the .h file was setup the compiler would automatically export the functions. Why is it not? Below is my .h file code.

    Code:
    #define EPIQUTIL_EXPORTS;
    
    
    #ifdef EPIQUTIL_EXPORTS
    #define EPIQUTIL_API __declspec(dllexport)
    #else
    #define EPIQUTIL_API __declspec(dllimport)
    #endif
    
    // The functions needed to interface with VBA EPIQ Utils
    
    // This function must be called before any other function.
    extern "C" EPIQUTIL_API void EPIQ_init(const long MyWaitTime);
    Any assistance would be greatly appreciated.


    UPDATE: I have even gone through MVS and created a DLL that exports and even through their own creation there are no exports generated. Help!!!!
    Last edited by FunkMonkey; Mar 7th, 2025 at 09:24 PM.

  2. #2
    Frenzied Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    1,149

    Re: Difficulty Exporting DLL functions

    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++23 Compiler: Microsoft VS2022 (17.6.5)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width