ocx

AxMsRdpClient6NotSafeForScripting AllowPromptingForCredentials

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I try to set AllowPromptingForCredentials to False on AxMsRdpClient6NotSafeForScripting control (on Windows Vista). But AllowPromptingForCredentials is not available. My code is : x = New AxMsRdpClient6NotSafeForScripting CType ( x , System . ComponentModel . ISupportInitialize ). BeginInit () x . Dock = System . Windows . Forms . DockStyle . Fill x . Enabled = True 'x.Location = New System.Drawing.Point(0, 0) x.Name = "OfficeWin7" P.Controls.Add(x) CType(x, System.ComponentModel.ISupportInitialize).EndInit() x.CreateControl() x

How to use embedded registration-free manifest for ActiveX component from managed code like C#?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I would like to use a specific version of ActiveX component that is not registered system- or user-wide. Everything works as expected if I use manifest files. However embedded manifest works only for C++ client code only. Here is dependency declaration <dependency> <dependentAssembly> <assemblyIdentity type = "win32" name = "MapWinGIS.ocx" version = "4.9.1.0" /> </dependentAssembly> </dependency> If I use SxStrace, I see the following INFO : Parsing Manifest File C : \O SGeo4W \b in \TestApplication . exe . INFO : Manifest

C#利用控件mscomm32.ocx读取串口datalogic扫描枪数据

匿名 (未验证) 提交于 2019-12-02 23:49:02
1).开发环境VS12,语言C# 2).扫描枪品牌:datalogic 4470 3).通讯协议:串口 1.首先,第一步创建一个新工程,windows窗体应用程序,命名为TestScanner,如下: 2.选择 “工具”-“选择工具箱”,如下: 3.选择"microsoft communication control version 6.0",通过此路径可知其位于64位SysWow64下的ocx控件mscomm32.ocx; 4.从右侧工具箱“组件”中找到串口控件,拖入窗体Form1中,命名为MD_MSComm,并在界面初始化中填入相关参数: MD_MSComm.CommPort = 11; MD_MSComm.InputMode = MSCommLib.InputModeConstants.comInputModeText; MD_MSComm.InBufferSize = 1024; MD_MSComm.OutBufferSize = 512; MD_MSComm.Settings = "9600,n,8,1"; MD_MSComm.SThreshold = 0; MD_MSComm.RThreshold = 1;//first byte trigger oncomm event MD_MSComm.InBufferCount = 0; MD_MSComm

C# 从注册表判断指定ocx控件是否已注册 以及获取它的注册路径

匿名 (未验证) 提交于 2019-12-02 22:06:11
/// <summary> /// 注册控件 /// </summary> /// <returns></returns> public bool RegControl() { try { //判断该控件是否已经注册 if (!CheckRegistredOcx(@"CLSID\{00460182-9E5E-11D5-B7C8-B8269041DD57}")) { string sPath = Path.Combine(WorkSpace.PublicDirectory, "dsoframer.ocx"); if (!File.Exists(sPath)) return false; Process p = new Process(); p.StartInfo.FileName = "Regsvr32.exe"; p.StartInfo.Arguments = "/s " + sPath; p.Start(); } return true; } catch (Exception ex) { Logger.Write(LoggerLevel.ERROR, "注册dsoframer.ocx失败" + ex.Message, ex.StackTrace); return false; } } /// <summary> /// 检测ocx是否注册 /// </summary> ///

windows下注册ocx控件

白昼怎懂夜的黑 提交于 2019-12-02 21:24:43
OCX 是对象类别扩充组件(Object Linking and Embedding (OLE) Control Extension);是可执行的文件的一种,但不可直接被执行; 是 ocx 控件的扩展名,与 .exe、.dll 同属于PE文件。 同一个OCX的多个控件在同一窗体上会出现可能的问题,主要原因是不能有全局变量(或共享数据) ,应该尽量定义成类的成员变量, 全局变量在同一个进程中要被共享的。 windows下注册ocx控件,有两种方法 方法一: 1,对于32位系统将xxx.ocx拷贝到C:\Windows\System32,对于64位系统将xxx.ocx拷贝到C:\Windows\System32和C:\windows\SysWOW64下。 2,以管理员身份打开cmd,输入regsvr32 xxx.ocx 回车,OK了。 方法二: 1,对于32位系统将xxx.ocx拷贝到C:\Windows\System32,对于64位系统将xxx.ocx拷贝到C:\windows\SysWOW64下。 2,32位系统,管理员身份打开cmd,输入 regsvr32 C:\Windows\System32\xxx.ocx xxx.ocx就是要注册的的控件的名称 64位系统,管理员身份打开cmd,输入 regsvr32 C:\windows\SysWOW64\xxx.ocx 如果注册成功的话

AxShockwaveFlashObjects and ShockwaveFlashObjects from Flash ocx

风流意气都作罢 提交于 2019-12-02 16:59:52
问题 I'm trying to create: AxShockwaveFlashObjects.dll and ShockwaveFlashObjects.dll entering the following command: aximp C:\WINDOWS\system32\Macromed\Flash\FlDbg10.ocx /nologo but I get an E_ACCESSDENIED error. What am I doing wrong? Thanks! 回答1: Open your command prompt. Switch to the directory that contains the aximp.exe file. Typically; C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin> Enter the following command (you may need to change the name of your COX file to match your version.

“Object library not registered” when adding Microsoft Rich Textbox Control 6.0 (SP6)

允我心安 提交于 2019-12-02 16:37:42
I try to add Microsoft Rich Textbox Control 6.0 (SP6) control via Project -> Components... in VB6 IDE. The control is present in the list of controls. When I tick it and click OK/Apply, I get Object library not registered error: Environment is Windows 7 SP1 x64 with latest updates, VB6 SP6 + KB957924. richtx32.Ocx is present in C:\Windows\SysWOW64\ . I tried re-registering .ocx by running this in elevated command prompt: cd c:\windows\SysWOW64 regsvr32 /u richtx32.Ocx regsvr32 richtx32.Ocx Registration completes successfully, but doesn't resolve the problem. When I look at what's going on

AxShockwaveFlashObjects and ShockwaveFlashObjects from Flash ocx

岁酱吖の 提交于 2019-12-02 10:04:50
I'm trying to create: AxShockwaveFlashObjects.dll and ShockwaveFlashObjects.dll entering the following command: aximp C:\WINDOWS\system32\Macromed\Flash\FlDbg10.ocx /nologo but I get an E_ACCESSDENIED error. What am I doing wrong? Thanks! Open your command prompt. Switch to the directory that contains the aximp.exe file. Typically; C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin> Enter the following command (you may need to change the name of your COX file to match your version. aximp.exe -source "C:\WNDOWS\system32\Macromed\Flash\Flash10a.ocx" Look in the C:\WNDOWS\system32\Macromed

delphi开发activex控件的心得

 ̄綄美尐妖づ 提交于 2019-12-01 22:18:54
delphi开发activex控件 2009-01-12 12:18:01| 分类: delphi | 标签: |举报 |字号大中小 订阅 用Delphi开发OCX的心得 最近在做的一个B/S系统要在客户端读取USB锁的要求,所以就需要写一个OCX来验证。原来也没有做过,所以 折腾了好几天,总算有点眉目了,所以把心得写下,交流下。 首先要弄明白你要写的OCX是用在客户端还是用在服务器端 假如用在客户端: 1、创建 打开delphi 7,选择菜单“new”->“other”->“activex”->“active form”->输入项目名称, 系统自动给你创建了3个文件,一个是项目文件,一个是form的单元文件,还有一个后缀带TLB 的文件。这三个文件中的你只需要更改form的单元文件,项目文件一般不需要写什么,TLB文件 有系统自动维护。 2、增加接口函数 所谓接口函数就是调用OCX的程序可以直接调用的函数,如果你要写的函数不提供 外部函数可以按常规声明就可以。但要声明接口函数则必须按步骤声明,有两种途径,其一:选择form 单元文件,然后点击“edit”->“add to interface”,弹出一个对话框,输入要声明的函数,如:function fun:integer; 其二:选择form单位文件,然后点击“view”->“Type Library”,弹出一个对话框

Determine which DLL and/or OCX files are actually used by my program?

天涯浪子 提交于 2019-12-01 13:16:22
问题 My software is written in VB6. For diagnostic purposes I need to determine the actual DLL / OCX files which are loaded and used by the application on a customer's computer. Since VB6 DLLs (including OCX files) are COM libraries they are loaded indirectly based on information in the registry. This means it is possible that a different file is being used than what was used in development / testing environments. Sometimes in a client environment this can cause malfunctions which are hard to