Error calling DLL from protected location
I'm working on a wave analysis project where an option allows the program to call a user defined function, stored in a DLL, to apply user-defined forces at each time step in a simulation. The code works on XP but not Windows 7. As such, I believe the issue relates to permissions and protection - a systems level topic I have no clue how to circumvent.
I am running from an Administrator account, and also tried running the main program with the 'Run As Administrator' option.
I know the DLL is not being called because I have a message box popup, allowing me time to attach the debugger to the process.
What's most perplexing is that, in one instance, it magically worked, and I have no idea why.
The main simulation program is in "Program Files", with the user dll assumed to be in the same location as the program executable.
Any insight into the nature of this problem would be greatly appreciated.
Looks like I posted in C++ not Windows