|
hi man
sorry that i have rote it in this way
coz the faster reply i need & actually im not familiar with this prog, that why i need it badlly.
sorry for my word.
i sposed 2 asked for it gentally with respect 2 u. if u colled help me i will be greatfull man
thanks alot
|
|
|
|
|
It seems that someone has taken on a project that they don't know how to complete. And, to add insult to injury, they can't tell between C# and C ?
I'm sure if you tried google, you'd find heaps of examples.
kbusaidi2005 wrote: the faster respond is required
I've never seen anyone say 'I'm not in a hurry for this', or 'answer whenever you feel like it'. But, people WILL answer when they feel like it, they are not being paid. Saying this just makes you seem rude.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
hi there
if im not in a hurry i will post my request
belive me my friend im i a huRRRRRy really & i need it very badelly 2 much
i u can help m well & good for me
thanks
waiting for u repllay
khalid
|
|
|
|
|
|
I guess you didn't read my reply at all.
It amazes me when people ask questions that google can answer, and then talk at length about how they are in a hurry.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Search for Aracrypt. There are some very interesting and simple resources on the subject, ready to use in plenty of languages.
|
|
|
|
|
mmmm do we get extra credit for helping you with your homework?
|
|
|
|
|
Hello,
I have a little test application that can plug-in in our main application.
if the main application is open, it uses this object else it starts the main application.
Now I made a service that checks certain "packets" (as we call them) and calls my test application if a certain packet was received.
Instead however, of using the existing open main application, the test application starts a new instance of it. I guess it has to do something with the process being in a different session or space or something (because of being started from a service)?
(so the service calls the test application which in it's turn tries to plug-in into the main application)
Is there a way to "connect" to the existing application? I was searching into the Thread and Process classes, but couldn't find anything useful.
Can anybody help me?
Many thanks.
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
GetProcessById() returns a Process component, given the identifier of a process on the local computer (as parameter).
SkyWalker
|
|
|
|
|
Thanks for the help.
I can get the process, but how do I use this object to attach to my current application? (or vice versa?)
|
|
|
|
|
"Process" refers to only one process! How could you refer two different processes with only one reference at a time ?!?
SkyWalker
|
|
|
|
|
the problem lies in the fact that when called in a service, the test application can't see the application running. Sure I can get the Process object of the main app. What I actually need is to tell my test application that it needs to run in the same context or space (or whatever it might be called.)
Somehow there is a 'difference' when the test app is run normally or called via the service.
Sorry if I wasn't clear before, it's a complex problem.
|
|
|
|
|
What do you exactly mean by "the test application can't see the application running"?
SkyWalker
|
|
|
|
|
To 'plug-in' to our main application, we use a dll that will call CreateObject after which we can use some functions to manipulate our main app. CreateObject will start a new application if it wasn't already running but will use the running application if it was (already running).
This works and has been tested in many of our applications.
Know we have to manipulate our application when a "packet" is arrived. (it's a message with some data attached). I'm able to discover this packet, analyze it and call a Process.Start("MyTestApp.exe", "myargument"); (this is done by the service)
For some reason, the testapp manipulates the main app correctly when called as exe, but calls up a new instance when run from the service...
hence the testapp doesn't "see" the main app running.
(PS: yep I've tried a GetObject too, but somehow that crashes.)
we're getting there . (it's always difficult to explain these things, thanks for the patience)
|
|
|
|
|
If your app is a Windows Forms app, which actually supports only the single-thread apartment (STA) model, you must ensure that the thread handling the events, and the thread that created the Windows Forms control you want to update (or to be aware of something out there) coincide. This is not necessarily true by default and can lead to anomalies or even exceptions.
Another point would be for you to check if the arguments are passed correctly (maybe you need there a full path for some filenames passed as arguments).
Maybe this helped you a little bit.
SkyWalker
|
|
|
|
|
Mircea Puiu wrote: If your app is a Windows Forms app, which actually supports only the single-thread apartment (STA) model, you must ensure that the thread handling the events, and the thread that created the Windows Forms control you want to update (or to be aware of something out there) coincide. This is not necessarily true by default and can lead to anomalies or even exceptions.
I was looking into something like this but couldn't find it.
main app is VC6.0, the service and the testapp .Net 2.0.
Reading this my guess is I should look into the apartment state or something? Well at least it's a start (I had no clue at where to start looking)
Mircea Puiu wrote: Another point would be for you to check if the arguments are passed correctly (maybe you need there a full path for some filenames passed as arguments).
these are definitely correct .
Many thanks!
|
|
|
|
|
Have a look here[^], at CP
SkyWalker
|
|
|
|
|
|
How to display an array list of objects in a combo box?
|
|
|
|
|
Set the list to be the datasource, and set the dataitem and displayitem ( from memory ) properties so it knows what field to display.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hi,
Please help me to solve this issue.
I am looking for a listview with 2 checkbox in the last column.
|
|
|
|
|
|
hi all,
i have 2 action which are using the same method-methodA,sometime the methodA will access by both of the action at the same time.But,it will promp out a message said, "This method cannot be access,because it is using by other action".My question is how can i make the method run the acction in order?
any hits are welcome,
thanks in advance,
cocoonwls
note: i have create my own user control which control by timer,so sometime,they will access a same method at the same time
|
|
|
|
|
If you use a timer control instead of a thread timer, the actions will run in the main thread instead.
If you need threading, use the lock keyword for code that you have to make thread safe.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi Guffa,
I am trying use Thread Timers,but what should i declare for, Syste.Threading.Timer or System.Timers.Timer?
thanks,
cocoonwls
|
|
|
|