Click here to Skip to main content
16,005,290 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: how to list the datas in combobox or listbox? Pin
~Khatri Mitesh~22-Sep-08 22:17
~Khatri Mitesh~22-Sep-08 22:17 
QuestionDividing image iton different segments, Pin
Rngrgreen22-Sep-08 18:29
Rngrgreen22-Sep-08 18:29 
QuestionSerial Port.. Pin
Subjugate22-Sep-08 14:36
Subjugate22-Sep-08 14:36 
AnswerRe: Serial Port.. Pin
Ashfield22-Sep-08 21:11
Ashfield22-Sep-08 21:11 
AnswerRe: Serial Port.. Pin
Levisvv15-Oct-08 9:09
Levisvv15-Oct-08 9:09 
QuestionFormatting question [modified] Pin
Sonhospa22-Sep-08 11:45
Sonhospa22-Sep-08 11:45 
AnswerRe: Formatting question Pin
Johan Hakkesteegt24-Sep-08 2:06
Johan Hakkesteegt24-Sep-08 2:06 
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 0:29
Sonhospa25-Sep-08 0:29 
Thank you Johan,

you got it straight, and you recognized that I'm struggling with the data types D'Oh! | :doh: Perhaps it helps if I explain a bit better, but due to my still lacking capabilities please excuse (or correct) any errors:

I'm trying to read/write the header of a dpx (picture) file which has a fixed structure. Following the SMPTE definition, many values (e.g. "tv.timecode") are stored in a DWORD (which would be UInt32 in VB). And when I examine the timecode-position in a HEX-Editor, I see the Bytes "06-00-42-11" stored for the timecode "06:00:42:11". Btw: Since it's stored big-endian, meanwhile I wrote a function to swap the bytes first (there really doesn't seem to be a VB standard function), so the line now is
hDWORD = SwapDWORD(br.ReadUInt32)
.TimeCode = hDWORD
while the "buffer variable" hDWORD is still UInt32 and converted afterwards in a listbox:
.Items.Add("SMPTE TimeCode: " & CDate(tv.TimeCode))
Unfortunately VB doesn't let me convert to what I need (and you suggest), so the above line throws an error saying "UInt can't be converted to DateTime" (as far as I read this would need Double / 8 bytes). A "CTime" function doesn't seem to be available. Still I have only 4-bytes...

Where's that big tomato on my eyes??? WTF | :WTF:
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 0:54
Sonhospa25-Sep-08 0:54 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 1:01
Johan Hakkesteegt25-Sep-08 1:01 
QuestionRe: Formatting question Pin
Sonhospa25-Sep-08 1:33
Sonhospa25-Sep-08 1:33 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 3:30
Johan Hakkesteegt25-Sep-08 3:30 
GeneralRe: Formatting question Pin
Sonhospa25-Sep-08 6:57
Sonhospa25-Sep-08 6:57 
GeneralRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 19:51
Johan Hakkesteegt25-Sep-08 19:51 
GeneralRe: Formatting question Pin
Sonhospa25-Sep-08 22:17
Sonhospa25-Sep-08 22:17 
AnswerRe: Formatting question Pin
Johan Hakkesteegt25-Sep-08 0:57
Johan Hakkesteegt25-Sep-08 0:57 
AnswerRe: Formatting question Pin
Sonhospa25-Sep-08 1:37
Sonhospa25-Sep-08 1:37 
QuestionFile Counting in VB Pin
Sonhospa22-Sep-08 11:23
Sonhospa22-Sep-08 11:23 
AnswerRe: File Counting in VB Pin
Gagan.2023-Sep-08 1:10
Gagan.2023-Sep-08 1:10 
GeneralRe: File Counting in VB Pin
Sonhospa23-Sep-08 1:42
Sonhospa23-Sep-08 1:42 
GeneralRe: File Counting in VB Pin
Dave Kreskowiak23-Sep-08 2:02
mveDave Kreskowiak23-Sep-08 2:02 
NewsRe: File Counting in VB Pin
Sonhospa23-Sep-08 2:07
Sonhospa23-Sep-08 2:07 
NewsRe: File Counting in VB [modified] Pin
Sonhospa23-Sep-08 3:01
Sonhospa23-Sep-08 3:01 
QuestionAccessing the "this" pointer Pin
Eric Burns22-Sep-08 10:18
Eric Burns22-Sep-08 10:18 
AnswerRe: Accessing the "this" pointer Pin
Adam Maras22-Sep-08 10:30
Adam Maras22-Sep-08 10:30 

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.