15,919,121 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by TheBitSlinger (Top 7 by date)
TheBitSlinger
27-Apr-11 17:19pm
View
You were right! I'm guessing I could face the same issue with ReadInt32, ReadInt16, etc.?
TheBitSlinger
27-Apr-11 17:18pm
View
That was the issue, and ReadBytes worked! I'd been playing around with ReadBytes, but could not figure out how to decode the byte array. I'd tried Base64 decoding with no joy.
TheBitSlinger
25-Apr-11 23:42pm
View
It worked! Thanks to everyone who helped out!
TheBitSlinger
25-Apr-11 12:12pm
View
Okay, I follow what you're saying. I'm just talking through this so I fully understand... Say my input file has a length of 1,500, and I want to create array to hold bytes 45 through 1,500, which is 1,456 bytes. The boundaries of the array in both C# and VB.Net would be 0 to 1,455, but since VB.Net arrays are sized relative to n + 1, that has to be accounted for. Blah, I knew I was missing something about C# vs VB.Net. Thanks!
TheBitSlinger
25-Apr-11 11:44am
View
So C# sharp IS different from VB. Is the difference that offsets in C# start with 1, while offsets in VB start with 0? I'd say that has to be the problem, because as I noted in my comment to MRB's excellent suggestion, my merged file is one byte longer than the sample I created with the original project.
TheBitSlinger
25-Apr-11 11:39am
View
I was able to compare two samples in HxD. It said the files match exactly, expect that my file is 1 byte bigger with a HEX '00' tacked onto the end of the file.
TheBitSlinger
25-Apr-11 10:57am
View
Excellent suggestion! I'll see if I can open the files in UltraEdit and do the Hex examination. Anything else, as you rightly point out, would be guess-work.
Show More