Click here to Skip to main content
15,917,731 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTrapping sleep/hibernate start and stop from Code Pin
Simon Blundell26-Feb-07 13:38
Simon Blundell26-Feb-07 13:38 
AnswerRe: Trapping sleep/hibernate start and stop from Code Pin
Xing Chen26-Feb-07 14:50
Xing Chen26-Feb-07 14:50 
GeneralRe: Trapping sleep/hibernate start and stop from Code Pin
Simon Blundell26-Feb-07 15:06
Simon Blundell26-Feb-07 15:06 
Question3D Objects Pin
Lampros Giampouras26-Feb-07 12:21
Lampros Giampouras26-Feb-07 12:21 
AnswerRe: 3D Objects Pin
Waldermort26-Feb-07 15:48
Waldermort26-Feb-07 15:48 
AnswerRe: 3D Objects Pin
Lampros Giampouras27-Feb-07 3:54
Lampros Giampouras27-Feb-07 3:54 
QuestionMetafile antialising in Gdiplus Pin
Swinefeaster26-Feb-07 10:10
Swinefeaster26-Feb-07 10:10 
QuestionConversion of Unsigned __int64 to binary does not work in 2003 Pin
AAKAra26-Feb-07 9:02
AAKAra26-Feb-07 9:02 
Hello,
I am doing a conversion of a unsigned --int64 to binary using 2003 and does not seem to work. This code works with VC++ 6.0.

In My header file i define a structure

#define QWORD unsigned __int64
#define NUM_EVENTS 53
struct SList // sl
{
int idObject;
int EMPTY_OBJECT_ID;
BOOL aEvents[NUM_EVENTS];
SList() : idObject(EMPTY_OBJECT_ID)
{ ::memset(aEvents, 0x00, sizeof(aEvents)); }

SList(int id) : idObject(id)
{ ::memset(aEvents, 0x00, sizeof(aEvents)); }

SList(int id, QWORD qwEnabled)
{
SList();
idObject = id;
for (int i = 0; i < NUM_EVENTS; i++)
aEvents[i] = 0 != (qwEnabled & (QWORD)(1 <<
(QWORD)i));
}
};

In My cpp file i am populating a temporary list,

int id =12345;
QWORD qEnable = 9007191738548223;
CArray <SList*, SList*> aSList;
SList* psl = new SList(id, qEnable);

// Add them to a temporary list.
aSList.Add(psl);


Anyone having any idea whether there is any patch to rectify? Pls help




Anil
AnswerRe: Conversion of Unsigned __int64 to binary does not work in 2003 Pin
Mark Salsbery26-Feb-07 9:19
Mark Salsbery26-Feb-07 9:19 
GeneralRe: Conversion of Unsigned __int64 to binary does not work in 2003 Pin
AAKAra26-Feb-07 10:00
AAKAra26-Feb-07 10:00 
QuestionHandle Reuse Problems? [modified] Pin
V3RO26-Feb-07 7:50
V3RO26-Feb-07 7:50 
AnswerRe: Handle Reuse Problems? Pin
Mark Salsbery26-Feb-07 9:08
Mark Salsbery26-Feb-07 9:08 
GeneralRe: Handle Reuse Problems? Pin
V3RO26-Feb-07 9:15
V3RO26-Feb-07 9:15 
GeneralRe: Handle Reuse Problems? Pin
V3RO26-Feb-07 9:45
V3RO26-Feb-07 9:45 
GeneralRe: Handle Reuse Problems? Pin
Mark Salsbery26-Feb-07 10:16
Mark Salsbery26-Feb-07 10:16 
QuestionAccessing DLL Pin
vinith26-Feb-07 7:28
vinith26-Feb-07 7:28 
AnswerRe: Accessing DLL Pin
Mark Salsbery26-Feb-07 7:41
Mark Salsbery26-Feb-07 7:41 
GeneralRe: Accessing DLL Pin
vinith26-Feb-07 23:03
vinith26-Feb-07 23:03 
QuestionRe: Accessing DLL Pin
prasad_som26-Feb-07 19:48
prasad_som26-Feb-07 19:48 
QuestionMS Access Pin
shiraztk26-Feb-07 6:32
shiraztk26-Feb-07 6:32 
QuestionRe: MS Access Pin
David Crow26-Feb-07 9:04
David Crow26-Feb-07 9:04 
QuestionWhite space increased and one reference number jumped in simple console application Pin
Software_Specialist26-Feb-07 4:31
Software_Specialist26-Feb-07 4:31 
QuestionRe: White space increased and one reference number jumped in simple console application Pin
Newbie0026-Feb-07 6:24
Newbie0026-Feb-07 6:24 
AnswerRe: White space increased and one reference number jumped in simple console application Pin
Software_Specialist27-Feb-07 9:38
Software_Specialist27-Feb-07 9:38 
GeneralRe: White space increased and one reference number jumped in simple console application Pin
Newbie0028-Feb-07 3:28
Newbie0028-Feb-07 3: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.