Click here to Skip to main content
16,020,103 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Thanks so much for your time and attention. I should note that I mislabeled my code. This is actually the tube material


"70-30 Cu-Ni", "90-10 Cu-Ni", "Admiralty Metal", "Aluminum Brass",
"Aluminum Bronze", "Arsenical Copper", "Cold-Rolled Low Carbon Steel", "Copper Iron 194 (Olin 194)",
"Titanium Grades 1 & 2", "304 SS", "316/317 SS", "N08367 (AL6XN)",
"S43035 (TP439)", "S44660 (Sea-Cure)", "S44735 (AL29-4C)"

versus the tube gauge {12, 14, 16, 18, 20, 22, 23, 24, 25};

Which when matched up in x, y matrix returns the HEI gauge correction factor.

On another note, I am tying to pass the tube gauge (int) and the tube material (string) from a VBA function:

Declare Function TSx Lib "C:/cnd_perf.dll" (arg1 As Integer, arg2 As String) As Double

and return the factor found in the array values you showed in your code (should be a double or a long) back to Excel, (and maybe later in another function return the tube material and gauge also.)

Problem is I can pass the VBA string to C++, but have had no success in checking it against the tube material values as shown above so I can get the correct lookup value between the material and the gauge.

I have tried char (with strcmp), BSTR, and std::string, but I am still not quite there
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 
AnswerRe: ReadFile() Problem Pin
David Crow31-Jan-11 4:55
David Crow31-Jan-11 4:55 
AnswerRe: ReadFile() Problem Pin
Cedric Moonen31-Jan-11 4:47
Cedric Moonen31-Jan-11 4:47 
GeneralRe: ReadFile() Problem Pin
goldenrose931-Jan-11 6:01
goldenrose931-Jan-11 6:01 
GeneralRe: ReadFile() Problem Pin
goldenrose931-Jan-11 18:43
goldenrose931-Jan-11 18:43 
GeneralRe: ReadFile() Problem Pin
Cedric Moonen31-Jan-11 20:17
Cedric Moonen31-Jan-11 20:17 
GeneralRe: ReadFile() Problem Pin
goldenrose931-Jan-11 20:59
goldenrose931-Jan-11 20:59 
GeneralRe: ReadFile() Problem Pin
Cedric Moonen31-Jan-11 21:05
Cedric Moonen31-Jan-11 21:05 
QuestionHDD access chaotic speed problem. Pin
progDes31-Jan-11 2:06
progDes31-Jan-11 2:06 

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.