|
The preferred methods are CreateProcess() or ShellExecute() . system() and WinExec() are throwbacks to the days of DOS and 16-bit Windows.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
Hello,
I am developing an add-on for an application that uses active-x. I could mange to write the add-ons and seem there is no problem with the add-on expects one. The user may select a menu item from the original application when it should not be done so I want to hook into the menu item and replacing its serving function with my own function to tell the user that he shouldn’t do this or at least disable the menu item. I don’t have any way to do this using the interface that the application can give me ( at least I don’t know about such interface!). Is there any way to do this?
The main things that I want to do are:
Assume that you have a running application and you don’t have access to its source code.
1-I want that to change the status of the some menu items in the application (disable and enable them). Can I do this? If yes how?
2- I want to find when a menu item is selected by user. Assume that when the user select File menu item, the File() function in the application is called. Can I change it so that it call MyFile() function instead of original File() function? If yes can I call File() function from MyFile() function? If yes how can I do this?
Any help is much appreciated.
Best regards
|
|
|
|
|
There are two way I know of (and have used in an article) which may be of interest.
The first is to install an application wide hook (target application only) and monitor for WM_INITMENUPOPUP messages. If you use a RET hook (after the call has been processed), you should be able to change the state of inidividual menu items at this point.
The problem is that not all menus will generate a WM_INITMENUPOPUP message (if you specify the TPM_NONOTIFY style). For this I use an application hijack where we basically intercept the OS call to TrackPopupMenu/Ex and handle the menu at this point.
If the TPM_NONOTIFY style is set, you should be able to change the states of menu items at this point and have them correctly take effect.
THe methods I describe above can be found in my article http://www.codeproject.com/menu/QuickODmenu.asp[^]. You should be able to extract the areas of interest (assuming you dont need OD menus) and modify them to do what you need.
If you vote me down, my score will only get lower
|
|
|
|
|
In my company we are selling an application which is often upgraded. Till now we had the policy to send them email that new app is awailable and they just download it from our FTP with special username and password.
But this is getting rather stupid. I would like to have auto-update build in my app.
The problem is becouse there are so many solutions for this and all of them are wierd to me.
1.) MY first idea was that i have some kind of apache-php server which would deliver my installer.exe to my app. But people say that this is inpossible in PHP. They say that it only works with browsers. (This is wierd to me too)
2.) ISAPI filter or Extension?
3.) Should I just program Socket Server and integrate Socket Client in my app?
Any idea would be apriciated.
Tnx girls & guys
Hoorbnet
Love is the law, love under will.
|
|
|
|
|
Hello!
I have programmed one Auto Updater Application, Actually what the logic behind it is that my Application residing on
Client Computer, it self check for version update at a fixed interval and if it found an update it download itself new one (using UrlFileToDownload Api), after that it update itself in stealth mode (Updating on Local Computer was done by INNO Setup ).
Hope this will help!
"I Think this Will Help"
<h5
alok="" gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
It has to have some sort of authentication implemented in client application.
Love is the law, love under will.
|
|
|
|
|
Hoornet93 wrote:
It has to have some sort of authentication implemented in client application.
Really Can't Understand
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
All that your app has is already implemented in our client app. The problem is at the server side. I don't want to use FTP, couse it doesn't always work with different proxy settings in many companies.
I would like some alternative to simple ftp://user:pass@www.address.com.
Do you understand?
Love is the law, love under will.
|
|
|
|
|
Hoornet93 wrote:
All that your app has is already implemented in our client app. The problem is at the server side. I don't want to use FTP, couse it doesn't always work with different proxy settings in many companies.
I never told you to use FTP!!,from my point view The Client application will check for Update like th Norton Antivirus work.
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Like Norton Antivirus - yes that is what i want!
But how to do this on Server side?
I took a look at your function but it just download from some URL. But i wan't that this file is not awailable to anyone.
Love is the law, love under will.
|
|
|
|
|
Actually i am saying tha t App at client end will check for update not server will connect to client and check for update.
like this
--Client---->Connected to Internet-->send a Request(using HTTP Transfer/XML data/POST method)-
---->SERVER-->check that new version is available-->
--->if new version is availabe->download that and update that
Simple
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
|
Hi
I am doing a project in MFC which uses three MDI child windows, When i use the MDITile command, the frist opened window moves to the last but i want the windows to arrange the other way. Can anyone help me in sorting this problem?
|
|
|
|
|
SetWindowPos() can be used to change the Z-order of a window. I'm not sure what method MDITile uses to enumerate windows, but i would try this first.
You left me high and dry and changed me
You lied to me and now i’m angry...
|
|
|
|
|
Hello,
After drawing bitmaps, i want to implement a functionality like picking a bitmap with mouse and moving it some other position on the client area (dragging it).
Any help?
|
|
|
|
|
I would try it to do it this way:
1) When clicking the left button, create a temporary CBitmap object, compatible with a memory DC. Using this memory DC, draw the wanted area on the CBitmap.
2) When moving the mouse
a) If the CBitmap was previously drawn, draw the CBitmap in its old position using a XOR mode (that is clearing the previous drawing)
b) draw the CBitmap in its new position in XOR mode
3) When releasing the left button: clearing the drawing of the CBitmap object in its old position ( = drawing in XOR mode), update the data, delete the temporary CBitmap object, redraw the window.
Fold With Us!
Sie wollen mein Herz am rechten Fleck
Doch seh ich dann nach unten weg
Da schlägt es links
|
|
|
|
|
Whell, i'll try to explain what really i want:
I got to two OXY scales, (two dimensions). So One OXY, and another O'X'Y'. The first is local coordinate system and the second is real (global) coordinate system. I Got three equivalent points in that systems. So how to get know the position on the area, using this three point, and create projection to the real( global) coordinate system? I hope i explained it corectly. In other words i got the GPS,and the Map in Local coordinate systems, and i want to translate the data from gps, to set the point on the map correctly.... Ufff, i have to learn english better....
Please Help...
|
|
|
|
|
|
I had a similar problem a couple of years ago.
I ended up learing a lot of matrix & vector maths I'd forgotten about years previously.
But that was transforming points from one coordinate system to another, with O'X' and O'Y'
not necessarily orthogonal (at 90<super>o).
But if your coordinate systems are parallel, and you want to go from one system to another...
Transforming point P...
P1 = P - O
P1.x /= (OX).x
P1.y /= (OX).y
P2.x *= (O'X').x
P2.y *= (O'X').y
P' = P2 + O'
I ended up with my own matrix & vector classes, with a function that took 3 coords in one
system (O,X,Y), 3 in the next (O',X',Y') and produced a matrix to transform between them:
M = dxfMatrix::Warp(A,B,C, A',B',C')
P' = MP
But its not publishable! Maybe this counts as teasing...
If you need any specific help, let me know.
Iain.
|
|
|
|
|
Hello, I think you understand me right Thanks "that was transforming points from one coordinate system to another, with O'X' and O'Y'
not necessarily orthogonal (at 90o)" - That's exactly what i need!!!
The transforming point from one system to another, with three or more controll points. Where can i find the formulas or something,or open source or any information
|
|
|
|
|
Rassul Yunussov wrote:
Where can i find the formulas or something,or open source or any information
Well, I had to struggle a lot, against a lack of information. I can't email you the
code, as it is too entangled in commercial stuff & confidential. Sounds like an
article needing to be written!
If you want a head start, I would go start learning about matrices again...
Eigen Vectors[^].
Iain.
|
|
|
|
|
Hi:
if I have defined a push button as an Icon is there any way to show an info prompt when I put the mouse over this button?
Thanks.
|
|
|
|
|
|