|
279815 - How To Validate User Credentials from Visual Basic by ...
|
Total Hit (3026) |
A user's credentials are made up of his or her user name and password, which can be used to validate the user on a given Microsoft Windows NT, Microsoft Windows 2000, or Microsoft Windows XP domain. This article demonstrates how to call the Security Support Provider Interface (SSPI) functions from M
....Read More |
Rating
|
|
|
How to drop all temp tables created by current connection.
|
Total Hit (7549) |
Few days ago I came up with one problem. I was tesing a script in query analyzer. This script was using several temp tables so every time I run this script I had to make sure that all temp tables are dropped before I run the script otherwise it will give bunch of errors. So I decided to write a proc
....Read More |
Rating
|
|
|
|
|
|
|
How to display balloon style tooltip (Updated)
|
Total Hit (16812) |
Using api you can create ballon style tooltip. You can also set varous parameter for tooltip i.e. Delay time, Style, Color, font etc...
I have used IFont to get font handle from StdFont but IFont may create problem sometimes. Check the following article to convert StdFont to APIFont
«a href='h
....Read More |
Rating
|
|
|
How to do Asynchronous Loading of Data Without Threading.
|
Total Hit (3815) |
Sometimes we need to work with long running task but still we dont want to stop responding other events in this type of situation mostly we will think about implementing threading. But here is more easy way without implementing threading.
Today we will discuss about IAsyncResult class found in Sy
....Read More |
Rating
|
|
|
|
Tutorial on Working with File I/O in VB6
|
Total Hit (4287) |
«b»Reading from a file«/b»
«code LangId=1»Public Function ReadFromFile(FilePath As String) As String
Dim iFile As Integer
Dim s As String
'//Check for File Path
If Dir(FilePath) = "" Then Exit Function
On Error GoTo ErrorHandler:
iFile = FreeFile
Open FilePa
....Read More |
Rating
|
|
|
|
|
How to Cancel Printing job sent to Printer.
|
Total Hit (3121) |
To learn more about Printing Using API click on the folloing link
«a href='http://msdn.microsoft.com/library/en-us/gdi/prntspol_0r1j.asp'»http://msdn.microsoft.com/library/en-us/gdi/prntspol_0r1j.asp«/a»
|
Rating
|
|
|
|
Path API Demo (BeginPath, EndPath, AbortPath)
|
Total Hit (4327) |
This is very simple demo to demonstrate how to use path API in grawing.
To learn more about path Please visit following URL
«a href='http://msdn.microsoft.com/library/en-us/gdi/paths_8acz.asp'»http://msdn.microsoft.com/library/en-us/gdi/paths_8acz.asp«/a»
«b»To implement Quick Demo, Copy/Past
....Read More |
Rating
|
|
|
|
How to shutdown remote machine on a network using API.
|
Total Hit (4913) |
This demo will show you how to shutdown remote machine in a specified interval. When you shutdown machine you will see following warning message.
«BR»«P Align=center»«img src='/Main/Articles/Lang1/Cat3/Code3580/image3580_1.gif'/»«/P»«BR»
«b»For Quick Demo«/b»
1. Start a new project in Vis
....Read More |
Rating
|
|
|
How to display API Error Description.
|
Total Hit (4070) |
When you execute any system API generally it returns success/failure using return value. To find out any error you have to use GetLastError api or Err.LastDllError property of Err object in VB. But it will return only ErrorCode not description. You can use following code to get description of API Er
....Read More |
Rating
|
|
|
Chattanoga trip - Part1
|
Total Hit (2123) |
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3582/image3582_1.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3582/image3582_2.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3582/image3582_3.JPG'/»«/P»«BR»
«BR»«P Align=ce
....Read More |
Rating
|
|
|
Chataanoga trip - Part2
|
Total Hit (2145) |
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3583/image3583_1.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3583/image3583_2.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3583/image3583_3.JPG'/»«/P»«BR»
«BR»«P Align=ce
....Read More |
Rating
|
|
|
Chattanoga trip - Part3
|
Total Hit (2147) |
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3584/image3584_1.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3584/image3584_2.JPG'/»«/P»«BR»
«BR»«P Align=center»«img src='/Main/Articles/Lang8/Cat254/Code3584/image3584_3.JPG'/»«/P»«BR»
«BR»«P Align=ce
....Read More |
Rating
|
|
|
|
|
How to display COM error description in SQL Stored procedure ?
|
Total Hit (3480) |
When we deal with COM object using sp_OAxxxx stored procedure sometimes you need exact error description to Identify the problem. Here is the solution for this type of problem. sp_displayoaerrorinfo stored procedure will display any error encountered while executing sp_OAxxxx stored procedure.
....Read More |
Rating
|
|
|
How to export table or Query output to a file using BCP
|
Total Hit (2930) |
To export Query result to a file use following command to your command prompt
«code LangId=6»EXEC master..xp_cmdshell
'bcp "select * from pubs..authors" queryout c:\authors.txt -c -Usa -Pmypassword'«/code»
To export table to a file use following command to your command prompt
«code LangId
....Read More |
Rating
|
|
|
|
|
Get IP from Host Name.
|
Total Hit (4067) |
This example will show you how to get IP address from host name and also How to retrive all associated IPs to your local machine.
|
Rating
|
|
|
Use CopyMemory api for performance.
|
Total Hit (4623) |
This article will demonstrate that how CopyMemory can boost the performance of for some simple operations (e.g string append.). Here we will banchmark VB Mid function vs CopyMemory Api.
|
Rating
|
|
|