|
Where does Process1.exe and Process2.exe reside? You should make sure that App.path is indeed pointing to the location of those two.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I tested Shell App.path + "\Process1.exe" and it worked so my file paths are correct.
While (true) { Human.isLearnable = true; }
|
|
|
|
|
For laughs and giggles, do a debug.print App.path + "\Process1.exe" and debug.print App.path + "\Process1.exe"
Copy and paste each result into the run window and make sure the .exe's run that way.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Hello, thank you for your reply,
I'm sure that these file paths are exist and correct. I tested your idea before.
While (true) { Human.isLearnable = true; }
|
|
|
|
|
I second that. It doesn't hurt to put in a little debug diagnostics.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
OK, I found it...
Private Sub cmdRun_Click()
{
Dim wsh as New IWshRuntimeLibrary.WshShell
wsh.Run Chr(34) & App.path + "\Process1.exe" & Chr(34), 1, True
wsh.Run Chr(34) & App.path + "\Process2.exe" & Chr(34), 1, True
}
Thank you all...
While (true) { Human.isLearnable = true; }
|
|
|
|
|
That'll do it every time. Congrats on solving it.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I am running some initializing code for the forms ComboBoxes in the Form Load event. I am populating some ComboBoxes using the ComboBox.DataSource = (Array of a type of object). The object is a listitem class, i set the DisplayMemeber equal to the display string in the object and ValueMember equal to the ID of the object, sample displaystring = ProductName and ID = ProductID.
The SelectedValueChanged event of the combobox triggers a repopulation of the products information for the selected product. The problem is the SelectedValueChanged event is triggering on the Form Load when the DataSource is set for the combobox. I do not want this event to happen during the Form Load event. I only want this event to trigger after the form has loaded and a user changes the SelectedValue or the SelectedValue is changed within code that is no fired off by the Form Load event.
Is there either a way to suppress the ComboBox events, SelectedValueChanged, SelectedIndexChanged, etc., or a way to detect that I am still in the Form Load event/state and conditionally use that to not execute the code in the SelectedValueChanged event?
|
|
|
|
|
add a module level boolean like mblnInit and set it accordingly during the new/load events
IE:
sub form_load (byval sender as object, ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
mblnInit = true
...all your load code here...
mblnInit = false
end sub
In the combo_selectvalue changed:
sub SelectedValueChanged
if not mblnInit then
...repopulate code...
end if
end sub
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Looks to be the old KISS method
I thought there were state trackers, but this works just as well.
|
|
|
|
|
i wants to create property in a class at run time with different names and datatypes.. thanks
Muhammad Ismail Khan
SoftWare Developer CRM(Islamabad), Pakistan
|
|
|
|
|
Possible, but hardly practical. You'd have to use reflection to do this. I don't know of any examples on the web, nor do I have any myself.
Usually, if this comes up, I would have to question the design. Why do you think you have a need for this?
|
|
|
|
|
Dave Kreskowiak wrote: Why do you think you have a need for this?
Looking at the subject line, rum time? I'm so there after a long day. Captain Morgan with Dr. Pepper
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I'm out of the Captain, but I've got a gallon of Jack Daniels on the kitchen counter!
|
|
|
|
|
Dave Kreskowiak wrote: got a gallon of Jack Daniels on the kitchen counter!
Whoohoo. That'll work as well.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
hai guys,
i am distributing a external winodow hook dll to the users system32 folder while installing my app. but after the installtion, when program is laucned, the dll loaded in vista, but no hooking. if restarted the pc only it works. but no problem in xp. it hooks and works fine after the installation.
whats wrong?
this is th innosetup code
Source: "D:\myproject\distribusion\xxxhook.dll"; DestDir: "{sys}"; Flags: ignoreversion
btw, it is a vb6 application.
|
|
|
|
|
My first question would be is the user running the code an Administrator?? You said you're using WIndows hooks, but not just anyone can use those functions.
|
|
|
|
|
Hai dav,
i am running in the admin account.
but here i dont think account is a concern in my openion.
hooks and permissions have no connection if i am correct.
the main think here, after restarting the machine, the hook works in vista.
but not imediatly after the installation.
D
|
|
|
|
|
afridy wrote: hooks and permissions have no connection if i am correct.
Depends on the hook. You never specified what hooks you're using, so it's impossible to say.
afridy wrote: the main think here, after restarting the machine, the hook works in vista.
but not imediatly after the installation.
Does the problem happen on a fresh machine that hasn't seen your app yet? Or is the problem occuring only when you reinstall the app or install a newer version of it? Is the setup replacing the .DLL immediately or is it queued for replacement when Windows starts. Is the .DLL still in use when your setup is run?
|
|
|
|
|
[quote]Depends on the hook. You never specified what hooks you're using, so it's impossible to say.[/quote]
Hai dave, sorry, yah it's a window hook that intercept messages and discard clicks from receiving by external windows when mouse move on them.
|
|
|
|
|
[quote]Does the problem happen on a fresh machine that hasn't seen your app yet? Or is the problem occuring only when you reinstall the app or install a newer version of it? Is the setup replacing the .DLL immediately or is it queued for replacement when Windows starts. Is the .DLL still in use when your setup is run?[/quote]
yah, this happens on the fresh machine.
the setup installes the dll on the first run and not at the restart since i have not specified sharefile or restartreplace in innosetup.
btw,how to check my dll is running or not while the program is running?
|
|
|
|
|
If this happens on a fresh install of the application, the .DLL isn't running since it's not installed yet.
You can't check to see if it's running or not. A .DLL is loaded into the process that uses it. If the application you launched that uses the .DLL is still running, then any .DLL's it used are still loaded and running to.
In that case, I don't know why your code doesn't work without a restart. Right now, I don't have to the time test and/or research it either.
|
|
|
|
|
thanks dave for the time you took to solve my issue. hope i could find some more tips here.
|
|
|
|
|
hi
i m running windows application in vb.net by pressing F5.
Then igot the error like
"Error while trying to run Project
Unable to start Debugging
The Binding handle is invalid"
plz help me
if i run any windows application from my system i m getting this error.
It is not for one project.for all the windows application projects
plz help me
vijay kumar D
|
|
|
|
|
All you've given us to work with is the error message you got. So, you'll have to read through these[^] Google results to find a solution.
|
|
|
|