Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HRESULT and SetLastError Pin
Tim Deveaux18-Feb-01 4:12
Tim Deveaux18-Feb-01 4:12 
GeneralRe: HRESULT and SetLastError Pin
PJ Arends19-Feb-01 6:41
professionalPJ Arends19-Feb-01 6:41 
GeneralRe: HRESULT and SetLastError Pin
Tim Deveaux19-Feb-01 13:10
Tim Deveaux19-Feb-01 13:10 
QuestionHow does..... Pin
17-Feb-01 12:47
suss17-Feb-01 12:47 
AnswerRe: How does..... Pin
Tim Deveaux17-Feb-01 13:15
Tim Deveaux17-Feb-01 13:15 
QuestionEnumerate Toolbars? Pin
17-Feb-01 11:01
suss17-Feb-01 11:01 
AnswerRe: Enumerate Toolbars? Pin
Tim Deveaux17-Feb-01 13:29
Tim Deveaux17-Feb-01 13:29 
Generalcomparison code not working ... Pin
17-Feb-01 6:56
suss17-Feb-01 6:56 
The following are defined global:
char *CmdTable[] = {"quit", "help"};
char *args[10];

I have a function called Search as follows:
int Search()
{
int iResult = -1;
int iEnd = 1;
int iCount = 0;

while (iCount <= iEnd)
{
if (args[0] == CmdTable[iCount]) return iCount;
iCount++;
}

return iResult;
}

and in main I call the function like this:
int iNum = Search();

Now, when going through the Search function and both args[0] and CmdTable[iCount] are equal to eachother it skips right over it as if they are not ... anybody know why that happens? I'm completely lost here because it should work!!

Thanks in advance, James
GeneralRe: comparison code not working ... Pin
Anders Molin17-Feb-01 7:43
professionalAnders Molin17-Feb-01 7:43 
GeneralRe: comparison code not working ... Pin
17-Feb-01 13:04
suss17-Feb-01 13:04 
GeneralRe: comparison code not working ... Pin
17-Feb-01 13:04
suss17-Feb-01 13:04 
QuestionHow can I get the host's name and it's workgroup name by it's ip address? under windows2k Pin
17-Feb-01 6:29
suss17-Feb-01 6:29 
GeneralExit Application Function - HELP! Pin
James Bird17-Feb-01 5:49
James Bird17-Feb-01 5:49 
GeneralRe: Exit Application Function - HELP! Pin
l a u r e n17-Feb-01 5:58
l a u r e n17-Feb-01 5:58 
GeneralRe: Exit Application Function - HELP! Pin
Tim Deveaux17-Feb-01 13:50
Tim Deveaux17-Feb-01 13:50 
GeneralActiveX ArdioButton Control Pin
17-Feb-01 0:15
suss17-Feb-01 0:15 
GeneralAutomatically Show a tooltip Pin
Sachin16-Feb-01 23:37
Sachin16-Feb-01 23:37 
Generalzooming in view Pin
16-Feb-01 23:21
suss16-Feb-01 23:21 
Generalzooming in view Pin
16-Feb-01 23:21
suss16-Feb-01 23:21 
GeneralRe: zooming in view Pin
Juan Carlos Cobas17-Feb-01 1:04
Juan Carlos Cobas17-Feb-01 1:04 
GeneralAdd text to title of MainFrame Pin
Starodubtsev Sergey16-Feb-01 20:19
Starodubtsev Sergey16-Feb-01 20:19 
GeneralRe: Add text to title of MainFrame Pin
Christian Graus16-Feb-01 20:24
protectorChristian Graus16-Feb-01 20:24 
GeneralRe: Add text to title of MainFrame Pin
Ed Dixon16-Feb-01 20:48
Ed Dixon16-Feb-01 20:48 
GeneralRe: Add text to title of MainFrame Pin
Michael Dunn16-Feb-01 21:19
sitebuilderMichael Dunn16-Feb-01 21:19 
QuestionHow to lauch Direct Cable connection Programmatically. Pin
16-Feb-01 12:42
suss16-Feb-01 12:42 

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.