Please could someone check the following:
Posted: Fri May 26, 2006 12:25 pm
Hi there, I am trying to convert the following code which is from vb to purebasic
VB Code:
My attempt at the code in Purebasic:
Except I get an error saying cannot convert string to integer. Please could someone have a quick check, I'm sure the answer is very easy and I have forgetton something. I haven't used Purebasic in a while
Any help is greatly appreciated
VB Code:
Code: Select all
Sub RegeditExport(sKey As String, sFileName As String)
Shell "regedit.exe /s /e " & Chr(34) & sFileName & Chr(34) & " " & Chr(34) & sKey & Chr(34), vbHide
End Sub
Code: Select all
Procedure RegeditExport(sKey, sFilename)
RunProgram ("regedit.exe /s /c" + Chr(34) + sFilename + Chr(34) + " "
+ Chr(34) skey + Chr(34))
EndProcedure
Any help is greatly appreciated