Computing.Net > Forums > Programming > Which prog. lang. should I choose?

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Which prog. lang. should I choose?

Reply to Message Icon

Original Message
Name: BluesMatt
Date: November 13, 2006 at 13:18:12 Pacific
Subject: Which prog. lang. should I choose?
OS: Win 98 thru XP
CPU/Ram: 80386 or higher
Comment:

I am interested in writing some multimedia type applications which display graphics and play synchronized sound (MIDI or .wav). I'd like these programs to run under Win 98 thru Win XP. I am trying to decide on a programming language.

I've used other languages in the past, first under DOS and then under Windows. I can't say that I've found a language that does everything that I need and doesn't require 5 years of full-time to learn and use effectively.

I have used VB4-VB6 before and found it easy to construct the user interface but was disappointed in the speed of program execution. It has also sometimes been frustrating trying to figure out what the compiled code was trying to get the hardware to do.

I've flirted with the idea of learning VC, but the learning curve scares me.

I'm looking at PowerBASIC now. I've heard of RealBASIC but have never tried it.

In the end, I want to create a single .exe file that runs under Windows 98 thru XP. I suppose ultimate power comes from calls to the Win API (but I'm not sure).

Any advice would be greatly appreciated.

thanks


Report Offensive Message For Removal


Response Number 1
Name: StuartS
Date: November 13, 2006 at 13:49:40 Pacific
Reply: (edit)

If you want to talk directly to the hardware any version of BASIC is not the answer.

To get any application to work under all version of Windows from Win98 to WinXP you are going to have to compile the application under those OS's That is the way it is. There is to many differences between the OS for an application to be able to run under all of them. It has nothing to do with the language you use, just the different way the different OSs work.

Stuart


Report Offensive Follow Up For Removal

Response Number 2
Name: BluesMatt
Date: November 14, 2006 at 06:08:01 Pacific
Reply: (edit)

Thanks for your reply.

I was hoping that if I used a compiler designed to produce code that will run under Win98, that that code would run on any Win ver that followed. I was hoping that the newer versions of Win were somewhat backward compatible. Am I wrong about that?


Report Offensive Follow Up For Removal

Response Number 3
Name: StuartS
Date: November 14, 2006 at 11:12:03 Pacific
Reply: (edit)

There is a limit to backward compatibility, especially when it comes to using the API. There are some APIs that will only work under Windows 98. There are some that are specific to Windows 2000/XP.

Some of the numerous DLLs you will be using will have different entry points, some entry points won't exist between different versions of Windows.

Some of the differences are so subtle that you only realise it when the application crashes. You are more likely to have success running an application compiled under Window XP and run on Windows 98, but even that can throw up incompatibilities.

A lot of applications will run on all versions of Windows, depends on what the application does. There is only one way to make sure it will run on all versions and that is to test it on all versions.

Stuart


Report Offensive Follow Up For Removal

Response Number 4
Name: DJH
Date: January 3, 2007 at 11:41:43 Pacific
Reply: (edit)

If you are looking for better compatibility across all Window's releases and faster execution (than VB) it may be a good idea to move to a compiled language such as Delphi or VC++.

You may also want to consider using the .NET Framework with VB.NET or C#.NET for faster execution and this does not have the steep learning curve of VC++ however programs you write (with .NET 2.0) will not be compatible with the 9X OS releases.


Report Offensive Follow Up For Removal

Response Number 5
Name: StuartS
Date: January 3, 2007 at 12:34:43 Pacific
Reply: (edit)

>> If you are looking for better compatibility across all Window's releases and faster execution (than VB) it may be a good idea to move to a compiled language such as Delphi or VC++. <<

VB is a compiled language so that is not the problem. VB6 as the option to compile to token format as of old or compile to native code the same as C++.

Only badly written VB programmes run slowly. A well written VB application is only marginally slower than one written in C++ or Delphi. Most non-trivial VB applications spend 80% of their time running code written in C++.

As stated earlier, it is the DLLs that are the problem and that applies to all Windows programming environments.

Stuart


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software