Click here to Skip to main content
15,925,133 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thread Safe Linked List Pin
Joaquín M López Muñoz14-Sep-04 10:59
Joaquín M López Muñoz14-Sep-04 10:59 
GeneralRe: Thread Safe Linked List Pin
Laing,James14-Sep-04 11:18
Laing,James14-Sep-04 11:18 
GeneralRe: Thread Safe Linked List Pin
Joaquín M López Muñoz14-Sep-04 11:30
Joaquín M López Muñoz14-Sep-04 11:30 
GeneralRe: Thread Safe Linked List Pin
Laing,James14-Sep-04 11:56
Laing,James14-Sep-04 11:56 
GeneralI almost understand, a little more advicie please. Pin
mcgahanfl14-Sep-04 2:47
mcgahanfl14-Sep-04 2:47 
GeneralRe: I almost understand, a little more advicie please. Pin
Hardy_Smith14-Sep-04 4:52
Hardy_Smith14-Sep-04 4:52 
GeneralRe: I almost understand, a little more advicie please. Pin
Emilio Garavaglia14-Sep-04 4:55
Emilio Garavaglia14-Sep-04 4:55 
GeneralRe: I almost understand, a little more advicie please. Pin
mcgahanfl14-Sep-04 6:13
mcgahanfl14-Sep-04 6:13 
Thank you both. I was not casting properly.

My work product follows for anyone concerned.

//In C or C++ the following is true
//1. !0 is true and 0 is false
//2. !1 is false and 1 is true
//3. !Any number other than 0 is false and !0 is always true
enum logical { no, maybe, yes };
// no = 0 and !no is true
// maybe = 1 and !maybe is false
// yes = 2 and !yes is the same as !maybe
logical operator ! (logical x)
{
x = (logical)!(int)x;
return x;
}

logical operator &&(logical a, logical b)
{
logical x = no;
if(a &&(int) b)
{
x = yes;
}
return x;
}


void CTestinistuffDlg::OnCancel()
{

logical x(no);
logical a(maybe), b(yes);

//the Not operator
x = operator!(no); //returns maybe
x = operator!(maybe); //returns no
x = operator!(yes); //returns no

x = operator&&(no,no); //returns no
x = operator&&(no,maybe); //returns no
x = operator&&(no,yes); //returns no
x = operator&&(maybe,maybe); //returns yes
x = operator&&(maybe,no); //returns no
x = operator&&(maybe,yes); //returns yes
x = operator&&(yes,yes); //returns yes
x = operator&&(yes,no); //returns no
x = operator&&(yes,maybe); //returns yes




}

GeneralViews in full-screen Pin
Jens Christiansen14-Sep-04 2:35
Jens Christiansen14-Sep-04 2:35 
GeneralActiveX problem Pin
archetype14-Sep-04 1:35
archetype14-Sep-04 1:35 
Generalcharts Pin
dana_krycek14-Sep-04 1:34
dana_krycek14-Sep-04 1:34 
GeneralAdding events to a std C++ class Pin
Alistair Lacy14-Sep-04 1:28
Alistair Lacy14-Sep-04 1:28 
GeneralRe: Adding events to a std C++ class Pin
Emilio Garavaglia14-Sep-04 2:55
Emilio Garavaglia14-Sep-04 2:55 
GeneralRe: Adding events to a std C++ class Pin
Alistair Lacy15-Sep-04 3:43
Alistair Lacy15-Sep-04 3:43 
GeneralAccessing any process's memory Pin
Member 136563313-Sep-04 23:26
Member 136563313-Sep-04 23:26 
GeneralRe: Accessing any process's memory Pin
Arsalan Malik13-Sep-04 23:40
Arsalan Malik13-Sep-04 23:40 
GeneralC++ Pin
Member 135729713-Sep-04 23:26
Member 135729713-Sep-04 23:26 
GeneralRe: C++ Pin
David Crow14-Sep-04 2:53
David Crow14-Sep-04 2:53 
GeneralVisual Studio .NET 2003 Add-Ins Pin
Franz Klein13-Sep-04 22:45
Franz Klein13-Sep-04 22:45 
GeneralRe: Visual Studio .NET 2003 Add-Ins Pin
Andrew Walker14-Sep-04 13:47
Andrew Walker14-Sep-04 13:47 
GeneralPlease Help Pin
ThatsAlok13-Sep-04 22:01
ThatsAlok13-Sep-04 22:01 
GeneralRe: Please Help Pin
Bob Stanneveld13-Sep-04 22:59
Bob Stanneveld13-Sep-04 22:59 
GeneralRe: Please Help Pin
ThatsAlok13-Sep-04 23:11
ThatsAlok13-Sep-04 23:11 
GeneralRe: Please Help Pin
Bob Stanneveld14-Sep-04 7:55
Bob Stanneveld14-Sep-04 7:55 
GeneralRe: Please Help Pin
David Crow14-Sep-04 3:02
David Crow14-Sep-04 3:02 

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.