社区
VB基础类
帖子详情
在开发activex dll过程中如何使用For Each
MOODSKY2002
2008-05-27 11:27:32
在开发activex dll时一使用for each生成出的dll在调用该部份时会提示"未设置对像变量或with block变量"
该怎么办呢....
...全文
45
2
打赏
收藏
在开发activex dll过程中如何使用For Each
在开发activex dll时一使用for each生成出的dll在调用该部份时会提示"未设置对像变量或with block变量" 该怎么办呢....
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
yinweihong
2008-05-27
打赏
举报
回复
楼主没描述清楚问题,你是要某个对象支持for each枚举
还是?
"未设置对像变量或with block变量" 这个错很多时候都抱
MOODSKY2002
2008-05-27
打赏
举报
回复
晕。。。。结果是我自己有个类型忘了声明就直接引用了。。。。。真是让人吐血
AddFlow
ActiveX
control Version 4.2.0.26
=================================================== AddFlow
ActiveX
control Version 4.2.0.26Copyright (c) 1997-2004 Lassalle Technologies. All rights reserved.http://www.lassalle.com===================================================Last updated: august 14, 2004Note: the purpose of this readme file is just to give the description of this package. See the file history.txtto know the last improvements.PACKAGE DESCRIPTIONThis package is a full installation package of the AddFlow
ActiveX
control, version 4.2. The installation program has been created with InstallShield for Microsoft Visual C++ 6.It installs: - ADDFLOW4.OCX: It is placed in the Windows system directory. - ADDFLOW4.CHM: the AddFlow help file - PRNFLOW3.OCX: the PrnFlow
ActiveX
control, version 3.0.0.2 It is an extension of AddFlow, allowing to print diagrams. It is placed in the Windows system directory. - PRNFLOW3.HLP: the PrnFlow help file - 3 Microsoft shared
DLL
s: MFC42.
DLL
, MSVCRT.
DLL
, OLEPRO32.
DLL
There are placed in the Windows system directory. - README.TXT (this current text file) - HISTORY.TXT (a description of each new version enhancements) - 6 VB6 SAMPLES * VBAF4EDIT It is a small diagram editor illustrating how to use the Undo/Redo feature and how to easily change the node and link properties by right clicking on them. * NAVIG It demonstrates how to use collections to navigate in a diagram. * POINT It allows working with the collection of the link points and with the following properties: ExtraPoints, AdjustOrg, AdjustDst, LinkStyle and OrthogonalDynamic. * PICTURES It shows how to use the Pictures and PictureIndex properties. * TABLES This VB6 sample demonstrates how to use AddFlow to create database diagrams. * XMLFLOW An
ActiveX
DLL
allowing to save/load an AddFlow diagram in a XML file. - 2 VC6 SAMPLES * NAVIG VC6 sample: the same program as the NAVIG VB6 sample except that it is written in C++. * VCAF4EDIT VC6 sample: a MDI diagram editor written in C++. It displays 4 examples of diagrams created programmaticaly. - 3 DELPHI 5 SAMPLES * Editor: a small diagram editor * Navig: same as the VB6 and VC6 versions. * Demo: displays 4 examples of diagrams created programmaticaly. ------------------------------------------------------------------------------TRADEMARKS:* AddFlow and PrnFlow are registered trademarks of Lassalle Technologies.* InstallShield is a registered trademark of InstallShield Corporation.All other names and trademarks are property of their respective companies.------------------------------------------------------------------------------
voip
ControlWizard has created this project for your MYVOIP
ActiveX
Control
DLL
, which contains 1 control. This skeleton project not only demonstrates the basics of writing an
ActiveX
Control, but is also a starting point for writing the specific features of your control. This file contains a summary of what you will find in each of the files that make up your MYVOIP
ActiveX
Control
DLL
. myvoip.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. myvoip.h This is the main include file for the
ActiveX
Control
DLL
. It includes other project-specific includes such as resource.h. myvoip.cpp This is the main source file that contains code for
DLL
initialization, termination and other bookkeeping. myvoip.rc This is a listing of the Microsoft Windows resources that the project uses. This file can be directly edited with the Visual C++ resource editor. myvoip.def This file contains information about the
ActiveX
Control
DLL
that must be provided to run with Microsoft Windows. myvoip.clw This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to generate and edit message maps and dialog data maps and to generate prototype member functions. myvoip.odl This file contains the Object Description Language source code for the type library of your control.
项目实战:Java Applet与
ActiveX
控件应用
控件技术是B/S项目的
开发
手段,在项目实战
中
非常重要!作为一个程序员和架构师,掌握控件的
开发
和集成技术,是必须的技能;浏览器
中
显示的内容主要是标签,当需要复杂操作时,控件技术是超越标签、给B/S项目扩展功能的重要方法!学习本套视频,主要是掌握java applet的
开发
技术,同时需要掌握在大项目
开发
中
, 如何有效的集成第三方控件;
DynamicWrapperX
DynamicWrapperX is an
ActiveX
component (COM server) inspired by DynamicWrapper, which I wrote as an attempt to better implement the idea. It allows to call functions exported by
DLL
libraries, in particular Windows API functions, from scripts in JScript and VBScript. This component is not a modification of the original DynamicWrapper, it was written from scratch in the GoAsm assembly language. So far I have tested it under Windows XP SP1 and Windows 98 SE. New features and changes: Added registration only for the current user. This can be useful if the user doesn’t have administrator privileges. Expanded the set of input parameter and return value types. Added output parameters. Unified the way strings are passed in JScript and VBScript. Added callback, which enables API functions to call script functions. This is necessary for using APIs such as EnumWindows (see examples below). On Windows 98, excluded the necessity to create a special object instance for each API function. Added several useful (IMHO) built-in methods. ---------------------------------------------------------------------------
SA-FileUp 文件上传
来自Software Artisans,SA-FileUP组件是一个真正的
ActiveX
DLL
服务器组件,容易集成到ASP网页
中
。该组件也可在MTS/COM+的环境
中
上运行。
使用
SA-FileUP组件的教程可在http://www.activeserverpages.com/upload/ 上找到 建立SA FileUp 对象的方法: Set oFileUp = Server.CreateObject("SoftArtisans.FileUp") 取出表单所有项的方法: For Each strFormElement In oFileUp.Form 用 oFileUp.Form(strFormElement)就可以引用每个对象,文件也是这样 注意:如果是多选下拉框,则用oFileUp.FormEx(strFormElement) 可以这样来遍历它。 For Each strSubItem In oFileUp.FormEx(strFormElement) Response.Write( strSubItem & "") Next Next ContentType属性: oFileUp.Form(strFormElement).ContentType 可以得到文件的MIME类型 IsEmpty属性 oFileUp.Form(strFormElement).IsEmpty 可以知道用户是不是指定了一个无效的文件 MaxBytes属性 oFileUp.Form(strFormElement).MaxBytes=30000 指定文件的限制,单位为Byte,如果超过它,那么只存储MaxBytes指定的大小。其余舍弃。 ServerName属性 oFileUp.Form(strFormElement).ServerName 可以得到文件保存到服务器的完整路径。 ShortFilename属性 oFileUp.Form(strFormElement).ShortFilename 可以得到客户端的文件名,注意只是文件名,我这里没有用,因为报错。呵呵。 UserFilename属性 oFileUp.Form(strFormElement).UserFileName 可以得到客户端文件的完整路径。可以输出一下给用户看看。 TotalBytes属性 oFileUp.Form(strFormElement).TotalBytes 可以得到文件的大小,单位为Byte SaveInVirtual(路径)方法 oFileUp.Form(strFormElement).SaveInVirtual "upfile/" oFileUp.Form(strFormElement).SaveInVirtual "upfile/aa.abc" 如果只指定了路径,则保留原文件名,否则按指定指定文件名保存 服务器管理员可以禁止掉其他所有方法,但这个一定会留的。 SaveAs (文件名)方法 oFileUp.Form(strFormElement).SaveAs "C:\aa\a.tmp" 如果没有指定路径,只是指定了文件名,那么将用Path属性指定的路径。 Path属性一会介绍。 Save方法 oFileUp.Path="D:\\wwwroot\\abc\\upfile\\" 注意必须是真实路径,可以用Server.MapPath来转换虚拟路径。 oFileUp.Form(strFormElement).Save 不能指定文件名喽。 注意:Path属性必须在提到任何表单项之前,建议放在 Set oFileUp = Server.CreateObject("SoftArtisans.FileUp") 的后面。前提是你用的话。 Delete (文件名,可选) oFileUp.Form(strFormElement).Delete 从服务器上删除文件,如果不指定文件名,则删除当前的文件。 如果指定的话,必须是文件的完整路径。 Flush方法 oFileUp.Flush 当你不想保存任何东西的时候,可以用它来放弃全部的输入流。
VB基础类
7,762
社区成员
197,608
社区内容
发帖
与我相关
我的任务
VB基础类
VB 基础类
复制链接
扫一扫
分享
社区描述
VB 基础类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章