473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C++ Question about its possibilites to XP..

I was thinking of learning C++ to really understand computer
programming. A lot of my friends tell me that C++ is faster and good
quality. My question is can C++ create Windows Applications? For
Windows XP? or is C++ limited to open source applications, command
prompt applications? Is it possible to create a real-time application
for Microsoft Windows using C++? I can't seem to find the answer using
keywords in my search engine. I am a bit confused.

Jul 22 '05 #1
12 1235
"pachanga" <qu*******@yahoo.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com...
I was thinking of learning C++ to really understand computer
programming. A lot of my friends tell me that C++ is faster and good
quality. My question is can C++ create Windows Applications? For
Windows XP? or is C++ limited to open source applications, command
prompt applications? Is it possible to create a real-time application
for Microsoft Windows using C++? I can't seem to find the answer using
keywords in my search engine. I am a bit confused.


If this helps answer your question, most applications (e.g. MS Office)
written by Microsoft are primarily written in C++. Microsoft fully
supports C++ for programming any interfaces provided by its operating
system.

However, the standard C++ language and libraries themselves do not
include the ability to program graphical user interfaces. Instead,
you need to use one of the many C++-compatible libraries that
are available (some are vendor-specific, some cross-platform).

For real-time applications, C++ is definitely a good choice.
For user interface programming itself, however, there are
languages that are easier to use: C# for MS.NET programming ;
java, which includes its own libraries for GUI programming ;
Python with TkInter or wxPython ; etc.
hth,
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com

Jul 22 '05 #2
would it be possible to use C++ has my core coding for a real-time
application and use C# for the user interface? user-interface (would be
the way it looks, buttons, windows form) but use C++ has my core coding
behind the curtain?

Jul 22 '05 #3
pachanga wrote:
I was thinking of learning C++ to really understand computer
programming. A lot of my friends tell me that C++ is faster and good
quality. Faster than what? Assembly, LISP, Basic, FORTRAN, COBOL, etc.?
My question is can C++ create Windows Applications? Yes, one can write a program in C++ to create Windows applications on
different platforms, provided that those platforms support windowing.
For Windows XP? Probably, but ask in a Microsoft newsgroup. See the welcome.txt
link below.
or is C++ limited to open source applications, command prompt
applications? The usage of C++ is only limited to the platforms that have a
compiler for it. C++ can be used for vending machine applications,
VCRs, Dishwashers, and tape drives. Windows are not the only
platform in the world.
Is it possible to create a real-time application for Microsoft
Windows using C++? Depends on the Windows operating system and the other applications
that it is executing. A real-time program can be written in any
language. The operating system doesn't care what language the
program was written in. The operating system is responsible
for executing programs in a timely fashion. The program is
responsible for accomplishing tasks within the time limits.
I can't seem to find the answer using
keywords in my search engine. I am a bit confused.

To lessen your confusion, look up the following phrases
or words at http://foldoc.doc.ic.ac.uk/foldoc/index.html
real time
operating system
application
open source
platform
--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 22 '05 #4
On Wed, 15 Dec 2004 11:53:45 UTC, "pachanga" <qu*******@yahoo.com> wrote:
would it be possible to use C++ has my core coding for a real-time
application and use C# for the user interface? user-interface (would be
the way it looks, buttons, windows form) but use C++ has my core coding
behind the curtain?


That is an acceptable partitioning of the problem. Many languages
can be linked together and run as a single unit. While we all have our
favorite languages, it is good to remember that there are problems that
may better fit other tools and we should not be afraid to explore using
them. Of course, there is a certain ramp up time to becoming competant
in a new tool so just becuase it seems to be the right thing to use,
might not mean that is acceptable for the desired project.

Have fun with your project,

David
-- C++, C, Forth, Assembler for most of my current projects
-- Stopped counting after using 40+ languages
Jul 22 '05 #5
"pachanga" <qu*******@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
would it be possible to use C++ has my core coding for a real-time
application and use C# for the user interface? user-interface (would be
the way it looks, buttons, windows form) but use C++ has my core coding
behind the curtain?


Yes. If you use the .NET platform (which C# requires), the same
development environment allows you to easily compile other parts
of your project in C++.
Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Jul 22 '05 #6
On 15 Dec 2004 03:20:47 -0800, "pachanga" <qu*******@yahoo.com> wrote
in comp.lang.c++:
I was thinking of learning C++ to really understand computer
programming. A lot of my friends tell me that C++ is faster and good
quality. My question is can C++ create Windows Applications? For
Windows XP? or is C++ limited to open source applications, command
prompt applications? Is it possible to create a real-time application
for Microsoft Windows using C++? I can't seem to find the answer using
keywords in my search engine. I am a bit confused.


It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #7
It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.


I second that.
And depending on what you call realtime you can also state that it's
impossible to write realtime applications for generic off-the-shelf PCs
regardless of the OS and/or compiler/language used :-) (google: SMI
system management interrupt realtime)

Sorry for the OT part...

Now to the C++ part. Yes, C++ can be used to write any kind of
windows-software (including kernelmode-drivers) and of course "real"
applications with nifty windows and stuff. Games, Browsers, Virus',
whatever you like. And your C++ app can be just about as much "realtime"
as it can get with windows - soley depending on your skill and training.

'monster
Jul 22 '05 #8


Jack Klein wrote:
On 15 Dec 2004 03:20:47 -0800, "pachanga" <qu*******@yahoo.com> wrote
in comp.lang.c++:
I was thinking of learning C++ to really understand computer
programming. A lot of my friends tell me that C++ is faster and good
quality. My question is can C++ create Windows Applications? For
Windows XP? or is C++ limited to open source applications, command
prompt applications? Is it possible to create a real-time application
for Microsoft Windows using C++? I can't seem to find the answer using
keywords in my search engine. I am a bit confused.
It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.


not at the application level. I've heard of people writing system code
(probably at the driver level) to take over the system and give precedence
to their own code at the expense of everything else in the system.

Besides, real time is in the eye of the beholder. The only expectation for
defining something as real time is whether the time it takes to complete a
program task is less than the time it is required to be completed in. So I
could design a program that I can give 10000 years to complete due to the
design constraints, and even if I think it will only take x months, if it
finishes any time before the 10000 year mark it is considered to have
completed in real time. 'real time' does NOT equate directly to 'fast
response time'.

David

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html

Jul 22 '05 #9
On Thu, 16 Dec 2004 04:27:10 +0100, Swampmonster wrote:
I second that.
And depending on what you call realtime you can also state that it's
impossible to write realtime applications for generic off-the-shelf PCs
regardless of the OS and/or compiler/language used :-) (google: SMI
system management interrupt realtime)


Hmm. What about RTLinux or RTAI? What makes those non-realtime, in your
mind? Seems some of the world's best engineers rely on RTOS's for IA32
architectures when developing realtime control applications.. if it's good
enough for them, i would say that yes, you CAN do realtime on COTS
hardware.

However, yes, without modifications, the Windows family of OS's is generic
and non hard-realtime.

Jul 22 '05 #10
"Jack Klein" <ja*******@spamcop.net> wrote in message
news:52********************************@4ax.com...
On 15 Dec 2004 03:20:47 -0800, "pachanga" <qu*******@yahoo.com> wrote
in comp.lang.c++:
<<SNIPPED>> It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.


Based on your response to the original poster's statement, can your
elaborate a bit on the following PDF document located at
http://global.mitsubishielectric.com...l82/82r&d1.pdf on the
World Wide Web. Given that I am not well learned in the area of real-time
computing, processing, or programming, I am interested in learning more on
this subject in relation to programming in the C++ language.

Thank you and have a g'day.
Jul 23 '05 #11
C++ Programmer wrote:
It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.

Based on your response to the original poster's statement, can your
elaborate a bit on the following PDF document located at
http://global.mitsubishielectric.com...l82/82r&d1.pdf on the
World Wide Web. Given that I am not well learned in the area of real-time
computing, processing, or programming, I am interested in learning more on
this subject in relation to programming in the C++ language.

Thank you and have a g'day.


Real-time applications are broadly divided into two types, "hard" and
"soft".

Hard real-time requires that a function be performed within a specified
time deadline, absolutely all the time. This is not possible in
Windows, by design, because the user can run unknown multiple processes
that compete for the CPU time.

Soft real-time requires that a function be performed, on average and
usually, within a desired deadline. It is possible to do this in
Windows, and even more so with the help of specialized device drivers.
For example, playing an audio file is a real-time operation. It is
possible, but unlikely, that there will be pauses in the sound output if
the user does something like startup MS Flight Simulator.

--
Scott McPhillips [VC++ MVP]

Jul 23 '05 #12
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:Ls********************@comcast.com...
C++ Programmer wrote:
It is NOT possible to create real-time applications for Microsoft
Windows, period. Regardless of programming language.

Based on your response to the original poster's statement, can your
elaborate a bit on the following PDF document located at
http://global.mitsubishielectric.com...l82/82r&d1.pdf on the
World Wide Web. Given that I am not well learned in the area of real-time
computing, processing, or programming, I am interested in learning more
on this subject in relation to programming in the C++ language.

Thank you and have a g'day.


Real-time applications are broadly divided into two types, "hard" and
"soft".

Hard real-time requires that a function be performed within a specified
time deadline, absolutely all the time. This is not possible in Windows,
by design, because the user can run unknown multiple processes that
compete for the CPU time.

Soft real-time requires that a function be performed, on average and
usually, within a desired deadline. It is possible to do this in Windows,
and even more so with the help of specialized device drivers. For example,
playing an audio file is a real-time operation. It is possible, but
unlikely, that there will be pauses in the sound output if the user does
something like startup MS Flight Simulator.

--
Scott McPhillips [VC++ MVP]


Thank you for sharing your knowledge in this particular area given that I
was not aware of the differences in 'hard' vs 'soft' real-time concepts.
Hence, I understand the original statement posted much better at this point
in time. So, the best case scenario for Windows would be a pseudo real-time
system so-to-speak, agreed? In other words, it's not a recommended choice if
designing a mission-critical system, correct?

Thanks again and have a g'day.
Jul 23 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
8
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
by: eScrewDotCom | last post by:
www.eScrew.com eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is...
0
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
7
by: Edward Yang | last post by:
A few days ago I started a thread "I think C# is forcing us to write more (redundant) code" and got many replies (more than what I had expected). But after reading all the replies I think my...
2
by: blue_i | last post by:
Please tell me that how can i add the Triangle code in WM_PAINT i tried but failed. please this problem #include <windows.h> int APIENTRY WinMain(HINSTANCE hInstance, ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.