There may be friends in the forum to write software with VS2010, so I am here to VS2010 how to register to call the desert plug-ins detailed steps to say, and I like to use the same as my friends with VS programming.
The first step:
First, create a dialog-based MFC application, then click Project---Class wizard, add Class--type library, MFC class ...-> The source of the selection class is from the file, find the path to the Dm.dll, and add it. At this point, you can see the Desert interface Idmsoft, select it and generate class Cdmsoft, at which time the VS will automatically generate the class header file for you Cdmsoft.h
Step Two:
In the need to call the place # include the first step to create a header file Cdmsoft.h, and declare a Desert object instance cdmsoft DM;
Step Three:
void C Free Registration Desert Dlg::onbnclickedok ()//button click event {CoInitialize (NULL); Hmodule hmod = LoadLibrary ("C:\\dmreg.dll");//load DLL parameter DLL path DWORD DLLADDR = (DWORD) GetProcAddress (Hmod, "Setdllpatha") ;D Word dmdlladdr = (DWORD) (char*) "C:\\dm.dll"; _asm{push 0;push dmdlladdr;call dlladdr;} Dm. CreateDispatch ("Dm.dmsoft"); MessageBox (DM. Ver ());}
This article from "12622264" blog, declined reprint!
C + + Free Registration Desert Plugin