调用OCX控件的步骤:1.在系统中注册该ocx控件,命令:regsvr32.exe 控件位置(加 /u 参数是取消注册)2.在.net的工具箱中添加该控件,拖到form中去就可以了. 不用工具箱的话,自己手工添加,需要注意一个问题,就是要用Aximp.exe来包装一下ocx控件的类,然后再程序中引用生成的dll就可以了.aximp [options]{file.dll | file.ocx}The following command generates MediaPlayer.dll and A
一.DllImportAttribute 1.属性介绍 using System; using System.Reflection; using System.Security; namespace System.Runtime.InteropServices { // Summary: // Indicates that the attributed method is exposed by an unmanaged dynamic-link // library (DLL) as a sta
C#语言使用方便,入门门槛较代,上手容易,并且语法与C,java有很类似的地方,IDE做的也好,通用性好,是MS下一代开发的主要力量.但是其开源代码较少,类库不是十分完美,在架构方面还有一些需要做的工作. C++写的程序占用内存较小,直接对内存或者文件操作,因此一些关键的步骤或者一些最内层的循环在一定程序上还需要依赖C++. 下面我做一些简单的例子 C++编写DLL QpHelper.h #pragma once class QpHelper { public: // Returns a + b
Open the windows Run dialog (Windows Key + r) Type C:\Windows\assembly\gac_msil. This is some sort of weird hack that lets you browse your GAC. You can only get to it through the run dialog. Find your assembly and copy its path from the address bar.