Originally Posted By: NeoNeper
If you have a few more important tips for working with DLL, please teach for me.
(^.~)

I have told you about the problem with auto variables multiple times before in this thread, but you chose to ignore it. And I don't doubt that you will do the same mistake again in the near future.

Important tip: PLEASE get familiar with C++ before doing anything else. That your program crashed was very fortunate, because it's an easy way to track down undefined behaviour, but you are not guaranteed to be that lucky every time.

Also, in a similar vein, DON'T use old C-Style casts! They are too broad and you lose an awful lot of control when using them. And don't cast away constness if you don't need to, and if you absolutely need to, use const_cast<>().


His words are wise, his face is beard.