I found this on the subject:
It's from 2001 though. Is this still the way to go about calling an exe function from a dll rather than the other way around? The exe functions will be in a C++ exe called by a PB DLL it's already using. Not sure if that would make things any different than a PB to PB thing, which I don't know how to do either. I assume CALL DWORD would be used in the dll after receiving the exe function's addresses from other calls at program initialization. This would work just peachy for our purposes. Anyone know of any other examples?
The exe function doesn't need to return a value to the dll if that simplifies things. It also does not need to be a separate thread or callback function. Just a simple F_Add_Value(BYVAL a AS SINGLE) AS LONG type of thing would suffice. Anyone know what I should be searching for or have a simple example handy?
Thanks
It's from 2001 though. Is this still the way to go about calling an exe function from a dll rather than the other way around? The exe functions will be in a C++ exe called by a PB DLL it's already using. Not sure if that would make things any different than a PB to PB thing, which I don't know how to do either. I assume CALL DWORD would be used in the dll after receiving the exe function's addresses from other calls at program initialization. This would work just peachy for our purposes. Anyone know of any other examples?
The exe function doesn't need to return a value to the dll if that simplifies things. It also does not need to be a separate thread or callback function. Just a simple F_Add_Value(BYVAL a AS SINGLE) AS LONG type of thing would suffice. Anyone know what I should be searching for or have a simple example handy?
Thanks
Comment