Click here to Skip to main content
15,919,245 members
Home / Discussions / Mobile
   

Mobile

 
Generalsharing code between a WinCE and windows application Pin
majoob7-Apr-03 5:13
majoob7-Apr-03 5:13 
GeneralRe: sharing code between a WinCE and windows application Pin
Anonymous11-Apr-03 19:11
Anonymous11-Apr-03 19:11 
GeneralMultiple property sheet with a global toolbar Pin
mengi7-Apr-03 0:01
mengi7-Apr-03 0:01 
Question How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 4:32
Daniel Strigl5-Apr-03 4:32 
AnswerRe: How to show the SIP automaticly at startup? Pin
João Paulo Figueira5-Apr-03 6:10
professionalJoão Paulo Figueira5-Apr-03 6:10 
GeneralRe: How to show the SIP automaticly at startup? Pin
Daniel Strigl5-Apr-03 23:00
Daniel Strigl5-Apr-03 23:00 
GeneralDatatype Misalignment Pin
PaulJ3-Apr-03 10:33
PaulJ3-Apr-03 10:33 
GeneralRe: Datatype Misalignment Pin
Jonas Larsson4-Apr-03 2:17
Jonas Larsson4-Apr-03 2:17 
Hi, did a quick check on my system and it works fine. Since you didn't post any code, I have no idea why you got a datatype misalignment.
TCHAR buff[200];
ULARGE_INTEGER lFreeCaller, lTotBytes , lTotFreeBytes ;
::GetDiskFreeSpaceEx (NULL, &lFreeCaller, &lTotBytes, &lTotFreeBytes);

swprintf(buff, _T("%u mb free for caller, %u total mbytes, %u total free mbytes"),
                  lFreeCaller.QuadPart >> 20  , lTotBytes.QuadPart >> 20, lTotFreeBytes.QuadPart>> 20 );
MessageBox(0, buff, _T("Info"), 0);

unsigned __int64 test1 = lFreeCaller.QuadPart;
unsigned __int64 test2 = lTotBytes.QuadPart;
unsigned __int64 test3 = lTotFreeBytes.QuadPart;
int mb1 = (test1 >> 20);
int mb2 = (test2 >> 20);
int mb3 = (test3 >> 20);

swprintf(buff, _T("%u mb free for caller, %u total mbytes, %u total free mbytes"), mb1, mb2, mb3);
MessageBox(0, buff, _T("Info"), 0);


Not sure why the first messagebox reports 0 MB and the second shows 15 MB for Total number of bytes, but Im sure you can investigate that further if you're interested in that value.

HTH


“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
GeneralUnable to free memory in the destructor of a class exported in a dll. Pls Help Pin
Anand Vinod3-Apr-03 4:12
Anand Vinod3-Apr-03 4:12 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira3-Apr-03 5:02
professionalJoão Paulo Figueira3-Apr-03 5:02 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
Anand Vinod3-Apr-03 23:59
Anand Vinod3-Apr-03 23:59 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira4-Apr-03 1:36
professionalJoão Paulo Figueira4-Apr-03 1:36 
GeneralRe: Unable to free memory in the destructor of a class exported in a dll. Pls Help Pin
João Paulo Figueira4-Apr-03 1:45
professionalJoão Paulo Figueira4-Apr-03 1:45 
GeneralDate Time Picket in a PropertyPage... Pin
Joshua Guy3-Apr-03 3:34
Joshua Guy3-Apr-03 3:34 
GeneralRe: Date Time Picket in a PropertyPage... Pin
João Paulo Figueira3-Apr-03 3:47
professionalJoão Paulo Figueira3-Apr-03 3:47 
GeneralRe: Date Time Picket in a PropertyPage... Pin
Joshua Guy3-Apr-03 4:53
Joshua Guy3-Apr-03 4:53 
GeneralList Control with Check box option Pin
Kyle P1-Apr-03 15:25
Kyle P1-Apr-03 15:25 
GeneralCompareItem Pin
Anthony988731-Mar-03 3:25
Anthony988731-Mar-03 3:25 
GeneralCreating a simple CSV file Pin
PaulJ27-Mar-03 11:10
PaulJ27-Mar-03 11:10 
GeneralRe: Creating a simple CSV file Pin
João Paulo Figueira27-Mar-03 12:07
professionalJoão Paulo Figueira27-Mar-03 12:07 
GeneralRe: Creating a simple CSV file Pin
UKTrebor10-Apr-03 4:52
UKTrebor10-Apr-03 4:52 
GeneralDisplay objects of the same type Pin
Mariz27-Mar-03 8:15
Mariz27-Mar-03 8:15 
GeneralRe: Display objects of the same type Pin
João Paulo Figueira27-Mar-03 12:02
professionalJoão Paulo Figueira27-Mar-03 12:02 
GeneralCWindow over CView Pin
Mariz27-Mar-03 7:59
Mariz27-Mar-03 7:59 
GeneralGetSystemPowerStatusEx() Pin
Joshua Guy27-Mar-03 6:18
Joshua Guy27-Mar-03 6:18 

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.