Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to broadcast in same LAN with Socket? Pin
markkuk9-Jul-01 20:49
markkuk9-Jul-01 20:49 
QuestionTemplates errors I found and fix. But a quest...Why the errors? Pin
CMFC6.0VS.NETUser9-Jul-01 18:33
CMFC6.0VS.NETUser9-Jul-01 18:33 
AnswerRe: Templates errors I found and fix. But a quest...Why the errors? Pin
9-Jul-01 19:36
suss9-Jul-01 19:36 
GeneralRe: Templates errors I found and fix. But a quest...Why the errors? Pin
9-Jul-01 21:55
suss9-Jul-01 21:55 
AnswerRe: Templates errors I found and fix. But a quest...Why the errors? Pin
CMFC6.0VS.NETUser10-Jul-01 4:46
CMFC6.0VS.NETUser10-Jul-01 4:46 
GeneralCArchive Pin
XioPeng9-Jul-01 14:52
XioPeng9-Jul-01 14:52 
GeneralRe: CArchive Pin
markkuk9-Jul-01 20:57
markkuk9-Jul-01 20:57 
GeneralQuick question Pin
RobJones9-Jul-01 12:48
RobJones9-Jul-01 12:48 
Hello,
I am parsing through a long string and pulling out info between two quotes.. everything works great but when I compile the program I get four
warnings..

warning C4305: 'argument' : truncation from 'const int' to 'char'
warning C4309: 'argument' : truncation of constant value
warning C4305: 'argument' : truncation from 'const int' to 'char'
warning C4309: 'argument' : truncation of constant value

Heres a sample of the code..
int nMyIndex, nFirstQuoteIndex, nSecondQuoteIndex;
nMyIndex = strSource.Find(_T("key"));
nFirstQuoteIndex = strSource.Find('""', nMyIndex);
nSecondQuoteIndex = strSource.Find('""', nFirstQuoteIndex+1);
m_strKey = strSource.Mid(nFirstQuoteIndex+1, nSecondQuoteIndex-nFirstQuoteIndex-1);

Is there a way to keep the compiler from having a fit? Should I not worrie about it?
Should I parse the string differently?

Any suggestions would be appreciated.

Thanks,
Rob Jones
GeneralRe: Quick question Pin
Ben Burnett9-Jul-01 19:50
Ben Burnett9-Jul-01 19:50 
GeneralRe: Quick question Pin
RobJones10-Jul-01 5:06
RobJones10-Jul-01 5:06 
GeneralBeginner's Question Pin
Sara9-Jul-01 11:45
Sara9-Jul-01 11:45 
GeneralRe: Beginner's Question Pin
Ben Burnett9-Jul-01 12:07
Ben Burnett9-Jul-01 12:07 
GeneralRe: Beginner's Question Pin
10-Jul-01 0:04
suss10-Jul-01 0:04 
GeneralRe: Beginner's Question Pin
Masaaki Onishi9-Jul-01 14:01
Masaaki Onishi9-Jul-01 14:01 
GeneralMP3 reading Pin
Matt Newman9-Jul-01 11:09
Matt Newman9-Jul-01 11:09 
GeneralRe: MP3 reading Pin
Christian Graus9-Jul-01 12:38
protectorChristian Graus9-Jul-01 12:38 
GeneralRe: MP3 reading Pin
Matt Newman9-Jul-01 15:47
Matt Newman9-Jul-01 15:47 
GeneralRe: MP3 reading Pin
Christian Graus9-Jul-01 15:55
protectorChristian Graus9-Jul-01 15:55 
GeneralRe: MP3 reading Pin
Matt Newman9-Jul-01 16:20
Matt Newman9-Jul-01 16:20 
GeneralAdding items to a Console window System Menu Pin
9-Jul-01 10:37
suss9-Jul-01 10:37 
GeneralRe: Adding items to a Console window System Menu Pin
Tomasz Sowinski9-Jul-01 10:48
Tomasz Sowinski9-Jul-01 10:48 
GeneralAdd Item in a list Control from another dialog Pin
9-Jul-01 10:27
suss9-Jul-01 10:27 
GeneralRe: Add Item in a list Control from another dialog Pin
Carlos Antollini9-Jul-01 10:41
Carlos Antollini9-Jul-01 10:41 
GeneralDebug error: The value of ESP... Pin
Jake Palmer9-Jul-01 10:00
Jake Palmer9-Jul-01 10:00 
GeneralRe: Debug error: The value of ESP... Pin
Chris Losinger9-Jul-01 10:28
professionalChris Losinger9-Jul-01 10:28 

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.