Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How assign Variant type of data to safe array? Pin
Iain Clarke, Warrior Programmer28-Sep-07 3:57
Iain Clarke, Warrior Programmer28-Sep-07 3:57 
AnswerRe: How assign Variant type of data to safe array? Pin
Matthew Faithfull28-Sep-07 4:51
Matthew Faithfull28-Sep-07 4:51 
QuestionHelp Needed Pin
Y_Kaushik28-Sep-07 3:17
Y_Kaushik28-Sep-07 3:17 
AnswerRe: Help Needed Pin
Hamid_RT28-Sep-07 3:36
Hamid_RT28-Sep-07 3:36 
GeneralRe: Help Needed Pin
Y_Kaushik28-Sep-07 3:47
Y_Kaushik28-Sep-07 3:47 
GeneralRe: Help Needed Pin
Hamid_RT28-Sep-07 8:14
Hamid_RT28-Sep-07 8:14 
QuestionTray and memory usage Pin
Leso28-Sep-07 1:02
Leso28-Sep-07 1:02 
QuestionDAO vs CFile // Which is faster? Pin
Nelek28-Sep-07 0:50
protectorNelek28-Sep-07 0:50 
Hi,

What do u think is faster to compare a secuence of BYTES that can has [192, 4096] positions?

My boss did it with two BYTE BufferX[4096], one to hold the actual project code and the other to hold the PLC saved code in order to compare both of them on the fly. And he has said that he wants it to be done in another way because the performance was very slow.

The secuence of bytes has a logical strructure and I have already the code to write it in a file, I write using tokens of different length according to the meaning and the configuration of the actual project. And the Plc should have the same bytes in the same order.

I thought to make it using the functions I already have (and work) to create an "AktualProject.pc" and get the secuence of the PLC and create an "OnlineProject.pc". Then open both of them and compare byte per byte doing an iteration till the end of the files. When a difference come... error.

But a partner has told me it may be faster with DAO. Writing my the actual code to a row (or a column), the online code to another row (or column, I don't know what will be better) and then compare the contents of both using database requests.

What do you think it is better? My boss priority is quickness of the programm, but I have never used DAO before.

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

AnswerRe: DAO vs CFile // Which is faster? Pin
David Crow28-Sep-07 2:29
David Crow28-Sep-07 2:29 
GeneralRe: DAO vs CFile // Which is faster? Pin
Nelek28-Sep-07 2:42
protectorNelek28-Sep-07 2:42 
GeneralRe: DAO vs CFile // Which is faster? Pin
David Crow28-Sep-07 2:46
David Crow28-Sep-07 2:46 
QuestionDll creation problem Pin
Karismatic28-Sep-07 0:26
Karismatic28-Sep-07 0:26 
AnswerRe: Dll creation problem Pin
Nelek28-Sep-07 0:30
protectorNelek28-Sep-07 0:30 
GeneralRe: Dll creation problem Pin
Karismatic28-Sep-07 0:40
Karismatic28-Sep-07 0:40 
GeneralRe: Dll creation problem Pin
Nelek28-Sep-07 0:51
protectorNelek28-Sep-07 0:51 
AnswerRe: Dll creation problem Pin
Sachinpatole28-Sep-07 1:27
Sachinpatole28-Sep-07 1:27 
QuestionEnable Spinbutton ctrl Pin
rajaratk27-Sep-07 23:51
rajaratk27-Sep-07 23:51 
AnswerRe: Enable Spinbutton ctrl Pin
Russell'28-Sep-07 0:29
Russell'28-Sep-07 0:29 
GeneralRe: Enable Spinbutton ctrl Pin
rajaratk28-Sep-07 1:53
rajaratk28-Sep-07 1:53 
QuestionRe: Enable Spinbutton ctrl Pin
David Crow28-Sep-07 2:32
David Crow28-Sep-07 2:32 
AnswerRe: Enable Spinbutton ctrl Pin
Iain Clarke, Warrior Programmer28-Sep-07 4:03
Iain Clarke, Warrior Programmer28-Sep-07 4:03 
QuestionHow to convert a CString to WCHAR? Pin
TooShy2Talk27-Sep-07 23:42
TooShy2Talk27-Sep-07 23:42 
AnswerRe: How to convert a CString to WCHAR? Pin
Naveen27-Sep-07 23:56
Naveen27-Sep-07 23:56 
AnswerRe: How to convert a CString to WCHAR? Pin
Russell'28-Sep-07 0:19
Russell'28-Sep-07 0:19 
AnswerRe: How to convert a CString to WCHAR? Pin
David Crow28-Sep-07 2:34
David Crow28-Sep-07 2:34 

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.