Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
sludgenz21-Jul-08 18:20
sludgenz21-Jul-08 18:20 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 18:24
Stephen Hewitt21-Jul-08 18:24 
AnswerRe: How do you load a .DLL multiple times into different memory spaces? Pin
Joe Woodbury21-Jul-08 18:29
professionalJoe Woodbury21-Jul-08 18:29 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Stephen Hewitt21-Jul-08 20:01
Stephen Hewitt21-Jul-08 20:01 
GeneralRe: How do you load a .DLL multiple times into different memory spaces? Pin
Joe Woodbury21-Jul-08 20:08
professionalJoe Woodbury21-Jul-08 20:08 
Questionquestion about a MKV block. Pin
kcynic21-Jul-08 13:51
kcynic21-Jul-08 13:51 
AnswerRe: question about a MKV block. Pin
yuanfen13922-Jul-08 20:42
yuanfen13922-Jul-08 20:42 
GeneralRe: question about a MKV block. Pin
kcynic22-Jul-08 21:27
kcynic22-Jul-08 21:27 
I am glad to meet a friend with the same question. But, tell the truth, i have got the solution.
In my example:A1 E5 82 00 00 06 07 9A AE BF BF BF BF BF...
0xA1:header tag
0xE5: tell the total length of the block is 0x65=101
0x82: tell the block is a slice of track 2(known as trackentry in the document)
0x0000: timecode, two byte
0x06: tell the lacing type of the block used is EBML Lacing
0x07: the lacing slice in the block is 0x08=8, so the there will be 7 lacing-sizes given
0x9A: says the first size is stored in only one byte, size[0]=ebml_unsigned(0x9A)=0x1A=26
0xAE: the delta of the second size according to the first one, tells the first delta(size[1]-size[0] is stored in only one byte. delta=0xAE-0x80-3F=-0x11=-17, so, size[1]=size[0]+delta=26+(-17)=9
0xBF: delta=0xBF-0x80-0x3F=0, so size[2]=size[1]+delta=9+0=9 ==>size[2]=9
....so, we can calculate the rest: size[3]=9,size[4]=9,size[5]=9,size[6]=9
and size[7]=101(total size)-12(before the real data witch began after the last BF)-[26+9*6]=9

and in my example, the block precisely end with my calculated ends!
Note: Why we should minus 0x80 and 0x3F: you know, in ebml integer, the first '1'bit indicates how many bytes of the data used, so its no contribution to the final value.so if the integer is 1 byte, we minus 0x80, if 2 bytes, we minux 0x4000,...; after the first '1' bit is the sign bit, if the real value is negative, we should add the max value to code it. For 1 byte integer,its 1*xxxxxxb,*is the sign bit, so the max 1 byte integer is 2^6-1=0x3F(according to block_structure,so for a 2 bytes integer value val: real_val = val-0x4000-0x1FFF.

For more details, you can go www.matroska.org to looking for.

good luck
GeneralRe: question about a MKV block. Pin
yuanfen13923-Jul-08 0:16
yuanfen13923-Jul-08 0:16 
GeneralRe: question about a MKV block. Pin
kcynic23-Jul-08 2:00
kcynic23-Jul-08 2:00 
QuestionCWinThread - How to ask is still running? Pin
x87Bliss21-Jul-08 13:45
x87Bliss21-Jul-08 13:45 
AnswerRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 19:34
professionalJoe Woodbury21-Jul-08 19:34 
AnswerRe: CWinThread - How to ask is still running? Pin
sudhir_Kumar21-Jul-08 20:00
sudhir_Kumar21-Jul-08 20:00 
GeneralRe: CWinThread - How to ask is still running? Pin
Joe Woodbury21-Jul-08 20:26
professionalJoe Woodbury21-Jul-08 20:26 
Questionpolymorphism question - child pointer to parent class Pin
zecodela21-Jul-08 12:59
zecodela21-Jul-08 12:59 
AnswerRe: polymorphism question - child pointer to parent class Pin
Stephen Hewitt21-Jul-08 13:58
Stephen Hewitt21-Jul-08 13:58 
GeneralRe: polymorphism question - child pointer to parent class Pin
zecodela21-Jul-08 15:04
zecodela21-Jul-08 15:04 
GeneralRe: polymorphism question - child pointer to parent class Pin
Stephen Hewitt21-Jul-08 15:25
Stephen Hewitt21-Jul-08 15:25 
QuestionHow do you convert a CString to a char *? Pin
Markus C21-Jul-08 12:31
Markus C21-Jul-08 12:31 
AnswerRe: How do you convert a CString to a char *? Pin
Garth J Lancaster21-Jul-08 16:32
professionalGarth J Lancaster21-Jul-08 16:32 
AnswerRe: How do you convert a CString to a char *? Pin
kDevloper21-Jul-08 19:04
kDevloper21-Jul-08 19:04 
GeneralRe: How do you convert a CString to a char *? Pin
CPallini21-Jul-08 21:17
mveCPallini21-Jul-08 21:17 
GeneralRe: How do you convert a CString to a char *? Pin
kDevloper22-Jul-08 0:41
kDevloper22-Jul-08 0:41 
GeneralRe: How do you convert a CString to a char *? Pin
CPallini22-Jul-08 5:02
mveCPallini22-Jul-08 5:02 
AnswerRe: How do you convert a CString to a char *? Pin
Michael Dunn22-Jul-08 13:43
sitebuilderMichael Dunn22-Jul-08 13:43 

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.