Advertisement

Results for "Author: robert dick"

2002ASP #1287
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

2002C #9891
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

2002VB #18495
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

ASP_Volume2 #33842
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

ASP_Volume3 #45945
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

C_Volume2 #74904
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

Java_Volume1 #93448
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

1_2002 #105249
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

2_2002-2004 #120595
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

3_2004-2005 #139139
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

4_2005-2006 #151242
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

5_2007-2008 #173760
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

6_2008-2009 #196278
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

7_2009-2012 #218796
Api Any Calls/Declarations

This is not really a code contribution, but a small tip on API parameter lists. Ever seen an Api Function which expects parameters of type 'Any' ? . For example domain/user maintenance calls in the Nt Networking Api or similar (Add Users/Groups etc..). These parameters usually (in the C/C++ base code) are probably expecting string pointers , an other example is in the case of the AddGroup Api call in the NetApi.Dll, where it expects the name of the server in one of the parameters in the list. How you actually pass the pointer is by:- eg. '### ' Api Function for example:- ' ApiFunction(sArgument as Any) As Long ' Dim strAnyString As String Dim strPass() As Byte Dim lRet As Long strAnyString = "String as argument" strPass = strAnyString lRet = ApiFunction(strPass(0)) '### What we're basically doing is getting the string to pass, assigning it to another variable array of type 'byte', then passing the first array segment to the Api function. Easy enough? Hope you understood all that ! Robert Dick

Languages
Top Categories
Global Discovery