to developWebVersion of the card reader program, the general idea is as follows: 1. use C # to encapsulate the original DLL , here to encapsulate two parts of the content, part of the function of serial communication, part of the card read and write function. 2. Develop ActiveX controls to invoke encapsulated DLLs, and use serial communication to read and write cards. 3. Package and publish ActiveX contro
What is Activex control?ActiveX control is the plug-in of IE browser, for example, Flash Player of IE is an ActiveX control. ActiveX has obvious security problems because it is actually a program. If you install an ActiveX control
as Long, ByVal strriid as Long, ByRef PPV as any) as long
Dim Tobj as Olelib. IUnknownDim Tobj2 as Dlldemo.idemo
Hlib = Crcomobj (App.Path "/dlldemo.dll", VarPtr (Clsid_obj), 0, Tobj)Set tobj2 = TobjTobj2. Test
' OR
Hlib=crcomobj2 (App.Path "/dlldemo.dll", StrPtr (Clsstr_obj), 0, Tobj)Set tobj2 = TobjTobj2. Test
Crcomobj and CrComObj2 return the return value of LoadLibrary, which needs to be released with FreeLibrary when necessary.
Postscript:My multi-page
As a result of the project, I began to learn and study VC, DLL and ActiveX controls. I found a lot of online materials, but there was no available or no example to understand and run. No way. Study it by yourself. However, I have learned to give it to the people who need it.
I. OverviewAs a result of the project, I began to learn and study VC, DLL and ActiveX controls. I found a lot of online materials, but
Some netizens have reflected the problem: "Your security settings do not allow Web sites to use Activex controls that are installed on your computer when you access Web pages using IE browsers." This page may not be displayed correctly. View options here. "Error prompt. What is this ActiveX control? And why does this happen?
As defined by the Microsoft Authoritative Software Development Guide M
There are many people who understand ASP (Active Server Pages), but there are not many people who can use ASP to freely call ActiveX controls. If you do not call ActiveX controls, it can be said that Microsoft's original intention to design ASP was not achieved. As we all know, ActiveX technology is another new measure Microsoft has taken in addition to IE on
1. Call the X Control in VB and add project-> AddComponents. In addition, you can use Object Browser to view controls.
Ii. Create an X Control in VC
1. Create an X project named clock. Note that a file can contain multiple controls.
2. Keep the default settings. Pay attention to the three classes it generates and related interfaces.
3. Run it. Select tstcon32.exe as the container.
4. Select Insert control. Now we can see that it draws an elliptic. Yo
In the company's development process, ActiveX solutions were proposed and adopted by the company's senior management. Today, ActiveX engines are being researched and developed;
The test is passed and deployed successfully.
ActiveX Engine is an ActiveX form that runs on an html page;
Implementation principle:Main funct
ActiveX control is a reusable software component based on the Component Object Model (COM). It supports a wide range of OLE functions and can be customized to meet the needs of a variety of software. ActiveX controls are intended for Common ActiveX Control containers and web pages on the Internet. You can use the MFC introduced here or use the Active Template Lib
The current MFC and ATL represent two frameworks for different types of windows-based development. MFC represents a simple, consistent way to create stand-alone Windows applications; ATL provides a framework for implementing boilerplate code necessary to create COM clients and servers. Both of these frameworks converge on their use for developing ActiveX. We'll look at how these two frameworks work for creating Ac
First, prefaceAnd then the. NET Magic Hall: The history of the most complete ActiveX development Tutorial-Release the article, then we continue to deploy it!Second, pull up the sleeves to deployThe deployment of ActiveX is essentially a client-side installation of an ActiveX component that has a corresponding deployment method for unsigned and signed
During website construction, we can use Telnet Tool ActiveX for some programming. We have introduced the features of the Telnet Tool ActiveX control in the previous article. The following is an example of the application.
Programming example
The following is an ASP programming example of a simple Telnet Tool ActiveX control. The experiment environment is Windows
axShockwaveFlash1 = new AxShockwaveFlashObjects. AxShockwaveFlash ();
// Load. axShockwaveFlash1Host. Child = axShockwaveFlash1;
// Embed the host object into FlashGridThis. FlashGrid. Children. Add (host );
// Set the relative path of the. swf FileString swfPath = System. Environment. CurrentDirectory;SwfPath + = @ "\ sample.swf ";AxShockwaveFlash1.Movie = swfPath;}
9. Add a. swf File
Select Always Copy to Output Directory to use the WPF Applicaiton to call the Flash
10. Success
Click her
Speaking of ActiveX, my first instinct is flash, using ActiveX, we can create rich, interactive applications. At the same time, using ActiveX features, we can achieve a seamless connection between JS and ActiveX (including data sharing, and interface calls), with the help of Active
Failure phenomenon:
The Flash plugin on the computer unexpectedly did not have, casually opens a webpage all prompts to install the Flash plug-in, installs also appears "Installs encounters the error: cannot register the Flash Player's ActiveX control" such error information
An ActiveX control is a graphical object that allows you to control a set of predefined events. such as a command button
I. OverviewAs a result of the project, I began to learn and study VC, DLL and ActiveX controls. I found a lot of online materials, but there was no available or no example to understand and run. No way. Study it by yourself. However, I have learned to give it to the people who need it.DLL (Dynamic Link Library): WIN32 DLL and MFC DLLActiveX: It is divided into two types: ATL control and MFC control (also a DLL)WEB: JAVASCRIPT call->
the benefits of my project name, check "abcocx control" and double-click it to open a box. This is the window of our "abcocx" ActiveX control.
Of course, you can also choose to test in IE, but the premise is that you have to write the HTML page added to this ActiveX object.
This is the simplest example, and I will not -.-!!
This must be noted in step 5 and step 6, afxenablecontrolcontainer (); and in th
Recently in a LAN Web application, the use of B/s mode, but one of the modules need to read and write IC card operation, if directly in the background call Card reader interface can only trigger the server-side action on the reader, want to achieve in the browser directly manipulate the reader, You need to make ActiveX controls yourself, and then invoke some methods, properties, or events for the control in
Microsoft for various reasons, in the SP2 after restricting the use of IE ActiveX mode, is in the page ActiveX has a virtual box, users need to click a time to normal interaction. Flash is embedded in the Web page as an ActiveX, so it will also be implicated, only through JS embedded in Flash to solve this problem. No flash version detection, if the version of th
The program in this article is written by VC + +, slightly changes some, the program is written with C++builder.
An ActiveX control is a dynamic-link library that operates as a COM server and can be embedded in a package container host application, which is the predecessor of an OLE control. Because ActiveX controls are not related to the development platform, ActiveX
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.