Adobe 38040334 - Dreamweaver CS3 User Manual page 34

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
The following code gets the value of the
welcome.html file:
FileHandle noteHandle = OpenNotesFile("file:///c|/sites/avocado8/iwjs/welcome.html");
if(noteHandle > 0){
int valueLength = GetNoteLength( noteHandle, "comments");
char* valueBuffer = new char[valueLength + 1];
GetNote(noteHandle, "comments", valueBuffer, valueLength + 1);
printf("Comments: %s",valueBuffer);
CloseNotesFile(noteHandle);
}
int GetNoteLength()
Description
This function gets the length of the value that is associated with the specified key.
Arguments
FileHandle
, const char
noteHandle
• The
argument is the file handle that the
noteHandle
• The
argument is a string that contains the name of the key.
keyName[64]
Returns
An integer that represents the length of the value.
Example
See "BOOL GetNote()" on page 28.
int GetNotesKeyCount()
Description
This function gets the number of key/value pairs in the specified Design Notes file.
Arguments
FileHandle
noteHandle
• The
argument is the file handle that the
noteHandle
Returns
An integer that represents the number of key/value pairs in the Design Notes file.
BOOL GetNotesKeys()
Description
This function gets a list of all the keys in a Design Notes file.
Arguments
FileHandle
, char*
noteHandle
key in the Design Notes file that is associated with the
comments
keyName[64]
OpenNotesFile()
OpenNotesFile()
int
keyBufArray[64],
keyArrayMaxLen
function returns.
function returns.
DREAMWEAVER CS3
29
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents