1. How to create COM objects
Clients can create COM through the CoCreateInstance function, and must know some basic things about the object before it is created, such as the CLSID of the object or the ProgID of the object.
Another object creation method is created by a moniker (moniker), which is the use of object naming and binding techniques (i.e., name technology).
2, the status of the name technology
Microsoft Java compilers, virtual machines, and a wide variety of tools greatly simplify the work of java/com programmers compared to c++/com programmers. The compiler has special boot commands and packages that can treat Java classes as COM classes. In most cases, however, we simply rely on the support provided by the Microsoft JVM for
Visual Java is a network-centric programming language, and many tasks that are difficult to accomplish with ASP scripts can be easily implemented in Java. At the same time, the best way to extend ASP applications is to join COM components. So, can you use Java to develop components for ASP? This paper illustrates the specific process of developing COM components in Visual J + + environment through examples.
Window|word Using the PHP4 COM functions with MS Excel
As for the Word example above, study the code and the help from the Visual Basic Editor objectbrowser for Excel.
#Set the workbook to use and its sheet. In the example we use a spreadsheet that
#comes with the Excel installation Called:solvsamp. Xls
$workbook = "C:\Program Files\Microsoft Office\office\samples\solvsamp. XLS ";
$sheet = "Quick Tour";
#Instantiate the Spreadsheet component.
$ex =
I. Create COM components with VC
1, VC new Project-> ATL project, enter name Comtest,comtest will be the name of the COM component.
2, to the ATL Project Wizard, do not need to change, complete the wizard. After the wizard completes, VC will automatically generate a series of programs.
3. Switch to Class View, right-click on
This article supporting source code
First, the preface
My COM component runs with a window, and when the user double-clicks the window, I need to notify the caller;
My COM component downloads a file on the network in a threaded way, and when I finish the task, I need to notify the caller;
My COM component completes a clock function, and when the scheduled tim
1. Defining interfaces
COM is called by an external application by throwing an interface, and each interface, component has a GUID, and developing COM components in. NET is no exception.
[Guid ("0bb13346-7e9d-4aba-9ff2-862e0105489a")]
public interface Imyservice
{
Defines an interface method or attribute, each of which has a DispID property for use by VBScript, etc.
[DispId (1)]
void Method1 (args
What is an interface?
When it comes to COM, you have to say interface; In the process of COM development, it can be said that I have been dealing with a variety of interfaces. What's the interface? For COM, an interface is a memory structure that contains an array of function pointers, each containing an address of a function implemented by the component, so for
As the saying goes, the rainbow after the storm, but after the financial turmoil, the rainbow in all walks of life need their own to create. In the economic stability but lack of growth momentum of the situation, each industry is a surprise, want to in the post-crisis era to create a better future for themselves, so as to keep pace with the times to maintain steady growth. In the face of such an economic environment, the domain name industry has also been frequent moves, set off a wave of waves,
Fortunately, we can use COM components to maximize the functionality of the ASP. You know, anything that can be written in a language such as VB,VC and VJ and other programming languages can be applied to the development of your Web site, which is COM (Component Object model). COM can be used to write objects that can be invoked by ASP. When the programming envir
Recently a collaborative 973 project that needs to call someone else's interface. The other side gave a DLL file and function interface description, and then I looked through the traditional generated dll,loadlibrary to find function pointers, through function pointers to call, failed. Later found that the DLL is not a general DLL but a COM interface, need to register AH and so on.
The purpose of COM is to
I. BACKGROUND notesIn VS Environment, develop C + + code operation PPT, support the modification of PPT template. This includes modifying text labels, charts, and tables. To meet the requirements of most software-generated PPT reports, create PPT templates manually and modify the template data in the program.Second, the development environment constructionCreate a COM interface for PowerPoint and Excel through the VS2012 Class Wizard; Because you need
First create a COM component, insert a dual interface ITest, and implement the following three methods on this interface:STDMETHODIMP ctest::test (void) //No input/output parameter { //TODO: Add implementation code in this MessageBox (null,l "test", L "test", MB_OK); return S_OK;} STDMETHODIMP Ctest::test1 (BSTR A1) //have a string input parameter { //TODO: Add implementation code in this MessageBox (null,a1,l "test", MB_OK);
one of the principles and implementation of COM
COM component is actually a special object system, follow a unified standard, so that each software can access the object in some way, can do component calls. COM is the unified standard-invoking COM components through interfaces. An interface is the only thing that a
If you are an active Server page (ASP) developer, it is believed that you may often use COM objects to create ASP pages. Even when you use it, you ignore that he is a COM object. For example: ADO. The only component with the highest call rate is the ability to extend unlimited functionality to your page. However, the ASP itself is an interpretative script that is not functional enough to
Some basic knowledge about com
Basic knowledge of Component Object ModelComponent-based software development is becoming increasingly popular. Here I will give you some com-related things I have prepared at school for your reference.I. Components(COM) is a new software development technology developed by Microsoft to make software production in the computer indus
1, the Linux server configuration switch environmentA, remotely connect to a Linux server over a network or use a Linux server locally, connect a Linux server's COM port to the console port of the switch, and install the Minicom software configuration switch on a Linux server.b, if the minicom is not installed, the Yum installation method is as follows:Yum install-y minicom installs COM serial communicatio
The current project is to develop an add-on for Excel to achieve financial-related business, and after a lot of factors are considered, decide to abandon C # and develop it in C + +. There are two ways to develop Excel add-ins in C + +, one is an Excel add-in XLL, and the other is to use ATL to make COM add-ins. The advantage of the XLL approach is that it is close to the bottom of Excel, executes quickly, and does not need to modify the registry, but
Using WMI to obtain system information procedures
As an example of obtaining a native system, the process of obtaining system information is as follows:
1 initialization of the COM library
Since the WMI application was written in C + + based on COM technology, the COM library must be initialized, when the call function CoInitializeEx is used to initialize the
The Oracle tutorial you are looking at is that Oracle uses Pl/sql to manipulate COM objects. The Pl/sql is extended by Oracle company to standard SQL, dedicated to programming in Oracle databases, and is a third-generation process programming language. Starting from Oracle8, it provides the process of calling external C language directly from Pl/sql, allowing developers to use PL/SQL for programming modules in C language. Starting with Oracle8i, Java
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.