|
There is a little bit of work to do here, but you can do it. You need to use the command line windows installer to un-install the product.
So the command line would be something like
msiexec /x {460FB517-716B-4495-B3CE-44799A75D868}
So if you provide a shortcut to something that will run that command it should unstall your product. NOTE the GUID ({460FB517-716B-4495-B3CE-44799A75D868}) that is above can be found when you click on your setup project and then go to properties. It is the ProductCode. This can change if you put out new versions of your installer.
Anyway, I hope that helps.
Ben
|
|
|
|
|
Hi,
I am trying to use an unmanaged dll in VB6. But I am getting error as "Cann't find DLL entry point". Please let me know how can I use this dll in VB6.
Thanks,
-- modified at 5:32 Tuesday 22nd May, 2007
rr
|
|
|
|
|
How could we possibly guess WHY, while you haven't noticed your code at all?!!
|
|
|
|
|
Thanks for your reply. actually i got the solution a bit, but still problem is there. I am using following code to imort the dll.
Private Declare Function MyMethod Lib "C:\Mydll.dll" Alias "MyMethodAlias" (ByRef param As Long) As Long
This is working fine. Now the questions is: Is Alias mandatory?
I have tested with some dll's with out Alias and working fine. And with another dll, giving error with out Alias.
Should we mentions this alias compulsory? Can we give any name for this?
Thanks,
AR Reddy
|
|
|
|
|
The Alias part is there if you want to use a different name in your code from what's exported by the .DLL. If, say, the DLL exports a function called "SomeExportedFunction", but you want to use a shorted name in your code, the Declare would be like this:
Private Declare Function MyShortName Lib "Lib.dll" Alias "SomeExportedFunction" ....
If you get the wrong name for the Alias, or if you don't use the alias, your function name doesn't match the exported name in the DLL, you'll get this error.
|
|
|
|
|
Please send code that how to set timer in form with continue updation.
Mukesh
mukesh
|
|
|
|
|
hello mukesh,
try the
timer1.tick()
event
and set the timer interval, it is displayed in milisecond means if you set it as 1000 then after every 1 second the timer will be in action
put timer1.start()
and then called timer1.tick()
hope it will help.....
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Hai to all,
i want to wirte an application,where more than user in the network can draw a drawing Simultaneously...
|
|
|
|
|
There's tons of examples out on the web. Google for "vb.net shared whiteboard".
|
|
|
|
|
i am trying to encrypt connection string to protect my passward.
how i do it.
ajeet
|
|
|
|
|
Why do you need to encrypt your connection string. It would be hidden after making its exe.
Ok, waiting for more questions.
|
|
|
|
|
No, it wouldn't. The connection string is being stored in an XML text file.
|
|
|
|
|
Thanks for reply. But is replied as it were in VB.
|
|
|
|
|
A string in an .EXE is anything but hidden. Let me show you something -> .NET Reflector[^]
|
|
|
|
|
|
i am facing an error: "can not create activex control."
while creating a activex directory user home folder.
the code is as below:
Dim oContainer As ActiveDs.IADsContainer
Dim oUser As ActiveDs.IADsUser
Dim strFirstName As String
Dim strLastName As String
Dim strSAMAcctName As String
Dim strPassword As String
'Dim oGroup As DictionaryEntry
strFirstName = "First" 'Trim(Me.txtFirstName.Text)
strLastName = "Last" 'Trim(Me.txtLastName.Text)
strPassword = "password"
strSAMAcctName = LCase(Left(strFirstName, 1) & strLastName)
oContainer = GetObject("LDAP://dc=abc,dc=com")
oUser = oContainer.Create("user", "cn=" & strFirstName & " " & strLastName)
oUser.Put("displayName", strFirstName & " " & strLastName)
oUser.Put("FirstName", strFirstName)
oUser.Put("LastName", strLastName)
oUser.Put("sAMAccountName", strSAMAcctName)
oUser.Put("userPrincipalName", strSAMAcctName & "@abc.COM")
oUser.EmailAddress = strSAMAcctName & "@abc.com"
'oUser.homedrive = "U:"
oUser.HomeDirectory = "\\192.168.87.154\Home-drive\" & strSAMAcctName
Try
oUser.SetInfo()
Catch
MsgBox("User Already Exists", MsgBoxStyle.Critical, "UserExists!")
End Try
Try
If oUser.AccountDisabled = True Then
oUser.AccountDisabled = False
oUser.SetInfo()
End If
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
'Me.txtResults.Visible = True
End Try
Try
oUser.SetPassword(strPassword)
oUser.Put("pwdLastSet", 0)
oUser.SetInfo()
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
End Try
Jayesh Talsaniya
|
|
|
|
|
So, on which line does this thing blow up?
|
|
|
|
|
i am facing an error: "can not create activex control."
while creating a activex directory user home folder.
the code is as below:
Dim oContainer As ActiveDs.IADsContainer
Dim oUser As ActiveDs.IADsUser
Dim strFirstName As String
Dim strLastName As String
Dim strSAMAcctName As String
Dim strPassword As String
'Dim oGroup As DictionaryEntry
strFirstName = "First" 'Trim(Me.txtFirstName.Text)
strLastName = "Last" 'Trim(Me.txtLastName.Text)
strPassword = "password"
strSAMAcctName = LCase(Left(strFirstName, 1) & strLastName)
oContainer = GetObject("LDAP://dc=abc,dc=com")
oUser = oContainer.Create("user", "cn=" & strFirstName & " " & strLastName)
oUser.Put("displayName", strFirstName & " " & strLastName)
oUser.Put("FirstName", strFirstName)
oUser.Put("LastName", strLastName)
oUser.Put("sAMAccountName", strSAMAcctName)
oUser.Put("userPrincipalName", strSAMAcctName & "@abc.COM")
oUser.EmailAddress = strSAMAcctName & "@abc.com"
'oUser.homedrive = "U:"
oUser.HomeDirectory = "\\192.168.87.154\Home-drive\" & strSAMAcctName
Try
oUser.SetInfo()
Catch
MsgBox("User Already Exists", MsgBoxStyle.Critical, "UserExists!")
End Try
Try
If oUser.AccountDisabled = True Then
oUser.AccountDisabled = False
oUser.SetInfo()
End If
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
'Me.txtResults.Visible = True
End Try
Try
oUser.SetPassword(strPassword)
oUser.Put("pwdLastSet", 0)
oUser.SetInfo()
Catch ex As Exception
MsgBox("Error trying to enable account", MsgBoxStyle.Critical, "Enable Account Failed")
End Try
Jayesh Talsaniya
|
|
|
|
|
hi all,
Anyone know how to edit the listview in specify of column?
I just know this code only
ListView1.LabelEdit = True
this code is for the first of the column in listview which can be edit only but for the another column are can not to be edit!
so, anyone know this?
Please help!
|
|
|
|
|
The standard control doesn't alolow for this. You can find examples on how to make your own version that extends the functionality of the standard control with a simple Google search[^] for "listview edit columns".
|
|
|
|
|
Hi! All,
Among two, One of My VB6.0 application dwonloading CSV files from a source and aother VB6.0 application is reading CSV file line to line & updating the database. My problem is that when download is still going on, the reader application starts reading this uncomplete dowload file and soon it reaches end of the file, as reading is faster than the dowload. Can any one tell me any method to check whether the complete download has been done or not?
Thanks and Regards,
Virendra
|
|
|
|
|
Well you can:
(1) Use some sort of IPC (Inter-Process-Communication: a simple approach maybe using custom window messages).
(2) Make the downloading application locking the file: the reading one will wait until reading access is granted
(3) ... (don't limit you imagination...)
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.
|
|
|
|
|
hi..
Before downloading the File, Delete the File Name if Present (using
Kill).
Down Load the File Name with Different "Temp" Name and After Complete
down Load Re-Name the File to actual Name(Using "FileCopy") .
While Reading, Check if the File Name is Present or Not. Put In a "Do
Loop" using "DoEvents", till u find the File, If it is still
DownLoading, File Will not be present. After down load completion, File will be
found and you can Start reading.
Here u have to take care to Come out of
"Do-Loop" after Few Iterations(by keeping a Counter), otherwise if
DownLoad takes more time or Down Load is not successfull, then ur Program
may go into EndLess Loop.
Regards
Desperate
|
|
|
|
|
Desperate is right. Download the file to a temporary filename first, then rename it to what your other app is expecting. Either that, or combine the two applications into one so your code knows exactly when the file is done downloading. This, of course, depends on your code actually handing the download instead of relying on the functionality of something like IE to do it for you.
|
|
|
|
|
Hi...........
I want to do streaming of video file in VB.NET.
All video files are on Server & when client ask for any video, that video get played on client side.
How I do this.
Thanks in advance.
|
|
|
|