15,893,486 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 bigcdh (Top 11 by date)
bigcdh
22-Sep-13 16:46pm
View
Whats your code?
bigcdh
22-Sep-13 12:38pm
View
Sorry if I wasnt clear. The back button doesnt work because the content has been loaded via an AJAX request. therefore I believe I need to listen or action some kind of hash change event, but thats what i'm struggling to code. Hope i'm making sense..!
bigcdh
21-May-13 9:55am
View
Thanks SA, appreciate the response, there's plenty for me to read through and learn!
bigcdh
20-Mar-13 4:58am
View
pleasure.
bigcdh
19-Mar-13 16:10pm
View
:-)
bigcdh
19-Mar-13 7:10am
View
Hmm, well shouldnt be any reason why it wouldnt work that I can see.
Try taking the try / catch out and see if it throws an error which may give you more of an indication.
Also, just out of interest, you dont need to use cnn.Open() or cnn.Close() as when filling an adapter with a dataset this is already taken care of. Just a couple less lines of code :-)
bigcdh
18-Mar-13 13:47pm
View
Hi Richard, thats exactly what I want to do. Ready three bytes at the start of every 512 block.
Reading the man pages for Windows API, I'm sure I have to advance the pointer manually.
http://vmd.myxomop.com/apires/ref/r/readfile.html
ReadFile reads the desired amount of bytes from a file. The file must of course have been opened with at least read-level access. If the file is synchronous (not overlapped), the function begins reading the file from the current position of the file pointer, and the function automatically adjusts the file pointer to point to the byte immediately after the last byte read. If the file is asynchronous (overlapped), the structure passed as lpOverlapped identifies the point to begin reading from, and the program calling the function is responsible for updating the file pointer.
bigcdh
18-Mar-13 12:56pm
View
should be exactly the same... whats the error you get?
bigcdh
18-Mar-13 12:28pm
View
p.s. just thinking about it, as its an overlapped file thats used, I thought I'd have to manually move the pointer, so despite reading the first 512 bytes initially, I'd still need to advance the pointer to the end of that 512 bytes to read the next lot. Not sure...
bigcdh
18-Mar-13 12:16pm
View
Thanks Richard. I'm looking to read in the contents of a drive, not a particular file. The idea is to look for all jpeg headers within.
Appreciate the spot with setting the position to where I'm currently at, however as I'm in a while loop, shouldnt it increment on each iteration as I'm telling it to read 512, 1024, 1536 ... bytes from the start by multiplying the count by 512..
bigcdh
18-Mar-13 5:54am
View
password is a reserved word in Access. It may be useful to change the column name, maybe try UserPassword to make it distinct and avoid further issues like this.
Show More