|
-
Nov 15th, 2007, 08:38 AM
#1
Thread Starter
Addicted Member
-
Nov 15th, 2007, 08:40 AM
#2
Re: OLE App.Path problem
By placing them both in the same folder.
-
Nov 15th, 2007, 08:46 AM
#3
Thread Starter
Addicted Member
Re: OLE App.Path problem
What do you mean?
They are both on Desktop
-
Nov 15th, 2007, 08:48 AM
#4
Re: OLE App.Path problem
No, that is not what the msgboxs are telling me.
There are two separate file paths displayed.
App.Path refers to the folder where the compiled EXE is residing. Those message boxs indicate Project1 is in one place and Project2 is in another.
-
Nov 15th, 2007, 08:49 AM
#5
Thread Starter
Addicted Member
Re: OLE App.Path problem
Project1.exe is embedded inside Project2.exe (not linked)
And they are both on Desktop
I guess Project1 is temporarily extracted out of project2.exe and being put inside the temporary folder before being run
-
Nov 15th, 2007, 08:50 AM
#6
Re: OLE App.Path problem
So, there is only one .EXE?
-
Nov 15th, 2007, 08:52 AM
#7
Thread Starter
Addicted Member
Re: OLE App.Path problem
Project2's code
Code:
Private Sub Form_Load()
OLE1.DoVerb
End
End Sub
-
Nov 15th, 2007, 08:54 AM
#8
Thread Starter
Addicted Member
Re: OLE App.Path problem
 Originally Posted by Hack
So, there is only one .EXE?
There are 2 EXEs, which are independent from each other.
Project1.exe runs as a normal application and msgbox app.path
Project2.exe runs as an embedded application and msgbox app.path
-
Nov 15th, 2007, 08:54 AM
#9
Re: OLE App.Path problem
 Originally Posted by winterslam
I guess Project1 is temporarily extracted out of project2.exe and being put inside the temporary folder before being run
And this is why they have difference App.Paths
I don't know how you are "extracting" project1, but however it is being done needs to be modifed to do the extraction in the App.Path of Project2
-
Nov 15th, 2007, 08:58 AM
#10
Thread Starter
Addicted Member
Re: OLE App.Path problem
 Originally Posted by Hack
And this is why they have difference App.Paths
I don't know how you are "extracting" project1, but however it is being done needs to be modifed to do the extraction in the App.Path of Project2
Thanks..
How can I "extract" project1 in the same path as project2?
I use OLE1.DoVerb to run the embedded application. Are there any parameters to control the path?
-
Nov 15th, 2007, 09:01 AM
#11
Re: OLE App.Path problem
I don't know. In all my years of VB, I've never use the OLE object.
Try this experiment though. In standard of using built in windows OS folders, make a new data folder and put your Project2 in there and run it. I would be curious to see where it extracted Project1 to from there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|