ZeroEffect Posted July 23, 2005 Posted July 23, 2005 If you didn't know wav file can store data about the fine n a "cart chunk header" I am trying to find a way to read this information. I have found a code example in C# but I have no idea on C# this is the code typedef struct cartchunk_tag { DWORD ckID; DWORD ckSize; BYTE ckData[ckSize]; } typedef struct cart_exetension_tag { CHAR Version[4]; CHAR Title[64]; CHAR Artist[64]; CHAR CutID[64]; CHAR ClilentID[64]; CHAR Category[64]; CHAR Classification[64]; CHAR OutCue[64]; CHAR StartDate[10]; CHAR StartTime[8]; CHAR EndDate[10]; CHAR EndTime[8]; CHAR ProducerAppID[64]; CHAR ProducerAppVersion[64]; CHAR UserDef[64]; DWORD dwLevelRefference CART_TIMER PostTimer[8]; CHAR Reserved[276]; CHAR URL[1024]; CHAR TagText[]; } CART_EXTENSION; typedef struct cart_timer_tag { FOURCC dwUsage; DWORD dwValue; } CART_TIMER I think these are variables and byte sizes couuld someone give me a hand in doing the conversion to vb.net. I'm trying to build an application that will rename file based on the info in the cart chunk header. Any help would be very helpfull. Thansk In advance ZeroEffect Quote If you can't find it, Build It. Quote There is no place Like 127.0.0.1 also don't forget 1 + 1 = 10
Wraith Posted July 24, 2005 Posted July 24, 2005 This sort of thing always shocks me, why can't you read the c#? It uses all the same types, they languages are similar enough that you can directly convert between them with ease and for the most part all you're doing is a little keyword substitution. By not bothering to learn c# you're cutting yourself off from at least half the sample code availble for .NET. Just in case you're interested that code isn't c#, its c, and while its slightly harder to translate than c# is if it ends up taking you more than 15 minutes you need to practice more. Quote
ZeroEffect Posted July 24, 2005 Author Posted July 24, 2005 Quote This sort of thing always shocks me, why can't you read the c#? It uses all the same types, they languages are similar enough that you can directly convert between them with ease and for the most part all you're doing is a little keyword substitution. By not bothering to learn c# you're cutting yourself off from at least half the sample code availble for .NET. Just in case you're interested that code isn't c#, its c, and while its slightly harder to translate than c# is if it ends up taking you more than 15 minutes you need to practice more. Wraith, Forgive me for sounding crass. Please don't assume that I have stopped looking for an solution to my problem just because I have posted on this board. I really don't know the first thing about c, I was looking for some guidence. I have posted to this site only when I have hit a road block and can't seem to find an answer. While waiting to see if someone response I often scour through MSDN, my help files, other site and through the forum for anything remotely like what I am trying to do. I also build temp projects that are very crude to take apart and learn the how and why of the code. Also 99% of my needs are met by using VB.Net. I have only been program for about a year and a half and it has been mainly a small hobby. So I am still a little behind the curve. If you have some constructive information please feel free to post again. I received a great deal of guidence from people on this site and thier sister site for vb6. I hope the help and guidence continues. Thasnks for your input. ZeroEffect Quote If you can't find it, Build It. Quote There is no place Like 127.0.0.1 also don't forget 1 + 1 = 10
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.