|
ADO 2.0? That's going back in time!
Well, it's probably not a dependancy issue, unless you start installing it on Windows 2000 and higher. In that case, you'll probably have to update the code to use ADO 2.6 or better.
Another possibility I didn't think of is that an older version of the .DLL that is being built is already in use by another app somewhere and the new build can't be written to the disk.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
After a bit more research, open a CMD prompt on your machine and type SET TMP at the C:> prompt. What do you get back? Do the same with SET TEMP...
You should get back something like:
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>set tmp
TMP=C:\Temp
C:\>set temp
TEMP=C:\Temp
C:\>
BOTH environment variables must return a path to a folder (that exists!) used for temporary files. Without the environment variables or the folder they point to, ADO can generate this error.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave- I apologize for the long delay since your last post. I was sidetracked by another issue. I hope you can continue to provide some advice.
I did as you advised and got the following:
TMP=c:\docume~1\Gerryk~1\locals~1\Temp
and
TEMP=c:\docume~1\Gerryk~1\locals~1\Temp
The folder does exist.
To reference another post of yours, I see that the program is using ADO 2.5 and not ADO 2.0 (my mistake.)
I still have the same problem.
Do you have any other suggestions?
Gerry
|
|
|
|
|
I have no idea what it would be now. ADO 2.5 is still pretty old. The latest version, before Vista, was 2.8 and that's been out for over 2 years now.
Hmmmm... Well, I'd try recreating the project. Create a new project, of the same type, and setup the references to the same as what you had before and save the project. Then exit Visual Studio and copy the source files (*.vb) from the old project to the new one. Get back into VS and add the new code files to the project and recompile it. This will generate a new set of GUIDs for the project and MIGHT take care of it. I haven't used VB6 in about 6 years now, so I may very well be missing something here.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/madam,
Can i add the landscape / portrait option in my crystal reports program in vb.net
Please help.
Thanks and Regards
Pankaj
|
|
|
|
|
|
Public Class Class1<br />
Public Sub f1()<br />
MessageBox.Show("interfacse")<br />
End Sub<br />
End Class
Public Interface inter<br />
Sub f1()<br />
End Interface
Public Class Form3<br />
Implements inter<br />
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
End Sub<br />
Private Sub abc() Implements inter.f1<br />
<br />
End Sub<br />
End Class
The problem is i wanted the member f1 of class class1
in the interface inter.
I mean when i implements the interface inter in class form3
I need not to write the code of function f1 of class class1 again.
But the control does not goes to the function f1 of class class1.
Please help.
|
|
|
|
|
I think you have misunderstood the purpose of interfaces.
An interface defines a public interface that classes can implement. There is no other relationship than that. When you declare that Form3 implements inter , you must provide a body (the implementation) for the methods and properties. You did this with Class1 , but you provided only an empty body for Form3 . Thus Form3 does nothing.
However, as I am at a loss as to what you are actually trying to acheive here I cannot suggest a reasonable alternative at this time.
|
|
|
|
|
Sir/Madam
Can i please get to know the various types of connection to do the code.
I mean if the application is based on three database.Can this be possible to lock the database and keep it open.and simultaneoluly open the another database.
I finally wanted to know the various types of connection
Thanks and regards
Pankaj
|
|
|
|
|
amaneet wrote: I mean if the application is based on three database.Can this be possible to lock the database and keep it open.and simultaneoluly open the another database.
You can open as many connections as the databases will allow. However, remember that the preferred pattern is to open a connection, perform the query and then close the connection as quickly as possible so you don't tie up resources.
amaneet wrote: I finally wanted to know the various types of connection
There are as many types of connections as databases that support the .NET Framework.
|
|
|
|
|
Sir,
can u please provide any link?
Thanks and regards
Pankaj Garg
|
|
|
|
|
amaneet wrote: can u please provide any link?
A link to what?
|
|
|
|
|
|
But it does not list ALL connection types. Just the most common ones.
|
|
|
|
|
Sir/Madam,
Can i programically find out the current date format in my machine.
I mean whether it is mm/dd/yy or dd/mm/yy
PLease help.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
Have a look at your current culture info
System.Threading.Thread.CurrentThread.CurrentUICulture.DateTimeFormat
|
|
|
|
|
Sir/Madam,
I wanted to store the images in the database(MS-Access)
Please let me know the way how to do the same.
Thanks and Regards
Pankaj
|
|
|
|
|
There's tons of examples out of the web. All you have to do is Google for "vb.net store image access[^]".
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
Sir/Madam,
I wanted to know something about the transactions .Currently i am using the MS-Access.I wanted to code on transactions So from where should i start from the scratch
Please help.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
You can start with this article[^] on MSDN. There's also this one[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/Madam,
I wanted to know the utility of Masked textbox especially in showing the date in the single textbox .I mean in wanted to insert the slashes in the textbox , so whenever the user clicks the left or right key the control navigates to month or year.I mean there should be some space left in between the slashes for insertig the month year day.and all this i wants in the single textbox .Can i make it possible.
Please help.
Thanks and regards
Pankaj Garg
|
|
|
|
|
In maskedTexbox there are predefined formats under its properties. You can define custom format but It will not allow you to use slashes between month, day and year.
I think you have to write a class to produce your own maskedtextbox.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Sir,
I am in urgent need to solve this problem.
If u please provide any link to solve this very problem.
Thanks and Regards
Pankaj Garg
|
|
|
|
|