|
Dear All,
1. Develop by VB.NET 2003
2. Using MS-Access database
3. When execute in Windows NT 4.0 Server, pop up me an error message say "Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine".
Who can tell me what's wrong in Windows NT 4.0 Server.
|
|
|
|
|
Install MDAC if it is not installed. If it is installed try reinstalling it.
If that doesn't help try installing Jet 4.0 Service Pack 8.
You can also use the Component Checker to find problems with your MDAC installation.
|
|
|
|
|
Thank you. I was try myself to install Microsoft Jet 4.0 driver on it. Now can work already.
|
|
|
|
|
Are there any tools available to export Lotus Notes Databases to either Excel or SQL Server 2000?
Thanks
/jason
|
|
|
|
|
I'm trying to encrypt bytes that is larger than the allowed maxim length of RSACryptoServiceProvider.Encrypt. Does anyone know how to do that? Thank you!
Sunniawatz
|
|
|
|
|
Hi,
I am not quite sure if "Is it possible to create a reversible hash?" is the right question here but this is what I am trying to accomplish....
I have certain strings that I would like to convert to somthing unreadable and back to the original text. The key is not only to make the string unreadable but to make it as short as possible as well.
I tried using .NET Cryptography but I cannot convert the hash back to the original string.
Does anyone know how to accomplish this?
Thanks,
Zenly
|
|
|
|
|
A hash by definition cannot be converted back to the original string. Making it short means you throw away information that cannot be retrieved.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
i would like to know using what kind of codes or methodes in vb.net for pocket pc to limited the password can only be set in algha and num,no other symbols....
thanx
go ahead...do best on my works....
|
|
|
|
|
Well, you can use a regular expression to check, or you can create an input control that only accepts those characters.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
but u know.....so how to ? how to creat an input control ? could you pls give me some more details...
thanx...
go ahead...do best on my works....
|
|
|
|
|
Assuming none of the ones you'd find with google can help you...
Basically you derive a class from the input control, and handle the key press events. Use Char.IsLetterOrDigit to check if a key press is what you want, if it's not, then set the Handled property to true and the base method will not be called, therefore the key press will not be accepted.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
how can i check my network is connected, pleaae help me, thanks
kevil
|
|
|
|
|
Hi!
You can use the sensapi.dll of the internet explorer to check if the network is been connected:
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long
This is the API declaration to access the IsNetworkAlive function within the sensapi.dll.
So, just use it like this:
Dim llReturn as Long
IF IsNetworkAlive(llReturn) = 0 THEN
' Not connected code
ELSE
' ... Your code (if connected)
End If
If you need more help, just let me know!
Marcel Erz
-- modified at 2:44 Tuesday 13th December, 2005
|
|
|
|
|
please, i need more help, can yuo give me sample
kevil
|
|
|
|
|
Hi!
Here an other example:
<br />
Private Declare Function IsNetworkAlive Lib "SENSAPI.DLL" (ByRef lpdwFlags As Long) As Long<br />
<br />
Private Const NETWORK_ALIVE_LAN = &H1 ' LAN connection<br />
Private Const NETWORK_ALIVE_WAN = &H2 ' RAS connection(for internet)<br />
<br />
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
Dim llReturn As Long<br />
<br />
If IsNetworkAlive(llReturn) = 0 Then<br />
MessageBox.Show("Your system is not connected!")<br />
Else<br />
If (llReturn And NETWORK_ALIVE_LAN) = NETWORK_ALIVE_LAN Then<br />
MessageBox.Show("Your system is connected to the LAN" + _<br />
" (may be over router to internet too)!")<br />
End If<br />
If (llReturn And NETWORK_ALIVE_WAN) = NETWORK_ALIVE_WAN Then<br />
MessageBox.Show("Your system is connected to the WAN by any" + _<br />
" kind of modem direct connected to you system!")<br />
End If<br />
End If<br />
End Sub<br />
If you need more help, just let me know!
Marcel Erz
|
|
|
|
|
If you're under VS2005/FW2 then it's very easy. There's a specific Application event that pop ups whenever network connection status changes.
|
|
|
|
|
It has been mentioned that .NET Framework 2.0 has the smarts to do this. Here's a brief rundown on what is required. I found the basis for this post at The Occasionally Connected Application[^].
I just setup a simple one-form app which had one label on it. The label is changed to "Connected" or "Not Connected" depending on the state of the network. The initial state is detected via this code in the Form_Load event ...
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If My.Computer.Network.IsAvailable = True Then
lblConnectedStatus.Text = "Connected"
Else
lblConnectedStatus.Text = "Not Connected"
End If
End Sub
Now we need to dynamically test the connection state. This is done by creating an event handler for the NetworkAvailabilityChanged in the MyApplication class ...
Private Sub MyApplication_NetworkAvailabilityChanged(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.Devices.NetworkAvailableEventArgs) Handles Me.NetworkAvailabilityChanged
If e.IsNetworkAvailable = True Then
My.Forms.Form1.lblConnectedStatus.Text = "CONNECTED"
Else
My.Forms.Form1.lblConnectedStatus.Text = "Not Connected"
End If
End Sub
This passed most of the unplug / disable tests. Use this in conjunction with the new Ping functions in 2.0 and you may have a viable solution.
...Steve
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
|
|
|
|
|
Hi, I would like to use marquee in my program. Can its function be implemented in any of the control? How?
|
|
|
|
|
Yes, you can write a control that does marquee. Or if you google, I'm sure that one exists.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You could type "marquee" in the search box at the top of this page and find, as the second article, A marquee control in C#. You could just use the control, or translate it to VB.NET, usually a pretty trivial (and tedious) exercise. Just make sure to attribute the original author.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
i am using this site for a long time and i m a fan of this site. In our firm we have developed a web spider which can be downloaded at http://unicornsoftbd.com/download/index.php for free. If you use this web spider and give us a feed back,it will encourage us.If any of u want the source code please contact at info@unicornsoftbd.com.Thank u all.
|
|
|
|
|
I'm glad you find The Code Project a worthwhile resource. It has some great advice, code and help from many, many experienced developers.
Why not share your code on The Code Project, or even write an article with your web spider as the subject? That would put back a lot more into this community than simply advertising your own code on this board.
...Steve
"Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once
-- modified at 18:50 Monday 12th December, 2005
|
|
|
|
|
Thank you for your quick repply.Actually i dont know how to post or publish an article in code project(though i use it... .If you give me this information i will gladly post this article in code project.
|
|
|
|
|
Have a look at How to submit an article.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|