Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Compare Two XML Files Pin
Shivanand Gupta2-Jan-11 20:46
Shivanand Gupta2-Jan-11 20:46 
QuestionGetting various errors !!! Pin
AmbiguousName30-Dec-10 8:13
AmbiguousName30-Dec-10 8:13 
AnswerRe: Getting various errors !!! Pin
«_Superman_»30-Dec-10 13:02
professional«_Superman_»30-Dec-10 13:02 
AnswerRe: Getting various errors !!! Pin
ShilpiP30-Dec-10 18:04
ShilpiP30-Dec-10 18:04 
QuestionEVENTS : Inter Process Communication failed between Windows XP and RTOS Pin
pandit8430-Dec-10 3:24
pandit8430-Dec-10 3:24 
AnswerRe: EVENTS : Inter Process Communication failed between Windows XP and RTOS Pin
«_Superman_»30-Dec-10 7:16
professional«_Superman_»30-Dec-10 7:16 
AnswerRe: EVENTS : Inter Process Communication failed between Windows XP and RTOS Pin
Joe Woodbury30-Dec-10 8:18
professionalJoe Woodbury30-Dec-10 8:18 
QuestionDatabase question Pin
MacRaider430-Dec-10 2:32
MacRaider430-Dec-10 2:32 
First I want to say that I am 100 pages into Beginning Visual C++, so I have basically no exp. All of my programming has been VB, C# and if you are over on the PHP side you'll notice I'm starting that and not very good yet Laugh | :laugh:
Anyways, this is the problem we have where I work. We are moving from Visual Studio 6 to 2010 (slight jump) and are running into some problems with speed. For example I can write a app in VB to read from a database and put the data into a DataSet in about .4 seconds. To do a similar operation in C++ is taking 5 seconds (not .5 but 5).
VB Code is as follows to fill the dataset
sqlString = "SELECT * FROM attyesqs"

da = New SqlDataAdapter(sqlString, objConnection.cnn)
da.Fill(ds, "Debts")

If you know VB we are talking very simple and it works well.

However our other programmer who is trying to get similar performance out of a MFC app is running into the problem of it being 4.5 seconds slower. He is using a DSN and ODBC

not being familiar enough with C++ I don't know what part to post here, but the connection he is using is as follows:
CDatabase cd;
CRecordset sourcers(&cd);
CString DSNString = _T("DSN=dsnName;UID=user;PWD=password;"), SQLString = _T("SELECT AttyLastName, AttyFirstName FROM ATTYESQS");

I'm actually grabbing more columns in my query but that shouldn't matter much, I think it's only like 2 or 3 more. With VB and C# things have changed greatly in the last 10 years, is there now a better way to do this in C++/MFC? I can try to answer any questions you may have, and as always thank you in advance!
AnswerRe: Database question Pin
T210230-Dec-10 2:47
T210230-Dec-10 2:47 
GeneralRe: Database question Pin
MacRaider430-Dec-10 2:53
MacRaider430-Dec-10 2:53 
GeneralRe: Database question Pin
T210230-Dec-10 14:06
T210230-Dec-10 14:06 
QuestionRe: Database question Pin
MacRaider430-Dec-10 4:43
MacRaider430-Dec-10 4:43 
AnswerRe: Database question Pin
trelliot31-Dec-10 0:30
trelliot31-Dec-10 0:30 
AnswerRe: Database question Pin
jschell31-Dec-10 8:11
jschell31-Dec-10 8:11 
GeneralRe: Database question Pin
MacRaider41-Jan-11 6:42
MacRaider41-Jan-11 6:42 
GeneralRe: Database question Pin
jschell1-Jan-11 8:28
jschell1-Jan-11 8:28 
QuestionQuery for non-dockable toolbar. Pin
Le@rner29-Dec-10 22:12
Le@rner29-Dec-10 22:12 
AnswerRe: Query for non-dockable toolbar. Pin
jk chan30-Dec-10 1:45
jk chan30-Dec-10 1:45 
Questionintegrating C in C++ MFC Pin
Stevefigo229-Dec-10 21:22
Stevefigo229-Dec-10 21:22 
QuestionRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 21:26
mveCPallini29-Dec-10 21:26 
AnswerRe: integrating C in C++ MFC Pin
Stevefigo229-Dec-10 21:55
Stevefigo229-Dec-10 21:55 
GeneralRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 22:11
mveCPallini29-Dec-10 22:11 
GeneralRe: integrating C in C++ MFC Pin
Stevefigo229-Dec-10 22:32
Stevefigo229-Dec-10 22:32 
GeneralRe: integrating C in C++ MFC Pin
CPallini29-Dec-10 22:52
mveCPallini29-Dec-10 22:52 
AnswerRe: integrating C in C++ MFC Pin
jk chan29-Dec-10 21:38
jk chan29-Dec-10 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.