当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: Part 1 - Loading the Micro
 

 

    摘要:利用dot net技术中反射及代码发送的 动态退化或同步化接口封装 1 技术背景 在“动态”这个词到处用的时代,怎样能够让程序真正的动态起来。 在java的结构中我们看到了一个java.lang.reflect包,开始让程序能够了解程序的结构。然后作为java的好徒弟dot net框架中system.reflection命名空间看到了 assemblybuilder,modulebuilder,typebuilder及......
    摘要: 今天在论坛中看到有人在讨论关于票据打印的问题在dos年代,我们是直接用控制打印机对象的方法进行单字打印。在现在图形界面开发的程序中,仍有很多人在使用这种方法。当然这种方法的好处是显而易见的,打印位置准确,容易控制走纸,而且比其他的打印方式相对能延长打印机寿命,节约打印成本。 使用printer对象控制打印的唯一问题是开发时调整位置需要相当长的时间。 在现在的很多项目中,我们使用的是可视化的编程工具,相应的打印方法又增加了很多。有人采用的是使用exc......


Microsoft Agent Tutorial Chapter 1
part 1 - loading the microsoft agent control

the easiest way to load the agent control is to select it from the controls menu in vb and just drop it on your form.

private withevents msagent as agent set msagent = new agent

for the purposes of this text we will assume the name of the agent control is called "msagent". 【相关文章:第十一讲 JDBC编程

alternatively you can add a reference to the microsoft agent control 2.0 from the references menu item in visual basic and create an object for the control at runtime like this: 【扩展阅读:与C#谈恋爱

  【扩展信息:java笔试题

 

part 2 - loading a character

a character file defines what your agent will look like, and all the character animations are stored there. before you can begin programming for ms agent you need to specify what character file to open.

‘create a character object private merlin as iagentctlcharacterex ‘load the default character by not supplying ‘an acs file msagent.characters.load "merlin", _ “c:\windows\msagent\chars\merlin.acs” ‘set the merlin object to our new character. set merlin = msagent.characters("merlin")

microsoft agent 2.0 has the ability to allow the user to enter in a default character to use with programs. if you want to load the default character the code looks just about the same.

instead of doing this:


...   下一页
 ·shellexecute function (zt)    »显示摘要«
    摘要: shellexecute function performs an operation on a specified file. syntax hinstance shellexecute( hwnd hwnd, lpctstr lpoperation, lpctstr lpfile, lpctstr lpparameters, lpctstr lpdirectory, int nshowcmd ); ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE