|
|
|
Отображение файла в память
|
|||
|---|---|---|---|
|
#18+
Функция MapViewOfFile(...) возвращает ошибку о неправильном выравнивании Какие требования к параметрам: dwFileOffsetLow и dwNumberOfBytesToMap? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.08.2004, 10:26 |
|
||
|
Отображение файла в память
|
|||
|---|---|---|---|
|
#18+
When you map a view of a file into your process's address space, you must specify two things. First, you must tell the system which byte in the data file should be mapped as the first byte in the view. You do this using the dwFileOffsetHigh and dwFileOffsetLow parameters. Because Windows supports files that can be up to 16 EB, you must specify this byte-offset using a 64-bit value of which the high 32 bits are passed in the dwFileOffsetHigh parameter and the low 32 bits are passed in the dwFileOffsetLow parameter. Note that the offset in the file must be a multiple of the system's allocation granularity. (To date, all implementations of Windows have an allocation granularity of 64 KB.) Jeffrey Richter, Programming Applications for Microsoft Windows ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 30.08.2004, 12:58 |
|
||
|
Отображение файла в память
|
|||
|---|---|---|---|
|
#18+
Согласно различного рода документам можно отобразить в память некое файловое окно. Но, на практике получается отобразить только весь файл. В примерах документации есть только полное отображение файла в память. Попытки манипулировать параметрами двух соответствующих функций ни к чему ни приводят. Поэтому я испытываю определенную проблему. Подскажите, а лучше подбростье несколько строчек программы, чтобы глазками посмотреть как это сделать. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2004, 05:31 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=32671018&tid=2034321]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
63ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 203ms |
| total: | 345ms |

| 0 / 0 |
