Need some work done? Post a Project Today
Attention Scriptlance users, Scriptlance has been acquired by Freelancer.com! Find out more
To see why I need this project, imagine a 10mb file full of random junk bytes ... but there's a small 2mb Office .DOC file somewhere near the middle, although it has junk data both before and after it.
LOCATING the Office document is easy ... simply search for the "ID/Magic" header that Office files use at their very start: 0xD0CF11E0
But now that I've located that I still need to "walk through it" to add up the size of each subsection of the .DOC file to calculate the overall FILESIZE, which is what I'm ultimately after.
And this is what I need you to do :-)
Please note the code must be in VB6, and not use any OLE or Office-related API calls or 3rd-party controls ... in other words, it just needs to use regular file i/o and string-related functions to do it's "walking" through the file.
Ive found these pages useful, but Office internals is all new to me so I hand it over to you!
Freelancer.com (formerly GetAFreelancer, Scriptlance and vWorker/Rentacoder) is the world's largest freelancing, outsourcing and crowdsourcing marketplace for small business. Hire freelancers to work in software, writing, data entry and design right through to engineering and the sciences, sales and marketing, and accounting & legal services.
Find freelance jobs and make money online! We have freelance coders, writers, programmers, designers, marketers and more. Getting the best web design, custom programming, professional writing or affordable marketing has never been easier!
© Copyright 2013 Freelancer Technology Pty Limited (ACN 142 189 759)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)