Loading an executable file in eVB 
Author Message
 Loading an executable file in eVB

Dear All,

I find that the Shell function that works greatly in VB 6.0 does not work
properly in evb 3.0. I got an error saying that the function is not supported by
the development tool. I would like to know whether there is another way that
allows me to load other programs like calc.exe (in the emulator windows
directory) with eVB using maybe API calls. If so, could u pls guide me on it?

Thanks :)

Regards,

Chee Leong



Sun, 12 Oct 2003 15:32:21 GMT  
 Loading an executable file in eVB

'### MenuItem xPlorer
Case "mnuProgrammeExplorer"
            lRetMenue = CeCreateProcess ("\windows\fexplore.exe", "", 0, 0,
0, 0, 0, 0, 0, 0)

'### Declaration
Public Declare Function CeCreateProcess Lib "coredll.dll" Alias
"CreateProcessW" (ByVal lpApplicationName As String, ByVal lpCommandLine As
String, ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes As Long,
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal
lpEnvironment As Long, ByVal lpCurrentDirectory As Long, ByVal lpStartupInfo
As Long, ByVal lpProcessInformation As Long) As Long



Dear All,

I find that the Shell function that works greatly in VB 6.0 does not work
properly in evb 3.0. I got an error saying that the function is not
supported by
the development tool. I would like to know whether there is another way that
allows me to load other programs like calc.exe (in the emulator windows
directory) with eVB using maybe API calls. If so, could u pls guide me on
it?

Thanks :)

Regards,

Chee Leong



Sun, 12 Oct 2003 16:34:55 GMT  
 Loading an executable file in eVB

hello Chee Leong,
sorry, i do not know this.
Programmatically I have not tried to stop a prog from vb.
I always restart the vb prog.
Therefore I use a routine that prevents the prog from being started more
than once.

Public Declare Function CreateMutex Lib "coredll" Alias "CreateMutexW"
(lpMutexAttributes As Long, ByVal bInitialOwner As Long, ByVal lpName As
String) As Long

    Dim error_code
    CreateMutex CLng(0), 1, App.Title
    If GetLastError() = ERROR_ALREADY_EXISTS Then
        MsgBox "Already running", vbOKOnly, App.Title
        App.End
    End If

frank



Sun, 12 Oct 2003 17:55:52 GMT  
 Loading an executable file in eVB
Dear frank,

I hope u read this reply.
Thanks for sharing ur experience. I will try out the solution u had and restart
the vb program. If I find a better way to do that, I will email u.

:)

Regards,

Chee Leong



Mon, 13 Oct 2003 09:23:23 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help with Loading ICONS from Executable files

2. loading xml file in eVB

3. How to Open a non-executable from eVB

4. Size of EVB executable and ways to compact it

5. eVb and Microsoft sucks....Can't I play mp3 files in eVB

6. Grabbing icons from executables that aren't loaded

7. Grabbing icons from executables that aren't loaded

8. eVB: cannot load to device while AciveSync is connected

9. eVB Masters - Slow Load with Control Intensive Form

10. Can't get eVB to load debugger

11. My eVB app takes 5 seconds to load

12. Loading forms in eVB

 

 
Powered by phpBB® Forum Software