MMTIME structure
MMTIME structure
MMTIME structure
MMTIME structure
MMTIME structure
MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure
MMTIME structure MMTIME structure
MMTIME structure
Go Back  Xtreme Visual Basic Talk > > > MMTIME structure


Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2017, 11:22 PM
mms mms is offline
Ultimate Contributor
 
Join Date: Jul 2002
Location: Hamilton, Ontario
Posts: 1,859
Default MMTIME structure


I need some help making a VB Type declare for this C++ structure

Code:
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;
The MSDN docs are here:
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Reply With Quote
  #2  
Old 04-23-2017, 07:57 PM
Cerian Knight's Avatar
Cerian KnightMMTIME structure Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,193
Default

The source code here has Type structs that might work:
Sorting Timer
... except Pad[2] might have to be Pad(1) in VB.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').

Last edited by Cerian Knight; 04-23-2017 at 08:04 PM.
Reply With Quote
  #3  
Old 04-23-2017, 10:26 PM
mms mms is offline
Ultimate Contributor
 
Join Date: Jul 2002
Location: Hamilton, Ontario
Posts: 1,859
Default

Thank you Cerian Knight

That looks close to what I need.
I can fool with it if it isn't quite right.
Reply With Quote
Reply

Tags
byte, dword, struct, structure, dummy;, pad[2];, fps;, min;, hour;, smpte;, sec;, frame;, songptrpos;, docs, msdn, midi;, mmtime;, ticks;, ms;, type, declare, union, mmtime, sample;, wtype;


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MMTIME structure
MMTIME structure
MMTIME structure MMTIME structure
MMTIME structure
MMTIME structure
MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure MMTIME structure
MMTIME structure
MMTIME structure
 
MMTIME structure
MMTIME structure
 
-->