 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#12002/10/17 18:16:40
我现在做了一个程序。里面加入很多的视频都是 mpge4格式的 avi ,需要安装一个mpge4的执行文件。我想实现的是在程序开始先检测机器是否有安装这个*.exe 的文件。如果没有安装。就进行安装。如果安装了就进行程序。(这个mpge4的执行文件就是豪杰超级解霸里面带的那个 instmpg4.exe)
很着急。谢谢解答 。。。。
rock 帮我一下
|
 hw26
职务:普通成员
等级:1
金币:11.0
发贴:240
注册:2002/8/8 14:13:16
|
#22002/10/17 20:08:39
能否通过播放的情况判断,用一个较小的(几秒)avi文件在头部播放,播放窗口(最小)在程序窗口外,如果播放成功,则返回变量如ok:=1否则为0,为0则安装。
|
 与人同乐
职务:管理员
等级:6
金币:18.0
发贴:3928
注册:2001/3/11 15:45:42
|
#32002/10/17 20:29:57
检查windows系统文件夹的sysytem文件夹下是否存在DivXa32.acm文件。
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#42002/10/18 8:22:14
还有一个问题
用什么语句来判断是否系统是win2000还是 win98 呢?
win2000是 winnt win98 是 windows
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#52002/10/18 8:34:42
我用什么函数来判断是否有这个文件
filetype("winnt\\system\\divxa32.acm")=0
用这个语句来判断可以么?
|
 燕云
职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
|
#62002/10/18 8:52:36
用getOSDirectory()返回系统文件夹即可为什么还要判断? x:=getOSDirectory() x^"\\system\\divxa32.acm"
云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#72002/10/18 9:02:48
请问 getOSDirectory()是外部函数么?
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#82002/10/18 9:04:28
再问。
这条判定语句应该怎么写才对呢?
|
 暗黑长老__凯恩
职务:普通成员
等级:5
金币:10.0
发贴:1349
注册:2002/10/2 15:52:32
|
#92002/10/18 9:04:33
win2000和win98的系统文件夹是不一样的。肯顶要判断才能找到文件夹啊
Director Flash Premiere AE 程序设计、 C++中。。。。。。
|
 燕云
职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
|
#102002/10/18 9:09:30
getOSDirectory()---是au系统的外围函数 是au中的xtras--fileio中的
x:=getOSDirectory()---获取系统目录---各系统的系统目录本来就是不同的,此函数是调用系统级接口的函数换算得到当前系统目录路径的
y:=x^"\\system\\divxa32.acm"---用变量y得到所要文件在系统中预定的位置
编辑历史:[这消息被skcyh编辑过(编辑时间2002-10-18 09:10:14)]
云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#112002/10/18 9:11:37
--全屏 Cover() --调用instmpg4.exe文件 x:=getOSDirectory() if FileType(y:=x^"\\system\\divxa32.acm")=0 then result:=MessageBox(WindowHandle,"您的机器还没有安装DivXa32.acm,现在即将为您安装,是否要继续?","HighCOM",1) if result=1 then JumpOutReturn(FileLocation^"INSTMPG4.EXE") else if result=2 then GoTo(IconID@"初始化") end if end if 我这么写帮我看看对不对?
|
 燕云
职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
|
#122002/10/18 9:18:52
为什么不在cover函数之前调用你的判断块?--这是一个建议,也是一个好的系统设计习惯。 调试是最好的测试方面。--运行一下才会明白什么是真正的正确 语法结构应该是对的
云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;
|
 魔岩
职务:版主
等级:6
金币:34.0
发贴:4453
注册:2004/1/13 10:53:31
|
#132002/10/18 20:56:50
skcyh在上个帖子中说 引用: getOSDirectory()---是au系统的外围函数 是au中的xtras--fileio中的
x:=getOSDirectory()---获取系统目录---各系统的系统目录本来就是不同的,此函数是调用系统级接口的函数换算得到当前系统目录路径的
y:=x^"\\system\\divxa32.acm"---用变量y得到所要文件在系统中预定的位置
2K系统的系统目录是system32 还是需要判断的。。呵呵
|
 梅干超人
职务:普通成员
等级:1
金币:0.0
发贴:118
注册:2002/9/17 18:35:44
|
#142002/10/19 9:32:49
rock 你知道怎么都不说帮我一下。。等我有机会去广州。一定去找你。嘿嘿。。。。。
|
 燕云
职务:普通成员
等级:2
金币:10.0
发贴:600
注册:2001/5/12 1:31:32
|
#152002/10/19 11:25:16
buddy.x32/u32 SysFolder Platform: Windows and Macintosh Description: baSysFolder gets the location of a special Windows directory. Usage: Result = baSysFolder( Folder ) Arguments: String. Folder is the name of the folder to return. Can be one of the following: Windows: "windows" returns the Windows folder "system" the System folder "system16" the Windows System folder for 16 bit files "system32" the Windows System folder for 32 bit files "temp" the folder used for temporary files "current" the current DOS directory "desktop" the desktop folder "common desktop" the common desktop folder for all users "groups" the program groups folder in the start menu "common groups" the common program groups folder for all users "start menu" the start menu folder "common start menu" the common start menu for all users "personal" the users personal documents folder "favorites" the users favorites folder "startup" the 'Start Up' program group folder "recent" the 'Recent documents' folder "sendto" the 'Send To' folder "network" the 'Network Neighborhood' folder "fonts" the 'Fonts' folder "shellnew" the new documents template folder "program files" the program files folder "common files" the common folder in the program files folder Macintosh: "system" the System Folder "prefs" the Preferences folder "temp" the Temporary Items folder on the startup disk "desktop" the Desktop folder on the startup disk "trash" the trash can "startup" the Startup Items folder "apple" the Apple Menu Items folder "control panels" the Control Panels folder "extensions" the Extensions folder "fonts" the Fonts folder "boot" the name of the start up disk Returns: String. Returns the requested folder. Examples: Director: set WinDir = baSysFolder( "windows" ) Authorware: WinDir := baSysFolder( "windows" ) Notes: The string that is returned will have a "\" (Windows) or ":" (Mac) at the end. The "system16" and "system32" options are for use with Windows NT. On other versions of windows, they will return the same as "system".
云网媒体【YZCNET.COM】云网媒体开展软件技术、互联网技术、电子商务技术、多媒体设计等服务; 其中包括 :软件开发、网站建设、手机服务、多媒体设计、 图片及演示文稿服务等;
|