Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: String array comparison Pin
David Crow1-Feb-11 8:51
David Crow1-Feb-11 8:51 
AnswerRe: String array comparison Pin
jsc421-Feb-11 23:36
professionaljsc421-Feb-11 23:36 
AnswerRe: String array comparison Pin
Niklas L31-Jan-11 12:31
Niklas L31-Jan-11 12:31 
GeneralRe: String array comparison Pin
jharn31-Jan-11 12:41
jharn31-Jan-11 12:41 
GeneralRe: String array comparison Pin
KP Lee1-Feb-11 2:22
KP Lee1-Feb-11 2:22 
GeneralRe: String array comparison Pin
jharn1-Feb-11 4:39
jharn1-Feb-11 4:39 
GeneralRe: String array comparison Pin
jharn1-Feb-11 5:04
jharn1-Feb-11 5:04 
GeneralRe: String array comparison Pin
KP Lee1-Feb-11 10:18
KP Lee1-Feb-11 10:18 
Going from vba to a strongly typed language explains a lot. The main complaint I have with your original vba version is that you expect the caller to be reasonable and accurate. I find it best to assume the caller is the exact opposite until proven otherwise. That is best even if the caller is yourself. Set bg and tp to -1 before starting the loop and check to make sure both are >= 0 before setting the double value.
You can set up a
double[][] vl_reg3 = {vl_reg12, vl_reg14, vl_reg16, vl_reg18, vl_reg20, vl_reg22, vl_reg23, vl_reg24, vl_reg25};
and use the same index formats in the new language as you did in the old vba code.
Don't appologize for being stubborn, that's a normal trait for a programmer. You have to be in order to be beaten down over and over again by the code you write and getting up and trying again. Just dial back the stubbornness when meeting other humans and listen. (That's something I have to watch out for.)
GeneralRe: String array comparison Pin
jharn1-Feb-11 10:40
jharn1-Feb-11 10:40 
GeneralRe: String array comparison Pin
jharn1-Feb-11 10:46
jharn1-Feb-11 10:46 
GeneralRe: String array comparison Pin
KP Lee1-Feb-11 14:00
KP Lee1-Feb-11 14:00 
AnswerRe: String array comparison [modified] Pin
Alain Rist2-Feb-11 7:07
Alain Rist2-Feb-11 7:07 
GeneralRe: String array comparison Pin
jharn2-Feb-11 14:45
jharn2-Feb-11 14:45 
GeneralRe: String array comparison Pin
Alain Rist2-Feb-11 20:30
Alain Rist2-Feb-11 20:30 
GeneralRe: String array comparison Pin
Alain Rist2-Feb-11 22:54
Alain Rist2-Feb-11 22:54 
GeneralRe: String array comparison Pin
jharn3-Feb-11 5:46
jharn3-Feb-11 5:46 
GeneralRe: String array comparison Pin
Alain Rist3-Feb-11 9:39
Alain Rist3-Feb-11 9:39 
AnswerRe: String array comparison Pin
Stuart Rubin1-Feb-11 3:22
Stuart Rubin1-Feb-11 3:22 
AnswerRe: String array comparison Pin
thomas.michaud1-Feb-11 5:57
thomas.michaud1-Feb-11 5:57 
AnswerRe: String array comparison Pin
MarvinMartian1-Feb-11 13:47
MarvinMartian1-Feb-11 13:47 
QuestionReadFile() Problem Pin
goldenrose931-Jan-11 4:12
goldenrose931-Jan-11 4:12 
AnswerRe: ReadFile() Problem Pin
David Crow31-Jan-11 4:18
David Crow31-Jan-11 4:18 
GeneralRe: ReadFile() Problem Pin
goldenrose931-Jan-11 4:32
goldenrose931-Jan-11 4:32 
AnswerRe: ReadFile() Problem Pin
David Crow31-Jan-11 4:44
David Crow31-Jan-11 4:44 
GeneralRe: ReadFile() Problem Pin
goldenrose931-Jan-11 4:51
goldenrose931-Jan-11 4:51 

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.