Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regular Expressions Pin
Bassam Abdul-Baki10-Sep-10 5:02
professionalBassam Abdul-Baki10-Sep-10 5:02 
GeneralRe: Regular Expressions Pin
PIEBALDconsult10-Sep-10 14:52
mvePIEBALDconsult10-Sep-10 14:52 
GeneralRe: Regular Expressions [modified] Pin
PIEBALDconsult11-Sep-10 4:30
mvePIEBALDconsult11-Sep-10 4:30 
Questionis C# in .Net 3.5 slower than C# in .Net 1.1 Pin
RugbyLeague10-Sep-10 2:20
RugbyLeague10-Sep-10 2:20 
AnswerRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
Luc Pattyn10-Sep-10 3:03
sitebuilderLuc Pattyn10-Sep-10 3:03 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
RugbyLeague10-Sep-10 3:11
RugbyLeague10-Sep-10 3:11 
AnswerRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
Luc Pattyn10-Sep-10 3:17
sitebuilderLuc Pattyn10-Sep-10 3:17 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
RugbyLeague10-Sep-10 3:21
RugbyLeague10-Sep-10 3:21 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
RugbyLeague10-Sep-10 5:48
RugbyLeague10-Sep-10 5:48 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
Luc Pattyn10-Sep-10 5:53
sitebuilderLuc Pattyn10-Sep-10 5:53 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
RugbyLeague10-Sep-10 5:55
RugbyLeague10-Sep-10 5:55 
GeneralRe: is C# in .Net 3.5 slower than C# in .Net 1.1 Pin
Luc Pattyn10-Sep-10 6:02
sitebuilderLuc Pattyn10-Sep-10 6:02 
Questionchar[] to string conversion Pin
Chesnokov Yuriy10-Sep-10 1:57
professionalChesnokov Yuriy10-Sep-10 1:57 
AnswerRe: char[] to string conversion Pin
Kubajzz10-Sep-10 2:04
Kubajzz10-Sep-10 2:04 
AnswerRe: char[] to string conversion Pin
OriginalGriff10-Sep-10 2:31
mveOriginalGriff10-Sep-10 2:31 
QuestionHow to call the function in cellcore.dll? Pin
whiteclouds9-Sep-10 22:52
whiteclouds9-Sep-10 22:52 
AnswerRe: How to call the function in cellcore.dll? Pin
DaveyM699-Sep-10 23:42
professionalDaveyM699-Sep-10 23:42 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds10-Sep-10 0:09
whiteclouds10-Sep-10 0:09 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 0:20
professionalDaveyM6910-Sep-10 0:20 
GeneralRe: How to call the function in cellcore.dll? Pin
Luc Pattyn10-Sep-10 1:26
sitebuilderLuc Pattyn10-Sep-10 1:26 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 1:41
professionalDaveyM6910-Sep-10 1:41 
GeneralRe: How to call the function in cellcore.dll? Pin
Luc Pattyn10-Sep-10 1:59
sitebuilderLuc Pattyn10-Sep-10 1:59 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 2:09
professionalDaveyM6910-Sep-10 2:09 
Hmm... intersting. The only time I've written code requiring it was for MMTIME[^] which I have like this Confused | :confused:
C#
/* http://msdn.microsoft.com/en-us/library/dd757347(v=VS.85).aspx
       typedef struct mmtime_tag {
           UINT wType;
           union {
               DWORD  ms;
               DWORD  sample;
               DWORD  cb;
               DWORD  ticks;
               struct {
                   BYTE hour;
                   BYTE min;
                   BYTE sec;
                   BYTE frame;
                   BYTE fps;
                   BYTE dummy;
                   BYTE pad[2];
               } smpte;
               struct {
                   DWORD songptrpos;
               } midi;
           } u;
       } MMTIME, *PMMTIME, *LPMMTIME; */
    /// <summary>
    /// Contains timing information for different types of multimedia data.
    /// </summary>
    [StructLayout(LayoutKind.Explicit)]
    internal struct MMTIME
    {
        /// <summary>
        /// Time format.
        /// </summary>
        [FieldOffset(0)]
        public uint wType;
        /// <summary>
        /// Number of milliseconds.
        /// Used when wType is TIME_MS.
        /// </summary>
        [FieldOffset(4)]
        public uint ms;
        /// <summary>
        /// Number of samples.
        /// Used when wType is TIME_SAMPLES.
        /// </summary>
        [FieldOffset(4)]
        public uint sample;
        /// <summary>
        /// Byte count.
        /// Used when wType is TIME_BYTES.
        /// </summary>
        [FieldOffset(4)]
        public uint cb;
        /// <summary>
        /// Ticks in MIDI stream.
        /// Used when wType is TIME_TICKS.
        /// </summary>
        [FieldOffset(4)]
        public uint ticks;
        /// <summary>
        /// Hours.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(4)]
        public byte hour;
        /// <summary>
        /// Minutes.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(5)]
        public byte min;
        /// <summary>
        /// Seconds.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(6)]
        public byte sec;
        /// <summary>
        /// Frames.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(7)]
        public byte frame;
        /// <summary>
        /// Frames per second (24, 25, 29 (30 drop), or 30).
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(8)]
        public byte fps;
        /// <summary>
        /// Dummy byte for alignment.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(9)]
        private byte dummy;
        /// <summary>
        /// Padding.
        /// Used when wType is TIME_SMPTE.
        /// </summary>
        [FieldOffset(10)]
        private ushort pad;
        /// <summary>
        /// Song pointer position.
        /// Used when wType is TIME_MIDI.
        /// </summary>
        [FieldOffset(4)]
        public uint songptrpos;
    }


Luc Pattyn wrote:
there seems to be a dwOptions member too, which hasn't been mentioned before!


I had that in the original reply[^] but missed it when I looked at the union D'Oh! | :doh:
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: How to call the function in cellcore.dll? Pin
Luc Pattyn10-Sep-10 2:17
sitebuilderLuc Pattyn10-Sep-10 2:17 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 2:19
professionalDaveyM6910-Sep-10 2:19 

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.