Re: build a user interface
launched in the IDE?? or launched as a standalone app (exe)?
Re: build a user interface
A good way to go in this cases is: have only 1 EXE (start interface) and the rest of the projects must be DLLs (dynamic libraries), but i see you already have those projects as separated standard EXE projects, so the way to go could be: make the interface as another standard EXE project and ShellExecute the app selected by the user.
Re: build a user interface
Quote:
make the interface as another standard EXE project and ShellExecute the app selected by the user.
jcis can you be more specific?could you give me more details because I don't know about ShellExcecute
Thanks in advance
Re: build a user interface
Example using 2 apps, assuming this:
- your interface and the other apps will be in the same folder
- The name of your first app executable is: App1.exe
- The name of your second app executable is: App2.exe
- Your interface is a project with 2 commandbuttons (Command1 and Command2)
Then the code for your interface would be..
VB Code:
Private Sub Command1_Click()
OpenApp App.Path & "\App1.exe"
End Sub
Private Sub Command2_Click()
OpenApp App.Path & "\App2.exe"
End Sub
Private Sub OpenApp(pPath As String)
Shell pPath, vbNormalFocus
End Sub
Run your interface and press both buttons, each one will open the corresponding app.
This is just an example, you use your real app file names.
If you want to close the interface after the user selection then add Unload Me after the Shell line.
Re: build a user interface
Hey,
I am quite not that familiar with the topic u suggested. But is it possible that you can combine the three projects into one, create a new form to have and have it to startup... or are the projects just a little too big. Btw, isn't it possible to actually just open a file using Visual Basic. I am not quite sure, but I think it is possible to open files if you have an exact path... Anyways, sorry if I am wrong...
Khanjan
Re: build a user interface
Thanks jcis
I'll try your suggestion,i think it will work