Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: listen on port 135 Pin
Dennis C. Dietrich14-Nov-04 7:52
Dennis C. Dietrich14-Nov-04 7:52 
GeneralRe: listen on port 135 Pin
K.A.L15-Nov-04 4:46
K.A.L15-Nov-04 4:46 
GeneralRe: listen on port 135 Pin
Dennis C. Dietrich15-Nov-04 8:53
Dennis C. Dietrich15-Nov-04 8:53 
GeneralRe: listen on port 135 Pin
Henry miller15-Nov-04 2:30
Henry miller15-Nov-04 2:30 
GeneralRe: listen on port 135 Pin
K.A.L15-Nov-04 4:51
K.A.L15-Nov-04 4:51 
GeneralRe: listen on port 135 Pin
Dennis C. Dietrich15-Nov-04 8:57
Dennis C. Dietrich15-Nov-04 8:57 
GeneralRe: listen on port 135 Pin
Anonymous16-Nov-04 7:00
Anonymous16-Nov-04 7:00 
QuestionHow to use Chars in a CString ? Pin
Master^Tristar14-Nov-04 6:38
Master^Tristar14-Nov-04 6:38 
Hi all.

I got a simple problem using CString, but I can't find a good solution for it.

I have a Database with a field (10 Bytes long) as a CString (using MFC ODBC).
and I need to get and set the Values of each byte.

Example:
CString text = "ABCDEFGH90"; I can get the values by using text.GetAt(0);

But if I code a staement like this I just get a lot errors..
if (text.GetAt(0) == "A") <- compiler error

or if I like to set a value
text.SetAt(0, "T") <- compiler error

What is the best way to do it without having trouble to convert the hole stuff to const char and back ??

Big THX. for helping me out !!!
AnswerRe: How to use Chars in a CString ? Pin
John R. Shaw14-Nov-04 8:31
John R. Shaw14-Nov-04 8:31 
GeneralI need someone to make me a program plz Pin
Member 151788014-Nov-04 5:38
Member 151788014-Nov-04 5:38 
GeneralRe: I need someone to make me a program plz Pin
John R. Shaw14-Nov-04 8:36
John R. Shaw14-Nov-04 8:36 
GeneralRe: I need someone to make me a program plz Pin
ThatsAlok14-Nov-04 22:38
ThatsAlok14-Nov-04 22:38 
GeneralPassing data from a Modal Dialog back to the Dialog that created it Pin
dlarkin7714-Nov-04 4:34
dlarkin7714-Nov-04 4:34 
GeneralRe: Passing data from a Modal Dialog back to the Dialog that created it Pin
John R. Shaw14-Nov-04 9:00
John R. Shaw14-Nov-04 9:00 
GeneralRe: Passing data from a Modal Dialog back to the Dialog that created it Pin
dlarkin7714-Nov-04 22:58
dlarkin7714-Nov-04 22:58 
QuestionHow to search a File in the Hard Disk using C++? Pin
pubududilena14-Nov-04 3:31
pubududilena14-Nov-04 3:31 
AnswerRe: How to search a File in the Hard Disk using C++? Pin
Maximilien14-Nov-04 4:32
Maximilien14-Nov-04 4:32 
AnswerRe: How to search a File in the Hard Disk using C++? Pin
John R. Shaw14-Nov-04 9:20
John R. Shaw14-Nov-04 9:20 
GeneralRe: How to search a File in the Hard Disk using C++? Pin
pubududilena14-Nov-04 12:18
pubududilena14-Nov-04 12:18 
QuestionHow to run exe file using C++? Pin
pubududilena14-Nov-04 3:26
pubududilena14-Nov-04 3:26 
AnswerRe: How to run exe file using C++? Pin
Michael Dunn14-Nov-04 4:50
sitebuilderMichael Dunn14-Nov-04 4:50 
AnswerRe: How to run exe file using C++? Pin
ThatsAlok14-Nov-04 18:32
ThatsAlok14-Nov-04 18:32 
GeneralCAsyncMonikerFile Pin
PetoG14-Nov-04 1:31
PetoG14-Nov-04 1:31 
GeneralRe: CAsyncMonikerFile Pin
John R. Shaw14-Nov-04 10:03
John R. Shaw14-Nov-04 10:03 
GeneralRe: CAsyncMonikerFile Pin
PetoG15-Nov-04 4:58
PetoG15-Nov-04 4:58 

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.