Advertisement

Results for "Author: adam murray"

2002ASP #3184
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

2002ASP #3185
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

2002C #11788
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

2002C #11789
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

2002VB #20392
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

2002VB #20393
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

ASP_Volume2 #32840
API AppendToLog

Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.

ASP_Volume2 #34914
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

ASP_Volume2 #34932
Mutex APIs: Make multiple instance-aware programs!

Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.

ASP_Volume2 #36005
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

ASP_Volume3 #49060
Mutex APIs: Make multiple instance-aware programs!

Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.

ASP_Volume3 #49061
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

ASP_Volume3 #49062
API AppendToLog

Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.

ASP_Volume3 #49063
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

C_Volume2 #73902
API AppendToLog

Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.

C_Volume2 #75976
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

C_Volume2 #75994
Mutex APIs: Make multiple instance-aware programs!

Uses Mutex Objects to track multiple instances of the same .EXE. A Mutex object is an interprocess synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex. Use of mutex objects makes possible batch processing and other synchronous tasks, from concurrent instances of the same application.

C_Volume2 #77067
Magnetic Forms

Modified from Benjamin Wilger's original source. Gives forms a Winamp-like docking behavior. I have added support to make the forms move together when docked, just as in Winamp. Previously, the windows would dock to each other, but not move together. This version adds the option of making one form the "master" of the other docked forms, so that when the master form is dragged, forms docked to it are dragged as well. Many, many thanks to Benjamin Wilger for his code, without which this version would not exist. (See http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=27489&lngWId=1 for the original code.) Please cast a positive vote if you enjoy this code. It only takes a few seconds, and I feel less like I'm operating in a vacuum here.

Java_Volume1 #92446
API AppendToLog

Appends a string to a specified file (or creates the file if needed). Unlike the open/print/close method, this subroutine uses Win32 API calls. This ensures that your application will be able to write to its log file correctly, even if another user has that log file open in an editor during your write attempt. This is the most practical approach to production-quality logging.

Java_Volume1 #94520
VB Code to Shell and Wait

Executes a command passed as a string, and waits for it to finish. Example: lResult = ShellAndWait("d:\ztbold\ztw.exe", 10000) That calls the d:\ztbold\ztw.exe and waits for it to exit for up to 10,000 milliseconds. If you want to call something and redirect its output to a file, you'll have to call CMD.EXE like this: lResult = ShellAndWait("cmd.exe /c MyCommand.EXE > MyFile.TMP", 10000)

Languages
Top Categories
Global Discovery