Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Learning to Program Advice

Posted on 2011-03-14
5
288 Views
Last Modified: 2012-05-11
I have a client who is running a FoxPro database and I am learning to program.  They want a small program that sits on the screen and displays the formatted results of a query refreshed at intervals through the day.  I had previously though a C program would do this nicely, but I though before I went and started learning C, maybe I would ask the experts what language they thought would be the best for this.  

I have learned a lot of PHP and some ASP, but never tackled something like C.  I thought this would be a good project to get me started.
0
Comment
Question by:hydrazi
5 Comments
 
LVL 33

Accepted Solution

by:
sarabande earned 125 total points
ID: 35130328
if you know about php and asp maybe java or c# is the easier way for you and give better result for the client.

if you want to go more into direction of C  i would suggest for c++ and gui libraries like qt, windows forms or mfc.

Sara
0
 
LVL 27

Assisted Solution

by:dpearson
dpearson earned 125 total points
ID: 35135280
C++ is a perfectly reasonable choice for this.  It's still the language of choice for many desktop applications.

Java and C# are great choices if you want to buff up your web skills, but if you learn C++ your skills as a developer will be strengthened considerably because it's a harder language to learn than any of the others you'd encountered so far.  The main difference is you need to take over managing memory yourself - which means understanding what a pointer really does, how to allocate memory, when to free it and how to do that all safely.

I wouldn't learn C specifically.  C++ is a better choice in 99% of cases.  Once you know C++ you'll easily be able to read C code if you encounter it, but it'll teach you much better programming practices (like Object Oriented Development) than learning C would.

Good luck!

Doug
0
 
LVL 7

Assisted Solution

by:JimBeveridge
JimBeveridge earned 125 total points
ID: 35144353
A C/C++ program can certainly do the work, but dealing with databases (ODBC) in C/C++ is a challenge even for a C/C++ developer with a fair amount of experience. You need to deal with ODBC, MDAC, SQL drivers - it's really a challenge if you don't have someone who can show you the ropes.  It definitely is not a beginner's project.

Also, be warned that FoxPro is a dead product. Microsoft announced several years ago that there will be no more updates for it. Don't spend a lot of time learning it to get this project done.

(And don't think I'm anti-C++. I'm a Microsoft MVP in Visual C++.)
0
 
LVL 11

Assisted Solution

by:cup
cup earned 125 total points
ID: 35163251
Have you ever thought of using AJAX with PHP?  You can grab the data off your source and redisplay it without any timers or even flickering on the screen.  It is just a standard ODBC interface which will work as long as there is an ODBC driver for your database.

Alternatively, convert the Foxpro database to SQLite.  SQLite is built into PHP so you don't need to install anything: just enable it in the php.ini file.

Nothing against C if you wish to learn it.  You could do it both ways and see which one is easier to maintain.
0
 

Author Closing Comment

by:hydrazi
ID: 35342341
Many thanks!  I believe we need to basically FIT INTO the customers environment.  So we are actually going to do it in C++ and then make a similar one in Java to illustrate language differences.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question