Autoinicion w2k y xp
Hola a todos. Quisiera saber, por favor, de que manera hacer para que mi aplicacion se autonicie en w2k y xp.
Use la del registro, pero no me parece conveniente, ademas creo que no funciona bien en estos SO. Si alguien sabe una manera diferente de hacerlo estare realmente agradecido.
Use la del registro, pero no me parece conveniente, ademas creo que no funciona bien en estos SO. Si alguien sabe una manera diferente de hacerlo estare realmente agradecido.
Al utilizar la del registro te refieres a cual?
Yo utilizo esto
declara en un modulo lo siguiente
Public Sub SaveString(hKey As Long, strPath As String, strValue As String, strData As String)
Dim Ret
RegCreateKey hKey, strPath, Ret
RegSetValueEx Ret, strValue, 0, REG_SZ, ByVal strData, Len(strData)
RegCloseKey Ret
End Sub
y despues en el form_load( si quieres)
SaveString HKEY_LOCAL_MACHINE, "SoftwareMicrosoftWindowsCurrentVersionRun", "ur", "ruta del programa"
cualquier duda escribeme
Yo utilizo esto
declara en un modulo lo siguiente
Public Sub SaveString(hKey As Long, strPath As String, strValue As String, strData As String)
Dim Ret
RegCreateKey hKey, strPath, Ret
RegSetValueEx Ret, strValue, 0, REG_SZ, ByVal strData, Len(strData)
RegCloseKey Ret
End Sub
y despues en el form_load( si quieres)
SaveString HKEY_LOCAL_MACHINE, "SoftwareMicrosoftWindowsCurrentVersionRun", "ur", "ruta del programa"
cualquier duda escribeme
