我试了以下方法:VB98\Wizards\PDWizard\Setup1.vbp中修改Setup1.frm的Form_Load事件,在其中可以找到如下几行: ' ' Create program icons (or links, i.e. shortcuts). ' If (fMainGroupWasCreated = True) Or ((cIcons > 0) And TreatAsWin95()) Then ShowStaticMessageDialog ResolveResString(resPROGMAN) CreateIcons gsICONGROUP ' ' Do the same for other sections in SETUP.LST if you've added your own.' 'CreateIcons "MySection" 'CreateIcons "MyOtherSection" ' End If在If.. End If中加上: OSfCreateShellLink "..\..\Desktop", _ "我的程序", gstrDestDir + "MyProg.exe", "" 但编译时报错:argument not optional;这是为什么? 如果在程序中声明一个API函数OSfCreateShellLink,则程序报Vb5stkit.dll,到底该怎样让安装程序在桌面上放一个快捷方式,请各位帮忙!!
'
' Create program icons (or links, i.e. shortcuts).
'
If (fMainGroupWasCreated = True) Or ((cIcons > 0) And TreatAsWin95()) Then
ShowStaticMessageDialog ResolveResString(resPROGMAN)
CreateIcons gsICONGROUP
'
' Do the same for other sections in SETUP.LST if you've added your own.'
'CreateIcons "MySection"
'CreateIcons "MyOtherSection"
'
End If在If.. End If中加上:
OSfCreateShellLink "..\..\Desktop", _
"我的程序", gstrDestDir + "MyProg.exe", ""
但编译时报错:argument not optional;这是为什么?
如果在程序中声明一个API函数OSfCreateShellLink,则程序报Vb5stkit.dll,到底该怎样让安装程序在桌面上放一个快捷方式,请各位帮忙!!
你可以在那里交流编程技术
注册用户请去以下帖子领分
http://www.csdn.net/expert/topic/682/682036.xml?temp=.5972101
http://www.csdn.net/expert/topic/681/681917.xml?temp=.5434992
http://www.csdn.net/expert/topic/676/676074.xml?temp=.9520075
http://www.csdn.net/expert/topic/641/641938.xml?temp=5.826968E-02
刚刚测试通过!!!!