How to assign class variable value using loadlibrary function
-
Hi, Im using LoadLibrary function to load a dll.To call a function,we will use GetProcAddress.But how to assign a value to a variable in that dll. Can anyone pls help me? Thanks,
-
Hi, Im using LoadLibrary function to load a dll.To call a function,we will use GetProcAddress.But how to assign a value to a variable in that dll. Can anyone pls help me? Thanks,
The documentation[^] says:
GetProcAddress Function
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL). ...
So you probnably can access exported variables the same way as functions.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > "It doesn't work, fix it" does not qualify as a bug report. < > Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
-
Hi, Im using LoadLibrary function to load a dll.To call a function,we will use GetProcAddress.But how to assign a value to a variable in that dll. Can anyone pls help me? Thanks,
Why don't you define an accessor function in the
DLL
? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Why don't you define an accessor function in the
DLL
? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
OK. As side note, it is really strange that the vendor exposes a
DLL
's variable. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]