Create C++ DLL

I am trying to creat a dll file to my plug-in, but my code always creat a rhp file to me. How do I solve this problem ?
my code: MCV.rar (27.8 KB)


A .rhp file is a DLL with a different extension, so if you just need the file elsewhere you can rename it to MVC.dll.
To change the name in the project, open it in visual studio, right-click your project (in your case MFC) and select “Properties”. Then, under “Configuration Properties” > “General” change the target extension to “.dll”.
If it already sais “.dll”. change it to something else, apply, and then change it to “.dll” again and it should work.


Hi@ robin_l:
Think you.