i have run into a small problem. i have a simple program and dll file. Both are working perfectly. But when i try to load the dll when it is in a folder inside the folder containing the .exe file, it doesn't load.
thank you for your reply.
I did a little bit of research and what i want to do is explicit dll linking.
This is a lot harder then implicit which is fairly easy.
when i execute this program, it compiles fine. i got the function name from dependency walker the normal function name doesn't work. I get a direct error and the program needs to shut down. It clearly finds the dll and the function because it gives the message that it is succesfull.
The problem is that you call remove_invalid_characters() as a free function but it is a member function of a class. Hence it needs an object of that class which will be passed as a pointer as the first parameter.
@thomas1965 @coder777 Thank you!
It works now! The problem was that the functions were declared inside a class.
I removed the class and now everything works fine!!!!!