Converting from VB to VC++.  Is it worth the effort for more speed?

Posted on 2003-02-18
Medium Priority
Last Modified: 2013-11-20

I have a largish VB/Access application that I wish to redo in Visual c++ (Partly to see if I can and partly coz it's meant to be noticably faster).

Is this really the case?

I'm not interested in a is c++ better than vb, my dads bigger than yours thing.  I just want an experienced opinion on if the app was written in VC++, would it run any faster?  

It would be using ADO just like the VB app.

Is ADO the same whatever the language?????? or is VC++ faster?  It certainly is a lot more cryptic as far as the syntax is concerned.

I guess thats just coz I'm gettin to grips with VC++ but do you think that the extra effort in development time is worth it in comparison to the extra speed?

Cheers in advance.
Question by:slippers
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
LVL 48

Accepted Solution

AlexFM earned 200 total points
ID: 7979830
Writing in C++ doesn't mean that program becomes faster. VB produces native code exactly like C++. Database programming is the programming area where VC++ programmer has no advantages over VB programmer.
So, if you have VB database application working with Access, there is no reason to rewrite it.
Before you decide try to think what parts of your program run slowly - database access? memory access? graphics etc. Database access will get the same time in C++ program.

Expert Comment

ID: 7979996
when compare to vb VC++ coding is faster as it directly communicate with window calls. But to my knowledge when we are writting programms that communicate with database low level languages like c++ are not Require to make ur application faster design the better data base and use efficient procedures or function in ur VB application.

if u new to C++ it is little bit complicated for u b'coz that coding style of VC++ ADO is a bit differ from VB ADO.

So i suggest u to Design the better database and procedures.


Expert Comment

ID: 7985723
In database apps the performance bottleneck is almost always in interfacing with database.  This all depends on your database design.  C++ will give you no advantage whatsoever.  Use more indices in you database, convert from Access to SQL server, use stored procedures and triggers, etc.  Don't waste your time with C++.

(BTW I personally use C++ exclusively, and even when it comes to RAD prefer Borland Delphi and C++ Builder to MS VB.  So this is unbiased opinion.)

Author Comment

ID: 7990801
Cheers all !!!!

I kinda expected to hear that c++ is closer to the bare bones of ADO so it runs faster so earing that it doesn't make a difference in terms of speed is kind of refreshing.

Yup I think I'll stick with VB then. At least for the application.

I hear you all on the use of SQL Server and stored procedures but what can ya do when ya client's a cheap skate !!!!!

Once again cheers

Expert Comment

ID: 7996020
MSDE is a free alternative to SQL server.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

762 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