Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: conversion confusion... Pin
mekanoo25-Jun-05 2:32
mekanoo25-Jun-05 2:32 
GeneralWorking with Media Files Pin
Adeel68823-Jun-05 20:51
Adeel68823-Jun-05 20:51 
GeneralCFile---reda write Pin
a_du23-Jun-05 20:02
a_du23-Jun-05 20:02 
GeneralRe: CFile---reda write Pin
ThatsAlok23-Jun-05 21:14
ThatsAlok23-Jun-05 21:14 
GeneralRe: CFile---reda write Pin
Priyank Bolia23-Jun-05 21:29
Priyank Bolia23-Jun-05 21:29 
GeneralCOMPARE 2 Strings Pin
ana_bahy23-Jun-05 20:02
ana_bahy23-Jun-05 20:02 
GeneralRe: COMPARE 2 Strings Pin
Maxwell Chen23-Jun-05 20:32
Maxwell Chen23-Jun-05 20:32 
GeneralRe: COMPARE 2 Strings Pin
Weiye Chen23-Jun-05 20:36
Weiye Chen23-Jun-05 20:36 
One way would be to copy out the 10 characters in each string before comparing
char szStr1[11], szStr2[11];
 
// Copy first 10 characters
strncpy(szStr1, string1, 10);
strncpy(szStr2, string2, 10);
 
// Append null terminating character
szStr1[10] = '\0';
szStr2[10] = '\0';
 
// Start comparing
if(strcmp(szStr1, szStr2) == 0)
{
   // They are equal
}


<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
GeneralRe: COMPARE 2 Strings Pin
ana_bahy23-Jun-05 20:42
ana_bahy23-Jun-05 20:42 
GeneralRe: COMPARE 2 Strings Pin
toxcct23-Jun-05 20:49
toxcct23-Jun-05 20:49 
GeneralRe: COMPARE 2 Strings Pin
ana_bahy23-Jun-05 20:58
ana_bahy23-Jun-05 20:58 
GeneralRe: COMPARE 2 Strings Pin
toxcct23-Jun-05 21:00
toxcct23-Jun-05 21:00 
GeneralRe: COMPARE 2 Strings Pin
ana_bahy23-Jun-05 21:14
ana_bahy23-Jun-05 21:14 
GeneralRe: COMPARE 2 Strings Pin
Maxwell Chen23-Jun-05 21:14
Maxwell Chen23-Jun-05 21:14 
GeneralRe: COMPARE 2 Strings Pin
GDavy23-Jun-05 21:15
GDavy23-Jun-05 21:15 
GeneralRe: COMPARE 2 Strings Pin
ana_bahy23-Jun-05 21:25
ana_bahy23-Jun-05 21:25 
GeneralEntry and exit (When Exit its does entry) Pin
Cillieacc0rd5o423-Jun-05 19:46
Cillieacc0rd5o423-Jun-05 19:46 
GeneralRe: Entry and exit (When Exit its does entry) Pin
ThatsAlok23-Jun-05 22:52
ThatsAlok23-Jun-05 22:52 
Questionis this a memory leak? Pin
Hums23-Jun-05 19:02
Hums23-Jun-05 19:02 
AnswerRe: is this a memory leak? Pin
Weiye Chen23-Jun-05 19:20
Weiye Chen23-Jun-05 19:20 
QuestionHow to find the missing samples in PCM or Sine Wave Pin
jag_kgp23-Jun-05 19:01
jag_kgp23-Jun-05 19:01 
GeneralImage Transformation Pin
ThatsAlok23-Jun-05 18:40
ThatsAlok23-Jun-05 18:40 
GeneralGetFont Pin
Veera Raghavendra23-Jun-05 18:33
Veera Raghavendra23-Jun-05 18:33 
GeneralRe: GetFont Pin
ThatsAlok23-Jun-05 18:45
ThatsAlok23-Jun-05 18:45 
GeneralPLZ HELP Pin
ana_bahy23-Jun-05 16:56
ana_bahy23-Jun-05 16:56 

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.