Accessing a C++ application from a webpage - visual-c++

I have created an interactive application in Visual C++ that has a graphical user interface and text output. The code is compiled and runs successfully on my computer.
I would like to make the application available for users to access and run via a website (and maybe email the results text). What do I need to do to achieve that?
Edit: I know that this question may look unresearched for many of you. The application I refer is a real scientific application. The question appears vague because I don't know where exactly to start. I did some browsing, but most was above my experience level. I am still looking, but I couldn't find a route yet.

Related

Automation of user's actions on web pages(sites)

I have a question about working with web on user's side. I need to automatize some user's actions on web pages(sites), but i don't know how to do it. I would have learned this myself, but i don't know what to start with, how to find information that i need. I mean i have no idea what programming language to choose to do this, or how this kind of applications or programs is called. Do i need to learn JavaScript or idk python or c++, or something else? Please, tell me anything you know about this, any information will be useful.
The easiest way to automate inputs to a website is using Selenium.
The Selenium website has plenty of information and demonstrations on how to use their software.

adminLTE and VBscripts?

My goal is to use adminLTE (adminLTE) interface in a corporate setting which allows for VBA scripts to run to automate task which my non-tech savy team can accomplish much quicker than by doing them by hand. (pre-filling emails, providing inventory information, creating and printing forms automatically, integrating with stamps.com, reference and display a lot of excel data). From my understanding, the execution of VBA scripts in a web browser is not allowed.
What are my options for accomplishing my goal?
Do this in an HTA file?
Am I wrong about web browser executions of VB scripts?
Do I need to build an application in Visual Studio?
I have a team of three which need to access this and share data, so it's not like an entire enterprise spread across the nation or anything like that. Thanks.
Any and all thoughts are welcome.
This question is pretty broad - it's the same as asing "what are my options for executing an arbitrary EXE on an end user's computer from a browser." The whole point of browser based applications is to prevent this from happening for security reasons.
If your goal is to deploy VBA scripts to everyone in your organization - that's actually pretty easy - just create an automatically updating Excel addin. This approach is very common and easy to do (more info if needed).
To answer your questions:
Too broad
Yes you can do this in a HTA file but I don't recommend it and I don't think it does what you want.
You cannot run VBA within a browser in the traditional sense. An HTA from what I understand is essentially a desktop app that is written using HTML i.e. you couldn't deploy an HTA to example.com.
You can build a ASP.NET web app in Visual Studio and have your front end (e.g. Admin LTE) call an end point on the backend which then calls an EXE but that would be an EXE on the server and not the client.

How to get information about UWP app?

How can I get information about an UWP application on Windows 10 from another application?
As a minimum, I am interested in application name and default tile. Then, I would like to be able to learn as much as possible, of course.
Some UWP apps can be linked to an EXE. That is, their main window is created by an EXE. This helps. At least, I know the location of "resource.pri", which presumably can be read.
But, there are apps which do not have EXE, and "hosted" by wwahost.exe instead. These are black boxes to me. Is there any way to know what is inside?
I would appreciate any hints.
Thanks
It's possible, but very different than what we do for desktop apps. I can share you the possible solution but there are some security issues, so I suggest you contact Microsoft to get a better way(maybe open some APIs for this kind of information) ensure your users have a safe system.
Here is what we need to do to get these information.
Enum WWAHost process.
You can enum "File type" items loaded into WWAHost, and find the one which is in this format: "C:\Program Files\WindowsApps\xxxx". When you view the app in Task Manager and view its properties, you will find it is a folder property windows. And you can also use Process Explorer to check the WWAHost process, and you will find the folder format I mentioned.
(Security Issue) To get the package name, version and more information, you have to access the folder I mentioned above. By reading the AppxManifest and dumping the resource.pri by using "makepri dump" and reading the generated resource.pri.xml, you will be able to get many information. But, we have to use special way to get access to the windowsapps folder and it will raise security risk to your users' OS(and maybe other issues). But if it is for your personal use, it's OK.

Using SIGAR to get oracle process info, from a web app server (glassfish4)

I have been working on a web monitor using sigar to gather the System information, but now i need to get the Oracle's RAM and CPU usage. I did it using sigar.getProcCpu(pid).getTotal() function.
But when i deploy the app on glassfish 4, i get the error message: org.hyperic.sigar.SigarPermissionDeniedException: Access is denied.
is there any walkaround for this? can i give sigar access to the info that im requesting?
I got exact the same problem as yours.
I found this post after I asked my question and find my answer.
And here's my answer for my own question:
The OS does not allow your program to access process information until you run the program with Admin privilege, so I need to provide Admin privilege.
There are some methods to provide Admin privilege, including ask user to right click on the icon and select "run as administrator".
But the better way might be wrapping your java application in an .exe like here and here said.
However, I probably have to hack the OS as excowboy said here as I want to show the information on web page and can't wrapping my app in an .exe file.
I think I have to give up. Just put these links for those who may need it. :) Oh, the total CPU usage is accessible if you want,BTW.
Hope this would help you and sorry for my poor English. ;)

No-code or little-code website

What is a (free) technology which requires the least amount of code for creating a website with the following requirements:
Sign-up/login
Form for adding your personal info. which gets databased
Each person can view and edit their own info
Admin can view and edit any
The form needs to be easily customizable and extensible (by the website's owner, not during run-time)
Is there a beginner tutorial for such a thing?
(For me, this question is about a friend who wants me to do this, but I want him to do it himself so I don't have to get roped into maintenance. I also want to keep it more general for the sake of Stack Overflow and future readers.)
Edit: I thought I remembered some ASP.NET tutorials that were mostly drag/drop or things where it was all but made for you from the database schema (which can be made with SSMS's GUI) but I can't seem to find them now.
Responding to posts below requesting specifics: this site will be for potential clients to sign-up and enter their company's info and fill out a form about their advertising needs.
I thought about putting this on SU instead, but since there was likely going to be some coding involved (I assumed no-code was an unreachable goal) SO seemed more appropriate.
Your friend can consider a framework like drupal. It has a bit of a learning code but, you can create a website with everything you ask for without code. You may want to modify it to change the look but there are themes for that.
Also, some hosts like godaddy.com have this installed and you do not have to worry about the complex installation procedures. Just start modifying the content of the site, select a built in template and go...
PhpBB? I think you need to specify what the website is going to be used for before you can get better/more specific answers.
... have a look at Drupal or Joomla, expect a learning curve nevertheless.
Is this friend a programmer as well? If so, I'd suggest building such a site using a PHP framework. Deploying an existing forum/wiki is also an option of course, but will probably have much more features than you describe. But if s/he's not a programmer, I don't see how s/he will be able to develop a site like that in a reasonable amount of time.
Why not using a CMS like wordpress, drupal and co. ?

Resources