We have a windows application created using Visual Basic 6.0.
An external application accesses the controls and data present in the forms (screens) of our VB application and prompts validation messages to the user. We assume that the external application is using the 'FindWindow', 'FindWindowEx' API functions present in the user32.dll to access our application using the logic as explained in the following link.
Get Text From Specific Textboxes From External Application - Visual Basic .Net
Is it possible to restrict the external applications from accessing the controls and data present in the forms (screens) of our VB application? Is there any method to restrict this anonymous access?
Thanks in Advance.
Thanks,
Sujatha.
One of the easiest ways to fend off hijackers is to substitute controls from How To Install the Microsoft Windowless Controls for VB6 for many of the intrinsic controls.
This simple step thwarts a lot of the parasites.
Your program hands the text over. The VB6 forms package is doing it for you. Subclass the window and kill the GetText message. See https://www.google.com.au/search?q=vb6+subclass+form.
Related
This will be OS dependant so here goes:
Windows 7/8/10
I'd like to be able to access a desktop application UI from another application (that I've written).
I'd like to be able to simply pass some mouse and keyboard inputs from my application to the external one.
Is this possible and if so, where do I start? Is there some Windows API that I can do this with?
I know I can use the Microsoft detours API to hook into Direct3D applications/games, but not sure about regular desktop applications.
I had created media annotation application which is a dialog based MFC application using c++ in visual studio2010. I want to make it work using web application by accessing it through URL via web browser.Is it possible to implement through C++?
You can do it. In stead of using the dialog based application, create automation COM component and use that in html or scripting languages.
I have to have a form as a gui,but i also need to write using win32 API as i need to create another process the moment the application is launched...
I created Win32 console-->empty project..then there was an option to add windows form as UI...Is it possible????...as i have chosen the base project to be win32 console application.
But i really need the form in the application.
C++/CLI is perfectly able to show a Windows Form in a console program, just as a windows console program is perfectly allowed to call CreateWindow. However, if you choose console as the output file mode then the console window is still going to show up to your user in addition to whatever forms you create.
You don't need to use the bare Windows API to create processes. See System.Diagnostics.Process.
I've got a .NET 2.0 Windows desktop application (time-sheets) which i develop and wanted to add a Gadget interface to it (so that app runs hidden and is controlled via the gadget).
What is the easiest way to get my gadget to communicate to my app?
An idea that i had was to have a built-in web server inside the app, and the gadget controls communicates with the app using ajax. However i'm hoping there's a simpler solution.
You didn't specify what technology the gadget and app were written with, so it's hard to answer. Assuming you can use .NET, WCF with a named-pipes binding would be very simple. Just a few lines of code to set it up.
We use win32 APIs in one of our gadgets' ActiveX control to communicate with other instances of the same gadget. Unfortunately, I can't give you the code (because I don't have permission and I don't write the .net stuff) but it boils down to using a window (in your case the application window) as a server and the gadget ActiveX control as the client and use the SendMessage function.
You can see an example of using COM interop with windows desktop gadgets at http://www.codeproject.com/KB/gadgets/GadgetInterop.aspx
NB: make sure the interop assembly is in the application's directory and NOT the gadget directory, otherwise you'll run into problems when updating/uninstalling the gadget.
Is there is a way to embed an application executable inside a webpart? is there any kind of a webpart available in sharepoint.
If not, then is it possible to create my own webpart and some how place my windows application there so that when a user login to a sharepoint site he can view the main winodws applciation screen on the webpage.
Do you have the code for the exe? If so you may be able to port it to a UserControl and put that in your WebPart. Development experience required.
Your requirement is to display an windows application inside a web form.
You can do that by creating an ActiveX component with your winform application and calling it from your custom webpart code. You can also to extract your commom business logic and reuse it between your win/web apps.