|
Works perfectly - Thanks!!!
|
|
|
|
|
Hello All,
Can I use declare API function in vbscript file and use that function via wrapper function
Develop2Program & Program2Develop
|
|
|
|
|
No. VBScript, thankfully, has no facility to call the Win32 API directly. You'll have to write a COM wrapper around the functions you want to use, using either VB.NET or VB6, or whatever else you want, exposing methods and properties to manipulate the data you want. You can then instantiate that class using CreateObject in VBScript.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Dave Kreskowiak wrote: No. VBScript, thankfully, has no facility to call the Win32 API directly.
I don't agree. A COM wrapper to Win32 could be handy to have some fun scripting.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: I don't agree.
I sure as **** don't want someone having fun at my expense. I want to have fun at theirs!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Dave Kreskowiak wrote: I sure as **** don't want someone having fun at my expense. I want to have fun at theirs!
I never asked you to build up such a wrapper...
BTW, Could you, please, build it for us?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
OK, now you're startin' to sound like your serious. You're creepin' me out man!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
hello
how can i search for information that is in access and display it in datagrid
|
|
|
|
|
You do a query on the database and set the datasource of the grid to be the data. If you try google, there are tons of tutorials that will go over it better than I can in a forum post.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all
i need help......
i have one column in the database viz type its rows are like as fol
level1-type1
level1-type2
level1-type3
level1-type4
level2-type1
level2-type2
level2-type3
level2-type4
i need do display in the flexgrid in the foll form
level1
type1 - some data
type2 - some data
type3 - some data
type4 - some data
level2
type1 - some data
type2 - some data
type3 - some data
type4 - some data
plz help ....
thanks in advance...
|
|
|
|
|
devkranth wrote: have one column in the database
Then you need to normalise the data into two columns.
|
|
|
|
|
Hi Am newbie, i just join government Department,a Programmer before me, wrote an aplication that used this code.Am not used the way he connected to the Database, he was using VB6 and am using VB6 too, so i have to built a new application or maintain this one, there was no documentation for his application. Am use use to the Following Step , please tell me is it safe and worth it to continue with it or should i use this guy's connection style
step 1:
Declare the Connection object
And the Recordset
step2:
In the Form load initialize the connection object and recordset, set the cursor type, location and lock type, provider="SQLOLEDB", connectionstring,open the connection, populate, after job done closed connection. all this Accomplished with ADo. Please give me Advices and link to site so i can read more .
Thanks
Dim rS As New ADODB.Recordset
Vuyiswa
|
|
|
|
|
I'm not sure if you should maintain or rewrite the application (although with no documentation it might be tricky to maintain) but I do have a link to a list of ways to connect to various types of databases.
http://www.carlprothman.net/Default.aspx?tabid=81
hope it helps
There are 10 types of people in the world: those who understand binary and those who don't
|
|
|
|
|
i need VB6 Connection string
Vuyiswa
|
|
|
|
|
hi,
i need to input a number into a text box, check that number in a access database table, then display another number from the same entry in another text box on the same vb form.
i have the connection code i just need the command code, if anyone knows the code to do this can you tell me what it is. it would be appreciated
thanks
|
|
|
|
|
select secondValue from myTable where firstValue=value ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello. I need your advise about how to solve that. I have a network application that uses a socket to receive some messages. The problem is that the message size isn't always the same. The two first digits indicates the size.
My initial idea is reading these two digits and create an array with the rigth size. Is that possible or is a better idea to solve that?
Regards,
Diego F.
|
|
|
|
|
Use a list, or other dynamic array class.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I currently using VB.NET 2005 with control WebBrowser, it work properly, but when the page have link and target new window, I want it open my application, so please help me.
Regard
Socheat
................
|
|
|
|
|
You can tell the control to not spawn children, not sure if this makes the link work in your current browser.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
When the link with target "_blank" it will open IE, so I don't want like that I want it open application.
................
|
|
|
|
|
Thanks for rewording the question. Let me restate the answer. You can set the browser control to not allow popup windows of any kind, but I am not sure if it will navigate inside the main window, or just ignore them.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have tried but i did not see the property "allow popup", so do you have any comments?
Thanks
Socheat
................
|
|
|
|
|
The link that should open you application. Is that a link in your WebBrowser control or is this external to your app. Like in an email? And is the behavior the same anyway?
Jelle
|
|
|
|
|
I don't understand what you mean? I mention that my application is using WebBrowser it can open any web site buy when the web site contain link with target "_blank" it will open IE automaticly, so I don't want like that I want it open my application for new windows.
Thanks
Socheat
................
|
|
|
|