Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6932011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:39:07+00:00 2026-05-27T11:39:07+00:00

My problem is that I need to run a .exe program from my c++

  • 0

My problem is that I need to run a .exe program from my c++ program. When running the .exe in shell I go to the .exe location, run the .exe, in the shell it then requests the input file which I then provide. The program then runs.
From my research I believe I need to use shell32 but I’m having some problems. I’m currently programing on a linux machine (opensuse). Will shell32 still work in this scenario, if so does anyone know where the library should be located as I can’t find it on my PC to link to.
The other issue I potentially see is the way the program runs, as I said in shell you run the program then provide the arguments whereas all the examples I can find for shellexecute give arguments in the same call.
If there is a better solution available I’m open to it. Ideally this should work on windows and linux machines but if I had to choose I’d have to go for windows.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:39:08+00:00Added an answer on May 27, 2026 at 11:39 am

    shell32 is Windows-specific.

    One fairly portable way to run external executables is by using the system() call:

    SYNOPSIS
           #include <stdlib.h>
    
           int system(const char *command);
    

    Now, the executable that you wish to run has to be built for the operating system on which you’re trying to run it. If you want to run a Windows .exe file on Linux, you’re entering the realm of emulation (e.g. Wine) or virtualization (e.g. VirtualBox).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my problem. I have a program that has to run in a
I need to start a program from Windows Service. That program is a user
A problem that we need to solve regularly at my workplace is how to
I have an interesting SQL problem that I need help with. Here is the
Problem There are data gaps that need to be filled. Would like to avoid
The problem that I am having has to do with the need to keep
The problem is this: I have multiple competing threads (100+) that need to access
I've got a problem about onbeforeunload recently that I need to pop up a
I need to use something like get_or_create() but the problem is that I have
In my code I need to compare string letters but my problem is that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.