--- mstools/samples/rpc/dict/readme.txt 2018/08/09 18:20:01 1.1 +++ mstools/samples/rpc/dict/readme.txt 2018/08/09 18:20:58 1.1.1.2 @@ -1,9 +1,9 @@ /*************************************************************/ -/** **/ -/** Microsoft RPC Examples **/ -/** Dictionary Application **/ -/** Copyright(c) Microsoft Corp. 1991 **/ -/** **/ +/** **/ +/** Microsoft RPC Examples **/ +/** Dictionary Application **/ +/** Copyright(c) Microsoft Corp. 1991 **/ +/** **/ /*************************************************************/ Overview: @@ -32,7 +32,8 @@ the use of [context_handle]. Context ha using a global primitive handle [implicit_handle]. State was added to remote dictionaries in order to allow sharing them, -and maintain reference counts. At this time, however, access to shared +and maintain reference counts. +At this time, however, access to shared dictionaries is *not* serialized! By default each client gets his own copy of the dictionaries. To use shared dictionaries, start the client using the -s switch. @@ -47,18 +48,33 @@ The private iterator can be reset to DIC Building on Windows/NT ---------------------- -On an Windows NT PDK machine type to the console: +In a Windows/NT SDK environment type to the console: + +-> set NT_I386=1 + + or + +-> set NT_MIPS=1 + + depending on your hardware. + +In a DOS (or a DOS prompt under Windows 3.X) type: + +-> set DOS=1 + +In all three environments type: -> nmake cleanall --> nmake all +-> nmake To remove only object files type: -> nmake clean -To build in the NT development environment: +Alternatively, in the DOS environment only, you can avoid defining +the DOS environment variable and invoke nmake as follows: --> nmake NTENV= all +-> nmake -f makefile.dos Using the program: ------------------ @@ -167,22 +183,24 @@ Client side: into a test loop which prints the dictionary tree and prompts the user for additional input by printing the following usage message: - Usage: - Type a single character, followed by an optional key as follows: +Usage: +Type a single character, followed by an optional key as follows: i :: Insert into dictionary d :: Delete from dictionary f :: Find in dictionary - N :: next of current item in dictionary - P :: previous of current item in dictionary - n :: Next of local current item in dictionary - p :: Previous of local current item in dictionary - h :: Head (first item) of dictionary - t :: Tail (last item) of dictionary - ? :: Print this message - q :: Quit + N :: next of current item in dictionary + P :: previous of current item in dictionary + n :: Next of local current item in dictionary + p :: Previous of local current item in dictionary + h :: Head (first item) of dictionary + t :: Tail (last item) of dictionary + ? :: Print this message + q :: Quit + +where is - is "); +next op (i d x f n N p P h t ? q): Server side: ------------ @@ -206,7 +224,6 @@ Keys are a pair of the form