Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:32
David Crow24-Sep-09 8:32 
GeneralRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:50
ForNow24-Sep-09 8:50 
QuestionDWORD Time Puzzle Pin
phil241524-Sep-09 5:36
phil241524-Sep-09 5:36 
AnswerRe: DWORD Time Puzzle Pin
Stuart Dootson24-Sep-09 6:13
professionalStuart Dootson24-Sep-09 6:13 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 3:46
phil241525-Sep-09 3:46 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 4:12
professionalStuart Dootson25-Sep-09 4:12 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 5:03
phil241525-Sep-09 5:03 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 10:48
professionalStuart Dootson25-Sep-09 10:48 
Imports System
Imports System.Runtime.InteropServices

Module Module1

    <StructLayout(LayoutKind.Sequential)> _
    Public Structure FILETIME
        Public dwLowDateTime As UInteger
        Public dwHighDateTime As UInteger

        Public ReadOnly Property Value() As ULong
            Get
                Return CType(dwHighDateTime << 32, ULong) + dwLowDateTime
            End Get
        End Property
    End Structure

    <StructLayout(LayoutKind.Sequential)> _
    Public Structure SYSTEMTIME
        <MarshalAs(UnmanagedType.U2)> Public Year As Short
        <MarshalAs(UnmanagedType.U2)> Public Month As Short
        <MarshalAs(UnmanagedType.U2)> Public DayOfWeek As Short
        <MarshalAs(UnmanagedType.U2)> Public Day As Short
        <MarshalAs(UnmanagedType.U2)> Public Hour As Short
        <MarshalAs(UnmanagedType.U2)> Public Minute As Short
        <MarshalAs(UnmanagedType.U2)> Public Second As Short
        <MarshalAs(UnmanagedType.U2)> Public Milliseconds As Short
    End Structure

    <DllImport( _
               "kernel32.dll", _
               CharSet:=CharSet.Auto, _
               SetLastError:=True)> _
           Public Function FileTimeToSystemTime( _
                                <[In]()> ByRef lpFileTime As FILETIME, _
                                <Out()> ByRef lpSystemTime As SYSTEMTIME) _
                       As Boolean
    End Function

    Sub Main()
        Dim st As SYSTEMTIME
        Dim ft As FILETIME

        ft.dwLowDateTime = 2960830672
        ft.dwHighDateTime = 30031143
        FileTimeToSystemTime(ft, st)

        System.Console.WriteLine(st.Year)
        System.Console.WriteLine(st.Month)
        System.Console.WriteLine(st.Day)
        System.Console.WriteLine(st.Hour)
        System.Console.WriteLine(st.Minute)
        System.Console.WriteLine(st.Second)
    End Sub

End Module


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: DWORD Time Puzzle Pin
phil241527-Sep-09 23:05
phil241527-Sep-09 23:05 
QuestionHow to prevent accelerators while certain childs have focus? Pin
i96danma24-Sep-09 5:28
i96danma24-Sep-09 5:28 
QuestionFast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
D_code_writer24-Sep-09 4:20
D_code_writer24-Sep-09 4:20 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Michael Schubert24-Sep-09 5:31
Michael Schubert24-Sep-09 5:31 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
molesworth24-Sep-09 6:04
molesworth24-Sep-09 6:04 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Rick York24-Sep-09 6:56
mveRick York24-Sep-09 6:56 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Luc Pattyn24-Sep-09 7:55
sitebuilderLuc Pattyn24-Sep-09 7:55 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
D_code_writer24-Sep-09 18:51
D_code_writer24-Sep-09 18:51 
QuestionCombine Two bmp images into one Pin
Game-point24-Sep-09 3:47
Game-point24-Sep-09 3:47 
AnswerRe: Combine Two bmp images into one Pin
Richard MacCutchan24-Sep-09 4:12
mveRichard MacCutchan24-Sep-09 4:12 
QuestionProperty sheet and page Pin
hrishiS24-Sep-09 3:46
hrishiS24-Sep-09 3:46 
AnswerRe: Property sheet and page Pin
David Crow24-Sep-09 4:02
David Crow24-Sep-09 4:02 
GeneralRe: Property sheet and page Pin
hrishiS24-Sep-09 4:26
hrishiS24-Sep-09 4:26 
GeneralRe: Property sheet and page Pin
David Crow24-Sep-09 4:33
David Crow24-Sep-09 4:33 
GeneralRe: Property sheet and page Pin
hrishiS24-Sep-09 5:02
hrishiS24-Sep-09 5:02 
GeneralRe: Property sheet and page Pin
David Crow24-Sep-09 5:09
David Crow24-Sep-09 5:09 
GeneralRe: Property sheet and page Pin
Chuck O'Toole24-Sep-09 15:46
Chuck O'Toole24-Sep-09 15:46 

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.