Re: Fixed a problem. Help me understand why :)
you need dllimport if you #include something where the implementation is inside a dll.
You say you have something that works without dllimport - have you only included the header, and not the cpp in that example? I would expect you to receive linker errors.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks