|
i am waiting for u r valuable solutions please help....
Abhijith
|
|
|
|
|
Does anybody know anything about writing code to function with network cameras? I’m trying to find a solution for monitoring my children and I would like to write an application that will detect motion and sound from a network camera.[^] When motion or sound is detected I would like the application to become active with the view that detected the sound or motion.
This is just a concept right now. I haven’t even purchased the camera yet. I’m just wondering if it is possible or worth the effort.
I appreciate any input including positive or negative experiences with this.
Thanks
Brad
|
|
|
|
|
It looks like it already supplies most of what you'd need, short of a web server or media server. If you wanted to do your own custom solution, you'd have to have an SDK from the manufacturer.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: It looks like it already supplies most of what you'd need
That’s right. I’d like to grab the External Trigger and Motion Alarm Output and force the camera application (or my own application (with theirs embedded??)) to be active. Maybe the cameras software already does this but other cameras that I’ve looked at simply use this feature to send an email.
For example, if I’m working on my computer and one of the cameras is activated I’d like that camera view to open “in front” of what ever else I have opened.
I don’t have any experience with this but I’m assuming that the manufacturer would not be very likely to give out the SDK without me forking over a good bit of cash.
|
|
|
|
|
Brad Fackrell wrote: I’m assuming that the manufacturer would not be very likely to give out the SDK
I stand corrected. I just contacted the company that sells the camera and they are going to send me the SDK.
|
|
|
|
|
Brad Fackrell wrote: but I’m assuming that the manufacturer would not be very likely to give out the SDK without me forking over a good bit of cash.
Not really. Most companies supply their SDK's for free (if they have one!), or there's a charge that's normally not very high. But, there's only one way to find out - give them a call!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am writting a window form application in VB.NET
I need to get the drive letter, because my program run from CD ROM
Thanks
-- modified at 11:29 Thursday 22nd March, 2007
1) I am writting the following lines:
dim MyPath as string
MyPath=System.Windows.Forms.Application.StartupPath
System.IO.Path.GetPathRoot(MyPath)
2) I am publishing my application
3) I am running the application from drive F:\
4) I get that the "MyPath" variable is equal to "C:\...local....\" but not "to F:\..."
Please help
Eric H.
|
|
|
|
|
Application.StartupPath ( from memory ) will include the current drive letter.
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 did a modification in the same time that you answer me.
Please check again
Thank you
Eric H.
|
|
|
|
|
The reason it's comming up with C:\Documents and Settings\... is because you're launching the .EXE from inside Visual Studio, not the F: drive.
StartupPath returns the full path of the folder that the .EXE started from.
If you want to test your app with a CD in the drive, complete with all your data, you'll have to modify your code a bit to include a static method that returns a path dependant on some condition, like if the startup path is rooted on C:, return a path that is rooted on F: instead.
Public Shared Function GetApplicationStartupPath() As String
Dim realPath As String = Application.StartupPath
If Path.GetPathRoot(realPath).StartsWith("C:") Then
' Return a bogus path to the root of the CD drive for testing
Return "F:\"
End If
' Return the real path were using
Return realPath
End Function
Or you could use compiler directives to do the same thing. DEBUG will only be defined if the code is compiled and run from inside Visual Studio using the Debug build configuration. A Release version won't have DEBUG defined.
Public Shared Function GetApplicationStartupPath() As String
#If DEBUG Then
' Return the bogus path to the CD drive, used for testing...
Return "F:\"
#Else
' Return the actual StartupPath
Return Application.StartupPath
#End If
End Function
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello,
Sorry but I don't know at least what will be the drive letter. I need to know it at run time.
I am new in VB.NET environment, my problem may be a configuration problem:
I create a new project (VS2005) as following, please do as I am doing:
1. File->New Project->RunFromCD(is the window application name).
2. Drag a new button (button1)
3.Here is the code
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(GetApplicationStartupPath())
End Sub
Public Shared Function GetApplicationStartupPath() As String
Dim realPath As String = Application.StartupPath
Return Path.GetPathRoot(realPath).ToString()
End Function
End Class
4. Build-> Publish RunFromCD->Next->From a CD-ROM or a DVD-ROM->Finish
5. Now I get a Published folder as following
- RunFromCD_1_0_0_1 (folder)
- RunFromCD.application
- RunFromCD_1_0_0_1.application
- setup.exe
6. I am copying all the published folder to drive D:\ and running the setup.exe, after clicking on the button1, I get from message box:
"C:\" but I expect "D:\"
Thanks you a lot for your help
Eric H.
|
|
|
|
|
I have always done my own coding for the data piece but now that 2.0 is supposed to be so great Ive decided to take a shortcut with an application and just use the control binding along with the DataGridView which is bound to a table in the database.
How much code am I required to write myself when I use this method as opposed to manually creating my own dataset and my own update/insert/delete commands etc.? I thought it was supposed to do more work for me, the only command it actually created is the Insert command, so when I update a row and set it as modified by using the .BeginEdit/.EndEdit it says there is no Update command. Well if Im using the automatic setup here, I dont want to go into the Dataset code and write it myself when I believe it should write it for me ARGHHH!!
The problem is that Im used to adding the rows to the datatable myself, finding and editing that particular row then just updating the specific rows that I updated from the app. Im not used to just saying here's my data and figure out what's updated and what's not and do all the work.
-- modified at 9:02 Thursday 22nd March, 2007
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
I would recommend never doing this for real world applications, it moves your data access code too close to the presentation tier for my liking. You are indeed expected to put SQL in your code. You *can* tell it to call a proc, which I would regard as acceptable.
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 )
|
|
|
|
|
Well Im talking about a quick and dirty app for in house use only so in this case I might consider it acceptable.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
*grin* OK, well, in that case, you need to write SQL in your presentation layer to use that stuff
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 )
|
|
|
|
|
Microsoft forums from 2006[^] HAHA!
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
*blush* you can't hide from google.
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!
Under my project's directory I created some files and one folder at design time. How should I set the path inside code for a specific file. Should I use Application.StartUpPath (Which is looking under bin\debug directory but my files are not there) or Application.Executable path or Environment.CurrentDirectory (Which is working fine but I was adviced to use Application.StartupPath)
If I use Application.Startup path, Should I carry the folder and some other files under bin\debug directory at design time? When user installs the application, will this folder and files be under application's main directory?
Thanks.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
During development, you copy the files and directory structure to your target bin folders, just like you would see when you install the application on a users machine. You can do this with a batch file that is launched in the Post-Build event. See your Project Properties, Compile tab, Build Events button.
Don't believe me when I say you shouldn't use CurrentDirectory? Try adding a FileSaveDialog or FileOpenDialog to your application and not handling the thing correctly. You'll find that the CurrentDirectory changes to whever the user picks in those Dialogs.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello
I am writting a window form program in VB.NET. I am running a series of SQL and I want to show an animation gif during the SQLs.
How can I do this?
Thanks
Eric H.
|
|
|
|
|
Run the SQL code in a thread, then your main UI will remain active. There are classes for running animated GIFs on this site ( there is no built in support )
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....
Iam using datagrid control with combobox and Textbox.So I want to Editing begins when the cell receives focus. This mode is useful when pressing the Enter key to enter values across a row, or when pressing the ENTER key to enter values down a column.
Thanking you
Somasundaram G
|
|
|
|
|
how to get the computer names in my workgroup and all workgroups connected to my computer & the IP's of them
Lost & Forgotten
|
|
|
|
|
when i run an application i can't see the console window
Lost & Forgotten
|
|
|
|
|
Is it a console app ?
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 )
|
|
|
|