Hi all,
I've written a little PowerBASIC (I'm using PB5) Program for an Autostart Function on a CD with a Microsoft PowerPoint Presentation. Because of "relative Links" in this Presentation, I must start the PowerPoint Viewer with the full path in the command line.
My code works fine under Win9x/ME but I can't get it work under WinNT ?!?
Where's my mistake? (the Visual Basic Code works fine under NT, but not erveryone hast VB Runtime Files)
Regards,
Sven
------------------
[This message has been edited by Sven Blumenstein (edited November 30, 2000).]
I've written a little PowerBASIC (I'm using PB5) Program for an Autostart Function on a CD with a Microsoft PowerPoint Presentation. Because of "relative Links" in this Presentation, I must start the PowerPoint Viewer with the full path in the command line.
My code works fine under Win9x/ME but I can't get it work under WinNT ?!?
Where's my mistake? (the Visual Basic Code works fine under NT, but not erveryone hast VB Runtime Files)
Regards,
Sven
Code:
$compile exe "start.exe" FUNCTION WinMain (BYVAL hInstance AS LONG, BYVAL hPrevInstance AS LONG, lpCmdLine AS ASCIIZ PTR, BYVAL iCmdShow AS LONG) AS LONG if len(curdir$) = 3 then path$ = curdir$ else path$ = curdir$ + "\" end if x& = shell(path$ & "ppview32.exe " & Chr$(34) & path$ & "salestag 2000.ppt" & Chr$(34)) END FUNCTION 'This is the Visual BASIC Code: '------------------------------ 'Attribute VB_Name = "Module1" 'Sub Main() 'Dim apppath As String 'If Len(App.Path) = 3 Then 'apppath = App.Path 'Else 'apppath = App.Path & "\" 'End If 'Dim x As Long 'x = Shell(apppath & "ppview32.exe " & Chr(34) & apppath & "salestag 2000.ppt" & Chr(34)) 'End Sub
[This message has been edited by Sven Blumenstein (edited November 30, 2000).]
Comment