|
I'd have thought so too. Any idea how the CLSID factors into that?
|
|
|
|
|
Nope, but I did do some poking around, it might have something to do with permissions.
Try granting your application permission to access the office binaries?
|
|
|
|
|
HI
I have a small problem with my application:
The application is a small programme that runs at computer log in, I have made some code to copy the start shortcut to the all-users startup folder.
Here comes my problem: When a new user is logging on to the PC the installer runs and then installs the application again for the new user.
Is there a way to install the application for all users the first time??
Best Jesper
|
|
|
|
|
You only need to install the app once, in Program Files. Then you just need to put its shortcut in Documents and Settings\All Users\Start Menu\Programs.
|
|
|
|
|
hi
I'm working on a webcam application using AVICAP class API available in the Windows operating system using vb.net, I'm facing a problem when I am doing limit to the duration of a capture operation by using the fLimitEnabled and wTimeLimit members of the CAPTUREPARMS structure
I wrote this code:
Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim CAP_PRAMS As New CAPTUREPARMS()
SendMessage(hWnd, WM_CAP_GET_SEQUENCE_SETUP, Len(CAP_PRAMS), CAP_PRAMS)
With CAP_PRAMS
CAP_PRAMS.fLimitEnabled = True
CAP_PRAMS.wTimeLimit = 5
End With
SendMessage(hWnd, WM_CAP_SET_SEQUENCE_SETUP, Len(CAP_PRAMS), CAP_PRAMS)
SendMessage(hWnd, WM_CAP_SEQUENCE, 0, 0)
SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, _
"C:\Video1.avi")
End Sub
ok, the problem is when I run this code it gives me video file with time recorded 0 sec, it is just an image with avi extention
and I want it to be video file with 5 sec time duration
please tell me where is the problem
thnx in advance
|
|
|
|
|
I don't why, but I would try writing 5000 instead of 5.
When you use the timer object, 5000 equals 5 seconds... That could be a reason, however I am not sure.
Hope it helps you!
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
|
Hi everybody, I hope somebody can help me with this.
I've received a VB.NET project, and I must add some functions taken from another VB6 project.
One of these functions, uses the String$ function like this:
strValTemp = String$(1024, 0)
But it seems that VB.NET does not allow me use this function. Is there any other way of doing the same?
Thanks.
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
String$(1024, 0) creates a string 1024 characters long filled with nulls.
Is that going to be too hard in vb7.net?
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Hi,
the string class has a constructor that takes one character and one number; it builds a string using that character count times, which AFAIK is what String$() used to do.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Thank you very much, Luc.
Sometimes these stupid questions are the most difficult for me.
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
you're welcome.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
hi,
i did simple crystal report in my application.
run in visual studio 05 working good.
but if we convert setup install another one system.
its show some error in crystal report.
thanks in advance
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
|
Hi All,
I am using FileSystemWatcher for checking the files in drive("C:\"). and add those files who are adding in "c:\"Drive to copy in "D:\".
It's working normally but when i try to copy file which size is large. then the error is generated file not found.
So How to check file is in progress of Coping.
Thanks
If you can think then I Can.
|
|
|
|
|
What's the error message?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
File system wather shows that the file is added and at that time i try to start copy of that file.
Then following error message is displayed while the file is large.
The process cannot access the file 'E:\test.dat' because it is being used by another process.
If you can think then I Can.
|
|
|
|
|
You are getting the error because the file is still open/being written too, therefore your program cannot gain access.
What you need to do is keep checking the state of the file until it has been released and the perform whatever tasks you need for example :-
Dim OK As Boolean
Do
Try
'Open file and perform tasks here
OK = True
Catch
OK = False
End Try
Until OK
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Thanks for reply,
I have already using it.But it creates problem while File Can't Copy or Cancelation of Copy.
Because Do While Loop Not Found status of File.
If you can think then I Can.
|
|
|
|
|
You have to make the loop try to open the file for exclusive read. If not, you sleep for a couple of seconds, then do it again. When you get the file opened, close it. Then you should be able to use the File.Copy method to copy your file.
The FileSystemWatcher told you that a new filename appeared in the directory, not that the file was completely written.
|
|
|
|
|
Hi,
lets see some of your code...
thanks
|
|
|
|
|
I made one application form in vb.net and access as database,in this form there is a picturebox1 field where i can upload the images.i put one default image when the form gets loaded. i want to save this default image if i dont upload an image.And another problem i'm facing is i want to deploy my project on another system but when i'm deploying my project, the database is not connecting so i've to add database separately on the other system even though i'm adding database during setup.May be i'm going somewhere wrong.Please tel me how should i add database while setup and save the default image.
Thanks for your help.
Note:I'm saving an image path in the database not the images.
modified on Monday, June 29, 2009 5:16 AM
|
|
|
|
|
mirzamujib wrote: i want to save this default image if i dont upload an image
OK. Where are you uploading to ? Is this a web app ? What is the issue ?
mirzamujib wrote: but when i'm deploying my project, the database is not connecting so i've to add database separately on the other system even though i'm adding database during setup
What is your connection string ? If the DB will be local, use localhost, not the machine name.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello,
Its not a web application.Its a windows based client application
Thanks
|
|
|
|
|
Then I don't get your question. That's why I asked you to clarify.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|