Approaching COM Interop-- Talking about PIA
Collation
I am very ashamed. for work reasons, only the second article in the series "approaching COM Interop" has been published so far. This article will introduce the content of PIA (Primary Interop assemblyia) using the strong name tool (sn.exe. I hope you will give me more advice.
1. What is PIA?According to the de
There are too many problems known and unknown in Interop. Managedcode and UnmanagedCode interaction between the problem, Microsoft is not a good solution.
. NET2.0 Update Http://www.dotnetinterop.com/features/default.aspx?q=Whidbey for the interop section. The future of the update, in fact, another point of view is now inadequate.
The syntax for the interop s
There are too many known and unknown problems in InterOP. The interaction between managedcode and unmanagedcode is not very good.
. Net2.0 update http://www.dotnetinterop.com/features/default.aspx for the InterOP part? Q = whidbey. In the future, we can look at the shortcomings from another perspective.
The syntax of InterOP is also very ugly. For example, th
Find azroles. dll in C:/Windows/system32If no XP/2003 is available, install the http://www.microsoft.com/downloads/details.aspx? Familyid = e487f885-f0c7-436a-a392-25793a25bad7 displaylang = en.Win2000 please install http://www.microsoft.com/downloads/details.aspx? Familyid = 7edde11f-bcea-4773-a292-84525f23baf7 displaylang = en.Run the vs2003/vs2005/vs2008 command line or the CMD command line to enter the. NET installation directory.Input:D: \ Prog
, we can also see a very eye-catching slogan:
Do InterOP the Wiki way!
All right, download a pinvoke. NET and install it. I won't bother with the details of this step. There are several reminders, pinvoke.. Net inserts Visual Studio as a plug-in. so, the premise is that you must have Visual Studio. #. net.
First, we will introduce this demonstration project, which is a consoleapplication project called pinvokelab. We will call
In the VS2013 development environment, C # refers to two problems encountered by COM components:In the beginning, the COM component is not registered causing the code reference error, then I will use the Administrator command line mode, the COM component:c:\windows\system32>regsvr32 E:\CjnDesEncrypt.dll, after executing the command, the Code reference does not report an error, but the following errors are reported in the generation process:When refere
When a reference to com is added to the project, InterOP is automatically generated. *. DLL, but the dll version is always 1.0. if you use InstallShield to create an installation package and modify the installation package, the DLL will not be updated because the version is always 1.0.
If you want to modify the version number, you can use tlbimp.exe to re-export a DLL without finding a convenient method. This tool can include the version number.
Tlbim
" button, in the pop-up "security" dialog box, add a "network service" user (note that you must select the computer name) and grant it the "local start" and "Local activation" permissions.6: the "Security" label remains. Click "Custom" on "Access Permissions", and then click "edit ", in the pop-up "security" dialog box, add a "network service" user and grant "local access" permission.Or both network service and everyone add settings.
I tried to solve the problem by following the above steps.
How
First, we recommend a book, "proficient in. NET interoperability," which is the most exhaustive book in Chinese literature.Do system integration project students should have dealings with equipment (such as video equipment: Hoi Hong, Dahua, etc.), in most cases these equipment manufacturers will give the system Integration Vendor Development Protocol (DLL class library, function definition header file, test program, call process), the DLLs of these protocols are mostly developed in
This is the last article in the series "approaching COM Interop" and the most involved technical points. I hope you can understand the description, and it is inevitable that there will be errors. Please kindly advise me.
Back to the beginning, I started to introduce how to import a COM component through programming and generate the corresponding. Net Assembly. In fact, the process is very simple. I personally think that it is just what TLBIMP. EXE do
090618 the problem is that excel is related to the high security settings of the collection, so you can modify the security.
Other people's solutions to similar problems --"
Post, original post address: http://blog.csdn.net/dezwen/archive/2007/11/03/1864769.aspx
Cocould not load file or assembly 'Microsoft. Office. Interop. Excel, Version = 11.0.0.0, Culture = neutral, PublicKeyToken = 71e9bce111e9429c' or one of its dependencies.
There are two reaso
To practice C # Word documents today, first introduce the class library (Microsoft. office. interOP. but it cannot be referenced on my machine. The reason is that "Office 2003 Master InterOP" is not installed.ProgramSet ".
Installation Method (introduced on the Internet): run the office2003 installer, select "add or delete component", and select "Advanced custom
Cocould not load file or assembly 'Microsoft. Office. InterOP. Excel, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c' or one of its dependencies.
There are two reasons for this problem:
1. "Excel 2003" is not installed in the system ";
2. "Excel 2003" is installed in the system, but it is not installed in GAC. (About GAC globalProgramFor details about the set cache, refer to the msdn help .)
First of all, if the probl
Linux and Windows inter-pass files
User profile and password configuration files
User Group Management
User Management
2.27 Linux and Windows interop files want to enable Linux and Windows to pass files, you can use Xshell, but first you need to install a package in Linux, the command is as follows:[email protected] ~]# Yum install-y lrzszAfter the installation, you can use the command to upload Linux files to Windows, for example, I
In the latest issue of the. NET 4.0 features series, my colleagues and I will introduce some of the new features in Beta1, as follows:
new features in. NET 4.0 Course (3): Introduction to the new features of. NET 4.0 Beta1 Interop (Level 200)
lecturer: Zhang Yi, Ju Yongtai
Introduction to the course:. NET 4.0 BETA1 is a major improvement in interop, an interoperability feature, primarily to help develope
This section describes the activities in which Interop calls WF3.X.
Download this example:
Http://files.cnblogs.com/foundation/InteropSample.rar
Examples
Interop calls the Activity of WF3.X
Class Name
System. Activities. Statements. Interop
File
System. Workflow. Runtime. dll
Structure Description
Inherit NativeAct
The interoperability type "Microsoft. Office. Interop. Word. ApplicationClass" cannot be embedded ". Use the applicable interface instead .,The interoperability type "Microsoft. Office. Interop. Word. ApplicationClass" cannot be embedded ". Use the applicable interface instead.
Error 4317: The interoperability type "Microsoft. Office. Interop. Word. ApplicationC
Original: VS2010, cannot embed Interop type "...", use workaround for applicable interface instead1. Tip: In VS2010, when referencing COM components, there was a failure to embed the interop type "...", instead , use the appropriate interface for the error prompt.2. Solution:Select the DLL that was introduced in the project, right-click, select Properties, and set the embed
In the latest. Net 4.0 new feature series, my colleagues and I will introduce some new features in beta1 as follows:
New feature series in. Net 4.0 (3):. Net 4.0 beta1 InterOP new feature introduction (level 200)
Speaker:Zhang Yu and Zhu Yongtai
Course introduction:. Net 4.0 beta1 has made great improvements in InterOP, that is, the interoperability function, mainly to help developers customize the inter
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.