Click here to Skip to main content
16,013,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: diffucult: how can i measure velocity with a webcam? Pin
schaereran@gmx.net22-Jan-04 6:02
schaereran@gmx.net22-Jan-04 6:02 
GeneralRe: diffucult: how can i measure velocity with a webcam? Pin
Andrew Walker22-Jan-04 13:20
Andrew Walker22-Jan-04 13:20 
GeneralAccessing MS Office Apps Format options Pin
smallett20-Jan-04 9:46
smallett20-Jan-04 9:46 
GeneralCreateEvent(..) Pin
Laing,James20-Jan-04 9:20
Laing,James20-Jan-04 9:20 
GeneralRe: CreateEvent(..) Pin
peterchen20-Jan-04 11:00
peterchen20-Jan-04 11:00 
Questionchar in java? Pin
_ra20-Jan-04 9:12
_ra20-Jan-04 9:12 
AnswerRe: char in java? Pin
felgarcia20-Jan-04 10:08
felgarcia20-Jan-04 10:08 
AnswerRe: char in java? Pin
jan larsen21-Jan-04 1:46
jan larsen21-Jan-04 1:46 
Confused | :confused:
I'm confused, this code:
char ch = 30;

Behaves in, nearly, the same way in both Java and C++, which is: the value of ch is set to 30.
The only difference is that char in Java is a 16 bit type that holds Unicode values, while char in C++ is an 8 bit type.

Did you perhaps mean this:
<code>Java:</code>
String s = 30; // The value of s is set to "30"

<code>C++:</code>
string s = 30; // This will fail miserably.


If that is the case, then you can take a look at the standard C++ implementation of a string [^]. This should help you to create a descandant of that type with an overloaded '=' operator that translates 30 to "30".

"After all it's just text at the end of the day. - Colin Davies

"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
GeneralPipe Select Pin
Anonymous20-Jan-04 9:10
Anonymous20-Jan-04 9:10 
GeneralRe: Pipe Select Pin
Johnny ²20-Jan-04 23:04
Johnny ²20-Jan-04 23:04 
Questionhow to change the title bar of mainframe of proj? Pin
ns20-Jan-04 8:56
ns20-Jan-04 8:56 
AnswerRe: how to change the title bar of mainframe of proj? Pin
bneacetp20-Jan-04 10:49
bneacetp20-Jan-04 10:49 
GeneralRe: how to change the title bar of mainframe of proj? Pin
nss20-Jan-04 14:21
nss20-Jan-04 14:21 
GeneralRe: how to change the title bar of mainframe of proj? Pin
bneacetp20-Jan-04 16:45
bneacetp20-Jan-04 16:45 
Generala side effect Pin
ns21-Jan-04 1:49
ns21-Jan-04 1:49 
GeneralRe: a side effect Pin
bneacetp21-Jan-04 8:13
bneacetp21-Jan-04 8:13 
GeneralRe: a side effect Pin
ns21-Jan-04 8:42
ns21-Jan-04 8:42 
GeneralRe: a side effect Pin
bneacetp21-Jan-04 9:03
bneacetp21-Jan-04 9:03 
QuestionHow to change background color of CDialog and it's elements Pin
haritadala20-Jan-04 8:34
haritadala20-Jan-04 8:34 
AnswerRe: How to change background color of CDialog and it's elements Pin
andreas.schaerer20-Jan-04 10:40
andreas.schaerer20-Jan-04 10:40 
GeneralRe: How to change background color of CDialog and it's elements Pin
Shehzad Salim20-Jan-04 19:10
Shehzad Salim20-Jan-04 19:10 
QuestionCImage::Draw - Image format? Pin
Jaran Nilsen20-Jan-04 7:42
Jaran Nilsen20-Jan-04 7:42 
Generalbring MDI child window to the top Pin
vancouver77720-Jan-04 6:15
vancouver77720-Jan-04 6:15 
GeneralUnload dll modul from process Pin
Mila02520-Jan-04 6:15
Mila02520-Jan-04 6:15 
GeneralRe: Unload dll modul from process Pin
Tom Larsen20-Jan-04 6:33
Tom Larsen20-Jan-04 6:33 

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.