Click here to Skip to main content
15,909,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalextract each byte from an integer varialbe Pin
peter ho20-Nov-02 7:43
peter ho20-Nov-02 7:43 
GeneralRe: extract each byte from an integer varialbe Pin
dabs20-Nov-02 8:01
dabs20-Nov-02 8:01 
GeneralRe: extract each byte from an integer varialbe Pin
Paul M Watt20-Nov-02 8:03
mentorPaul M Watt20-Nov-02 8:03 
GeneralRe: extract each byte from an integer varialbe Pin
Rick York20-Nov-02 10:41
mveRick York20-Nov-02 10:41 
GeneralRe: extract each byte from an integer varialbe Pin
James R. Twine21-Nov-02 4:14
James R. Twine21-Nov-02 4:14 
GeneralDBTIMESTAMP help needed! Pin
nlecren20-Nov-02 7:30
nlecren20-Nov-02 7:30 
GeneralRe: DBTIMESTAMP help needed! Pin
Mazdak20-Nov-02 8:36
Mazdak20-Nov-02 8:36 
GeneralRe: DBTIMESTAMP help needed! Pin
James R. Twine21-Nov-02 4:25
James R. Twine21-Nov-02 4:25 
   Yes, DBTIMESTAMP (Date/Time SQL Columns) can be updated, I am doing it in my current project (although I am using OleDB directly), as a "last modified" field for a record.

   I have had some problems because the way the values are stored are a little different than you may expect.  For example, the year field is a 4-digit year, not a 2- or 3(!)- digit one, and the month and day columns start at 1, while the rest of them start at 0.

   For example, this is not the correct way to format a DBTIMESTAMP:
<br />
    DBTIMESTAMP    dbtsDateTime;<br />
<br />
    dbtsDateTime.year = 99; // Invalid Year Format, Should Be "1999"<br />
    dbtsDateTime.month = 2;<br />
    dbtsDateTime.day = 31; // Invalid Day For The Specified Month<br />
    dbtsDateTime.hour = 24; // Invalid Hour, Range Is 0-23<br />
    dbtsDateTime.minute = 0;<br />
    dbtsDateTime.second = 0;<br />
    dbtsDateTime.fraction = 0;<br />

While this is:
<br />
    DBTIMESTAMP    dbtsDateTime;<br />
<br />
    dbtsDateTime.year = 1999;<br />
    dbtsDateTime.month = 2;<br />
    dbtsDateTime.day = 28;<br />
    dbtsDateTime.hour = 23;<br />
    dbtsDateTime.minute = 0;<br />
    dbtsDateTime.second = 0;<br />
    dbtsDateTime.fraction = 0;<br />

   Peace!

-=- James (Sonork:100.21837)
"There is nothing worse than being oblivious to the fact that you do not know what you are doing."
[Get Check Favorites 1.5 Now!]
GeneralFinding a CWnd under the mouse ... Pin
Maximilien20-Nov-02 6:54
Maximilien20-Nov-02 6:54 
GeneralRe: Finding a CWnd under the mouse ... Pin
Fazlul Kabir20-Nov-02 7:15
Fazlul Kabir20-Nov-02 7:15 
GeneralRe: Finding a CWnd under the mouse ... Pin
Maximilien20-Nov-02 7:44
Maximilien20-Nov-02 7:44 
GeneralRe: Finding a CWnd under the mouse ... Pin
Fazlul Kabir20-Nov-02 7:54
Fazlul Kabir20-Nov-02 7:54 
GeneralPointer Question Pin
20-Nov-02 6:09
suss20-Nov-02 6:09 
GeneralRe: Pointer Question Pin
Christian Graus20-Nov-02 6:34
protectorChristian Graus20-Nov-02 6:34 
GeneralMDI MFC application: being able to run it windowless Pin
Le centriste20-Nov-02 5:59
Le centriste20-Nov-02 5:59 
GeneralRe: MDI MFC application: being able to run it windowless Pin
User 988520-Nov-02 6:56
User 988520-Nov-02 6:56 
GeneralRe: MDI MFC application: being able to run it windowless Pin
Le centriste20-Nov-02 7:14
Le centriste20-Nov-02 7:14 
GeneralRe: MDI MFC application: being able to run it windowless Pin
User 988520-Nov-02 7:48
User 988520-Nov-02 7:48 
GeneralRe: MDI MFC application: being able to run it windowless Pin
User 988520-Nov-02 8:00
User 988520-Nov-02 8:00 
GeneralRe: MDI MFC application: being able to run it windowless Pin
Maximilien20-Nov-02 7:04
Maximilien20-Nov-02 7:04 
GeneralCStatusBar Document/View Pin
gandalf337320-Nov-02 5:49
gandalf337320-Nov-02 5:49 
GeneralRe: CStatusBar Document/View Pin
RobJones20-Nov-02 7:15
RobJones20-Nov-02 7:15 
GeneralDAO SDK Pin
dan o20-Nov-02 5:28
dan o20-Nov-02 5:28 
GeneralThe Large Access Database ! Pin
Hadi Rezaee20-Nov-02 5:23
Hadi Rezaee20-Nov-02 5:23 
GeneralRe: The Large Access Database ! Pin
dan o20-Nov-02 5:40
dan o20-Nov-02 5:40 

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.