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

  • Home
  • SEARCH
  • 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 6006667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:34:21+00:00 2026-05-23T01:34:21+00:00

I have a program that runs in the Win32 environment. There is one variable

  • 0

I have a program that runs in the Win32 environment. There is one variable that I would like to set before the program begins. The only reason it is a Win32 program is because I am accessing serial ports. I don’t care how I input the variable – it is a number and I suppose a dialog edit box would be best – but I don’t know how to go about this with Win32!

Ignoring the bulk of the program, my code is as follows:

#include <windows.h>

//Initialise Windows module
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)

{
 int variable;

 //ACTION USING THE VARIABLE OCCURS HERE

 return 0;
}
  • 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-23T01:34:22+00:00Added an answer on May 23, 2026 at 1:34 am

    To access serial port, you don’t need windows application. You can create a simple console based application, it will be a still win32 by architecture.

    The advantages being using a console application would that you could use ‘C’ style scanf or C++ style cin to read the input from user.

    For the windows application, you need to create a dialog with text box in it and Show the window and wait for user to input, let user to press a ‘OK’ button or enter.. thats a lot of process..

    Just write a console application.. That will do.. Otherwise use MFC..

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

Sidebar

Related Questions

I have a program that runs in Python 2 and Python 3, but there
I have a program that runs osql.exe from microsoft sql server tools directory and
I have a cross platform program that runs on Windows, Linux and Macintosh. My
I have a Visual Studio 2005 C++ program that runs differently in Release mode
I have a PHP script that runs as a CGI program and the HTTP
I have a bash script that runs a simulation program written in Fortran 90,
I have a program that runs fine on MacOS and Linux and cross-compiles to
I have a program that runs as a Windows Service which is processing files
I have a program that runs the checked items from a ListView control. These
I have a Python program that runs a cell model continuously. when I press

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.