C + + Free Registration Desert Plugin

Source: Internet
Author: User



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.