Click here to Skip to main content
15,887,380 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6910-Sep-10 0:28
professionalDaveyM6910-Sep-10 0:28 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds10-Sep-10 0:33
whiteclouds10-Sep-10 0:33 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6911-Sep-10 22:25
professionalDaveyM6911-Sep-10 22:25 
GeneralRe: How to call the function in cellcore.dll? [modified] Pin
whiteclouds12-Sep-10 17:45
whiteclouds12-Sep-10 17:45 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6913-Sep-10 12:52
professionalDaveyM6913-Sep-10 12:52 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds13-Sep-10 15:33
whiteclouds13-Sep-10 15:33 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6914-Sep-10 8:25
professionalDaveyM6914-Sep-10 8:25 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds14-Sep-10 17:00
whiteclouds14-Sep-10 17:00 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6914-Sep-10 21:41
professionalDaveyM6914-Sep-10 21:41 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds16-Sep-10 23:53
whiteclouds16-Sep-10 23:53 
GeneralRe: How to call the function in cellcore.dll? Pin
DaveyM6918-Sep-10 2:33
professionalDaveyM6918-Sep-10 2:33 
GeneralRe: How to call the function in cellcore.dll? Pin
whiteclouds18-Sep-10 3:33
whiteclouds18-Sep-10 3:33 
QuestionPassing array of c# objects to vbscript [modified] Pin
scootyohansen9-Sep-10 22:03
scootyohansen9-Sep-10 22:03 
QuestionValidating string values Pin
Ramkithepower9-Sep-10 21:54
Ramkithepower9-Sep-10 21:54 
AnswerRe: Validating string values Pin
Kubajzz9-Sep-10 22:07
Kubajzz9-Sep-10 22:07 

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.