API/Dll Library Search?
Is there any way to search through dll's and APIs? Ie, is there a list of all the functions, either inbuilt into VB, or on the web? Thanks in advance
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Appearence ,search Like MSDN Library
Hi,
1 ) Program that allows to search strings like msdn library and select the finded text.How?
2 ) When I use List1.AddItem property I want to make appearence like this ;
Derek Anderson_____________ Computer Engineer
Mark Pope__________________Sales
Not like:
Derek Anderson__________Computer Engineer
Mark Pope___________Sales
HOW?
In Search Of Good Quality Crypto Library?
Hi,
I have developed a crypto product which is working fine. But now I want to release its real version with high quality algorithms. For that I need good and tested FREE encryption libraries and ZIP libary.
Please help me.
A Search Function For Excel 2000 That Will Search All Cells On All Sheets Of A Workbook
I have been buiding a database in excel,...... I know access, but the people I work for refuse to use it so I am stuck with excel, unfortunatly in excel 2000 you can either highlight all your tabs to search the whole book, or you are stuck searching just one page. That and I need something that will also go to next. There have been a few ideas I have tried, none of which worked well at all.
UpperCase And LowerCase Interferring In Search && Location Search
Title kinda explains it... In a listbox I have a list of words (Lots of them). Some of these words have capital letters (Names and such) but when the 'user' types in a word in the search textbox with all lowercase letters, it only lists the words that start with lowercase letters
(Example)
User Types in = "case"
Words in results:
case
casebox
Words not in results, but should show up:
Case
Case of Billy
Case of the cases of caseness (Yes, i know i'm making up words, but these are examples)
So, i need it to search for upper and lower case letters in a word, no matter where it is...
Also, I need the keysearch to pick up on words in the middle of the string...
(Example...)
User types: "case"
Should show but doesn't:
Guitar Case
Violin Case
The fifth word is Case and it won't show up!
So, I hopefully got that squared away 'clearly' if it is even remotely close to that... I'm searching for these things in a text file, using the 'Reading Records' Lesson I used in class. The notepad looks like this:
"Guitar Case"
"Case"
"Violin Case"
"case"
"casebox"
"Case of Caseness"
and i'm using this code to recall the data, so these fixes have to fit in with it:
Code:Private Sub txtboxSearch_Change()
Dim intfile As Integer
Dim strSearch As String
Dim strResult As String
Dim strPattern As String
strSearch = txtboxSearch.Text
intfile = FreeFile
listbox01.Clear
Open "D:Results.txt" For Input As #intfile
Do While Not EOF(intfile)
Input #intfile, strResult
strpattern = strSearch & "*"
If (strResult Like strPattern) Then
listbox01.AddItem strResult
End if
Loop
Close intfile
End Sub
This search works really well , (except for the problems above of course)... If you can't see how strPattern works, it puts what the user typed in the box with an astrik in front of it so I can use the 'Like' thingy <---(newbie word)
Thanks in advanced!
Search Line 0 Loop And Search Line1
Hi,
im new to visual basic and was wondering if anyone could help me out.
I have looked around the fourms and all the color changeing seems to deal with words as they are typed. All i want to do is create a button that changes the exsisting keywords in a rich text box red.
Heres what i am trying to do....
Button to color the word "change" in a rich text box red
Use a while loop untill end of file
Start on line 0
If the line contains the word "change" then color it red
Increment line start postion so that is starts on line this time
loop
I have been tring to do this with no luck.
I have tried to use a while loop like below, i have no idea how to get the line number or start it on line 0.
Any help would be great. Thanks.
Code:
While (Eof = False) Then
Text1.SelStart = Instr(1, Text1.Text, "change") + 1
Text1.SelLength = Len("change")
Text1.SelColor = vbRed
Loop
This code is not texted as i frogot the disk i had the code i was working on. this is what i rember of it.
Search Record From Database Using Search Button
I have a form that has a text field. I want the user to type the keyword in the textfield and hit the search button. The search button should then connect with the ms access database and retrieve the record. could someone please guide me in the right direction to do this. I am very new to the visual basic 6. thanks.
louie
Can I Make A Search Command Search Any Faster?
Ok, you all have been extremely helpful in the development of my first big project. Hopefully I will get it completed here in the next couple of days.
Anyways, I have a database with about 820,000 listings in it, my search feature work great except for the fact that its slow, i need a way, if there is any to make it search faster. Is it possible?
Here is a copy of the search command button code:
Dim strApostrophy As String, strQueryString As String
Dim strCallToFind As String
strApostrophy = "'"
strCallToFind = txtSearch.Text
strQueryString = "Call = " & strApostrophy & strCallToFind _
& strApostrophy
frmCallLookUp.datCallListings.Recordset.FindFirst strQueryString
If frmCallLookUp.datCallListings.Recordset.NoMatch Then
MsgBox "No calls matching!"
Else
frmCallLookUp.Show
End If
Search List Box Multiple Search Items
I want to search a list box for several search criteria and if found move to next criteria if not found put in another list box then move to next criteria!
E.g Search list box for Beacon if found search list box for Yomama if not found add beacon to list2!
This should be easy but i'm stuck!
Please help.
thanks
B
Help Setting Up A Search Button To Search Access Db
Hi I am new to vb6 I used the wizard to set up a form in vb6 to access a access 2000 database. It works great I want to add a button to search the LastName field in my table. I have added the label,text box and command button to the form. I double clicked the command button to get to the code screen. I am not sure what code to add to this button to get it to use the textbox to search the lastname field?
Thank Tim
Coding A 'Search' Button To Search A SQL Database?
I have a SQL database titled, "Test". I have a table in this database, titled, "Customers". Within this particular table, I have quite a few fields:
Counter (primary key), FirstName, LastName, Address, City, State, Zip, CustID.
I have a form that's setup, with a variety of text boxes. In this form, I have a text box setup for the customer's First Name, the customer's Last Name, the customer's Address, another textbox for the customer's City, a ComboBox for the customer's State, and a text box for the customer's zip and customer ID.
The name of these field controls on the form are:
txtFName for the Customer's First name, txtLName for the Customer's Last name, txtAddr for the customer's Address, txtCity for the customer's City, cboState for the customer's State, txtZip for the customer's zip, and txtcustID for the customer's ID.
Now, I a few command buttons on this particular form. I have a 'Delete', an 'Update', and a 'Search' button.
I'm able to easily code the 'Delete' and 'Update' buttons fairly easily, using a Select statement to select the data that's assigned to the textField (and comboBox) controls on the form, and update the fields accordingly within the Database. Everything's been going fairly smooth, until I get to coding the "Search" button.
Beforehand, to see as to whether or not my program was able to work, I had always coded in a:
SQL = vbnullstring
SQL = "Select * From Test..Customers"
Conn.Execute SQL
Shortly after this, I end up assigning the textFields mentioned above, to displaying the information. Essentially, in a database of 10 records, the first record out of the 10 is placed onto my form, listing the customer's first name, etc...
(For the sake of simplicity, I've already coded "Previous" and "Next" buttons to cycle through the records, to see as to whether or not a record has been deleted or updated.)
However, when I try to code the 'Search' button, I'm confused as to how to apply it where a user can enter an information within any text field, and records matching such information will be listed?
For example:
A user enters a last name, and perhaps, a city. How would I go about compiling a SQL statement that will seek out only records matching such things that have been entered, be it a single field, or multiple fields?? I'm guessing concatenating a WHERE statement might help, but I totally blanked out and can't seem to get this working properly. Please help!
Search Box - Change To Multiple Search
Please look at the following code, at the moment it just lets you search one site at a time, id like to somehow have an option usually a checkbox, that lets a user select whether or not they search a single site or all of them with the one keyword:
Code:
Option Explicit
Dim mstrName(1 To 100) As String
Dim mstrSite(1 To 100) As String
Dim mstrAdd(1 To 100) As String
Public Sub cboSite_click()
txtMask.Text = mstrSite(cboSite.ListIndex + 1)
txtSep.Text = mstrAdd(cboSite.ListIndex + 1)
End Sub
Public Sub cmdGo_Click()
Call txtSearch_Change
DoEvents
Call OpenInternet(Me, txtAddress.Text, Normal)
End Sub
Public Sub OpenInternet(Parent As Form, URL As String, WindowStyle As T_WindowStyle)
ShellExecute Parent.hwnd, "Open", URL, "", "", WindowStyle
End Sub
Private Sub Command_Click()
Unload Me
frmEdit.Show
End Sub
Private Sub Form_Load()
Me.Caption = "Simple Search - Build " & App.Major & "." & Format(App.Minor, "00") & Format(App.Revision, "00")
'Stay on Top
SetWindowPos hwnd, conHwndTopmost, 100, 100, 505, 72, conSwpNoActivate Or conSwpShowWindow
'Set Sites
Call proSites1
'Set Window Position
Dim xTop, yLeft As Integer
xTop = GetINI("Window Position", "Top")
yLeft = GetINI("Window Position", "Left")
If xTop > (Screen.Height - Me.Height - 500) Then
Me.Top = Screen.Height - Me.Height - 500
Else
Me.Top = xTop
End If
If yLeft > (Screen.Width - Me.Width) Then
Me.Left = Screen.Width - Me.Width
Else
Me.Left = yLeft
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
SetINI "Window Position", "Top", Me.Top
SetINI "Window Position", "Left", Me.Left
End Sub
Public Sub proSites1()
cboSite.Clear
Dim intFree, X As Integer
X = 1
intFree = FreeFile
Open App.Path & "Simple.nfv" For Input As #intFree
Do Until EOF(intFree)
Input #intFree, mstrName(X), mstrSite(X), mstrAdd(X)
X = X + 1
Loop
Close
For X = 1 To UBound(mstrName)
If mstrName(X) <> "" Then
cboSite.AddItem (Format(X, "00") & " - " & mstrName(X))
End If
Next X
cboSite.ListIndex = 0
End Sub
Private Sub OsenXPButton1_Click()
Call txtSearch_Change
DoEvents
Call OpenInternet(Me, txtAddress.Text, Normal)
End Sub
Private Sub OsenXPButton2_Click()
Dialog.Show
End Sub
Private Sub txtSearch_Change()
Dim I, X As Integer
Dim strOut, strSite As String
I = InStr(1, txtMask.Text, "###")
strOut = Left(txtMask.Text, I - 1)
strSite = txtSearch.Text
txtPath.Text = strSite
X = 1
Do Until X = 0
X = InStr(1, txtPath.Text, " ")
If X <> 0 Then
txtPath.SelStart = X - 1
txtPath.SelLength = 1
txtPath.SelText = txtSep.Text
End If
Loop
strOut = strOut & txtPath.Text
If Len(txtMask.Text) - I - 2 < 1 Then
strOut = strOut
Else
strOut = strOut & Right(txtMask.Text, Len(txtMask.Text) - I - 2)
End If
txtAddress.Text = strOut
End Sub
Private Sub txtSearch_GotFocus()
txtSearch.SelStart = 0
txtSearch.SelLength = Len(txtSearch.Text)
End Sub
Private Sub txtSearch_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call cmdGo_Click
End If
End Sub
There is about 15 websites in a drop down menu, id prefer to have a little checkbox so if the user chooses to search all 15 sites at once, then they could tick the box, enter the keyword, and search, and 15 windows or tabs etc would open, displaying the result.
Any help please, if I could add anything to the code to make this happen?
Thank you.
Search Through Recordset Using Binary Search
Hi,
Is it possible to search through a recordset using a Binary Search?
What I'm doing currently is searching through a recordset of x,y coordinates and looking for the the one that is closest to the current mouse position, and then highlighting that coordinate. It goes too slow!
Instead of looping through each and every point to check it, I'd rather generate a query that includes the x and y coordinates as well as the distance from the mouse cursor (x - xPos) ^ 2 + (y + yPos) ^ 2 (where xPos is the current x position of the mouse, and yPos is the current y position of the mouse)
Then I would like to search through this recordset using the binary search to minimize the # of calculations.......but how would you do that using binary search? How do you move to a specific location in the recordset?????
Anyone?
Search And Search Results In Userform
I have userform with two textboxes at top, one labelled as 'search textbox'.I have listbox labelled as 'search results'.The other textbox labelled 'result textbox'.
If a user enters 3 letters in 'search text box',basing on a formula,results of that formula will display in listbox.After selecting the one of the value from list box the selected value has to be displayed in textbox2 'result textbox'.How this task can be acieved ?
my formula is =index(sheet1a$2:a$100,small(if(left(sheet1a$2:a$100,3)='search textbox'.value,row($1:$99))),row(a1)))
Thanks if any body help in this regard.
Search For Word, Then Continue With A Second Search
I am beating my head on the screen trying to resolve the final step in my project.
I Need to search a text.file for a specific word. "QQQQQ"
Once the word is found mark the location as startOfLine
THEN
starting at startOfLine begin a new search for a specific word "RRRRR"
Once the second word is found, mark the location as endOfLine
Using startOfLine and endOfLine, copy all the data between them to put on text5.text box
Dim nextline As String
Dim there As Integer
Open "c:myFile.txt" For Input As 1
Do While Not Eof(1)
Input #1, nextline
there = Instr(1, nextline, "QQQQQ")
If there <> 0 Then
'found string now = startOfLine
'Start searching again beginnng with startOfLine for "RRRRR"
'If found, then found string now = endOfLine
Copy all data from startOfLine to endOfLine can copy to Text5.text
Else If there = 0
'delete last entry from queue
End If
Loop
Close #1
Anyone have an example of this? or perhaps used this code in an app?
Thanks
Aurbo
Creating A Search Cmd To Search For Records In Db
Hi,
I am trying to create a search button that will enable me to input data into text boxes on a form and show the results on a datagrid in a new form.
The form with the search button has 4 text boxes and i want to check the data inputted in the text boxes to see if they match any records in my db and then display the results on the new form. I am using ADO Data Control to access data from my MSACCESS db.
Can somebody PLEASE help me with this as i have been stuck on it for 2 days now and am getting really frustrated!!!
PCI Library
Hi, anyone know some library to send data a PCI port, and also have a PCI Slot pins names. ???
Thanks !!
Library
Hi! I would like to ask someone if you could give me information on how to make a simple library/document management system. What should I need to do...
Thanks in advance!
Right$ Mid$ Library ????
Hello just a simple question...
what library do i need to run these functions. it seems my visual basic doesn't have it..
asc(x) ascii(x)
chr$(x) char(x)
lcase$(x) lower(x)
len(x) datalength(x)
ltrim$( x) ltrim(x)
mid$(x,y,z) substring(x,y,z)
right$(x,y) right(x,y)
rtrim$(x) rtrim(x)
space$( x) space(x)
str$(x) str(x)
ucase$( x) upper(x) ....
...
......
Thanks....
Which Library?
Is there any difference between Microsoft ActiveX Data Objects 2.8 Library and Microsoft ActiveX Data Objects 2.7 Library?
I am only using ADO to execute commands of the following types:
Code:
myCon.ConnectionString = "....."
myCon.Open
myCon.Execute "SQL Statement here"
Set myRec = myCon.Execute("SQL Statement here")
myCon.Close
I've been using the 2.8 library at home, but school only has the 2.7 library. I'm just trying to find out in advance whether my program will still work. Will I need to adapt any code, to allow for the different libraries?
John
How To Use A C Library In VB
Hello, API people.
I am not sure I am posting my question in the right forum. I thought you guys are an expert at the library things.
I downloaded a C library called dna.dll for numerical integration. My problem is that I don't know how to use in VB.
anyone can help me out?
Thanks,
TK
How To Add Library (dll)
Hello!
I want to add a library to my project. It's the fast fourier transform library fftw. It has .dll .exe .def .h files in it. Do i have to use the implib function in order to change the .dll files to .lib??? And which option allows me to add the library to my form, so i can then load the header file and use the functions to calculate the fourier values???
Thank's!
RSA Library
Does anyone know VB RSA library?
Or maybe not VB library, but where encrypt/decrypt functions get P Q D and E as arguments(not hole keys)?
Thank You, AntonM
CDO Library?
hey anyone know where i can find the CDO library 1.2?
ZIP Library
Hello
I'm looking for a ZIP library. That is to say a DLL library to ZIP files into a ZIP archive (like Pkzip or Winzip does).
It must be free of charge.
Does some one have this ???
Thank you for your help.
Paco
Sms Library
The declarations given at:
http://msdn.microsoft.com/library/de...appprogsms.asp
are
Public Declare Function SmsOpen Lib "SMS" (ByVal ptsMessageProtocol
As String, ByVal dwMessageModes As Long, ByRef psmshHandle As
Long, ByRef phMessageAvailableEvent As Long) As Long
Public Declare Function SmsSendMessage Lib "SMS" (ByVal smshHandle
As Long, ByVal psmsaSMSCAddress As Long, ByVal
psmsaDestinationAddress As String, ByVal pstValidityPeriod As
Long, ByVal pbData As String, ByVal dwDataSize As Long, ByVal
pbProviderSpecificData As String, ByVal dwProviderSpecificDataSize
As Long, ByVal smsdeDataEncoding As Long, ByVal dwOptions As Long,
ByRef psmsmidMessageID As Long) As Long
Public Declare Function SmsClose Lib "SMS" (ByVal smshHandle As
Long) As Long
Can anyone tell me where to find the sms libray ?
VB Help Library
Am new at this and learning. I'm in Excel and entering some VB code. When I hit the 'help' button, the library's label says Micorsoft Visual Basic Help, but the library displayed is one for Excel. How do I get to the VB help library? Thanks.
Wot Library/API ?
Guys, does anyone have any code or have an idea how to programatically Stop a nominated Service in Win2k ??
Thanks
Peeman
Library
I was wondering if vb had an easy way to start a code library where i can keep all snippets of code. i would like to stay away from just typing it in notepad or somtehing. is there anyother programs that do this?
ADO 2.5 Library
Hi ,
I faced the following problem a few days back:
I had build my apps using the ado version 2.1
Then sometime later Office2000 security patch installed MDAC2.5 on my workstation.Without knowing this I compiled my app and ran it on a P.C which had the Previous verion of ADO library.My App started bombing.
Can this be because of no backward compatibllity of the newer version.
Please note that I have not used any methods or features that were not present in the older version
I have just recompiled the App.
Has anyone so far faced this issue of backward compatibility between the 2 versions.
If so please let me know and if there is any official documentation of the same.
Sachin
Library
Hi
IN P.B. there is pfc library is available with it.
is there any library came with microsoft vb.
Thank
Niraj Parikh
PDF Library
I'm seeking a PDF library so that i can create PDF's dynamicly from my code. I've asked about this before, and someone pointed me to Absolute PDF
My program allready creates printfiles in the PCL format. I would need to rewrite my entire program if i was to use this library.
I was wondering if anyone new any PLC > PDF or postscript > PDF library instead..
Thanks, Anders
What Is The Library
What is the library of this code:
The error is all about library..
Private Sub Form_Load()
SetWindowPos hwnd, conHwndTopmost, 0, 0, 0, 0, _
conSwpNoActivate Or conSwpShowWindow
Data2.Refresh
Data2.Recordset.MoveFirst
While Not Data2.Recordset.EOF
If Data2.Recordset!brgy <> "Others..." Then
Data2.Recordset.edit
Data2.Recordset!others = ""
Data2.Recordset.Update
End If
Data2.Recordset.MoveNext
Wend
Image1.Left = (Screen.Width / 2) - (Image1.Width / 2)
End Sub
I spend this project twice I can
What Is The Library
Hello friends,
Somebody help me to give this library in this program:
Private Sub tbToolBar_ButtonClick(ByVal Button As Button)
On Error Resume Next
timTimer.Enabled = True
Select Case Button.Key
Case "Back"
brwWebBrowser.GoBack
Case "Forward"
brwWebBrowser.GoForward
Case "Refresh"
brwWebBrowser.Refresh
Case "Home"
brwWebBrowser.GoHome
Case "Search"
brwWebBrowser.GoSearch
Case "Stop"
timTimer.Enabled = False
brwWebBrowser.Stop
Me.Caption = brwWebBrowser.LocationName
End Select
End Sub
Sms Library
The declarations given at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppc2k2/html/introappprogsms.asp
are
Public Declare Function SmsOpen Lib "SMS" (ByVal ptsMessageProtocol
As String, ByVal dwMessageModes As Long, ByRef psmshHandle As
Long, ByRef phMessageAvailableEvent As Long) As Long
Public Declare Function SmsSendMessage Lib "SMS" (ByVal smshHandle
As Long, ByVal psmsaSMSCAddress As Long, ByVal
psmsaDestinationAddress As String, ByVal pstValidityPeriod As
Long, ByVal pbData As String, ByVal dwDataSize As Long, ByVal
pbProviderSpecificData As String, ByVal dwProviderSpecificDataSize
As Long, ByVal smsdeDataEncoding As Long, ByVal dwOptions As Long,
ByRef psmsmidMessageID As Long) As Long
Public Declare Function SmsClose Lib "SMS" (ByVal smshHandle As
Long) As Long
Can anyone tell me where to find the sms libray ?
Anjanesh
How To Add Library (dll)
Hello!
I want to add a library to my project. It's the fast fourier transform library fftw. It has .dll .exe .def .h files in it. Do i have to use the implib function in order to change the .dll files to .lib??? And which option allows me to add the library to my form, so i can then load the header file and use the functions to calculate the fourier values???
Thank's!
Add Library
Hi
How can i add libraries in my project in VisualBasic 6. I want to add Fast Fourier Library. Is possible that?
API Library
Somebody knows a site with all API calls and your meanings for VB6?
Thanks!
API Library
Somebody knows a site with all API calls and the meanings, for VB6?
Thanks!
C Library
How do I use a C Library in Visual Basic?
Is This Bug In ADO Library?
Hi Gurus,
Help me out. I reckon this might be a bug in ADO library. I have following scenario.
I am using ActiveX Data Object 2.5 library in VB 6.0 to connect to MS Access 2000 database (say PC2020.mdb). PC2020.mdb database is password protected using database password (i.e. Tools|Security|Set Database Password). I use following connection string to connect to database “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:pc2020databasePC2020.mdb;Jet OLEDBatabase Password=<password>”.
Everything works fine. But once I have Access database named System.mdb in the same directory as PC2020.mdb I am not able to connect to the database. The ADO’s Connection.Open method gives following error.
Error Number: -2147217843
Error Description: Not a valid password
Using Access I can open PC2020. But I cannot connect to any database using ADO from VB if there is a database named System.mdb in that directory.
I am puzzled. I had terrible time figuring the reason. Please Gurus enlighten me.
Shripad
--Take the life as it comes--
Using C++ Or C Library
Hi all
Can anybody tell me how to use a c++ Library file in VB. Im new to VB and would appreciate an example if someone knows.
Thanks in advance
Joel
Library
Suppose i want to create an object say xlApp as,
xlApp As excel.Application
But i want to do this only if i find out that there is excel installed on the computer.
How should i do it?
Can i somehow find out if excel is installed ?
Regards,
Amruta.
Library
I would like to write a program with all of my VB programs and C++ programs from school. Like the MSDN Library. I figure out how to design it, should I put all of my programs into a database and then make a database program in VB? Can anyone give me suggestions on a good design for my task?
Msimg32 Library?
hello
today i stumbled across the transparentblt api in msimg32.dll. was great since i was looking for an easy way to create a mask at run time for bitblt, and this api call just solved that problem since i dont even need masks anymore, i just specify a transparent color.
i was just wondering why this command isnt more common. in the forums ive seen questions about transparency and they are always answered with the bitblt 2 statement method involving a mask. is there some drawback, functionality- or compatibility-wise? or is it that most people just dont know about it.
i want to make sure before i base too much code on this api call that there are no compatibility issues or drawbacks to using this method.
and on a side question: ive seen a program called RealBasic which can supposedly port vb code to linux/mac. im hoping someone knows something about this program or another like it. basically im wondering whether api calls are compatible with porting, or whether there are simply api calls on linux and mac that parallel the windows api, so that porting wouldnt be a problem using this type of software. basically im looking at distributing software on these 3 os's and so im hoping a code based on many api calls can be easily modified, or whether i should stick to standard internal controls, etc.
thx for any help
|