|
thx, but I still have a problem.
Actually i do a survillance using webcam (using c#)
i need to use my webcam to monitor activities on somewhere
recording and connect it to server .
Webcam can use more than one & client must be a windowsservice for survillance.
this is activities that I do
client:
1.Recieve a remote from server.
2.connect to webcam & capturing using Webcam_Capture.dll.
3.send it to server using RTP.
Server:
1.Setting & Remote to client.
2.Save picture for client.
3.Show Picture.
and I have a problem now because
First in Client I use Windows Form and now I need to change this code to be a windowsservice.
This service need to capture a picture from webcam by using Webcam_capture.dll
So I create a variable From Webcam_capture.dll but this class reference System.Windows.Form.usercontrol
that must add a reference to System.Windows.Form .
How can i do for this problem??? Please Help!!!
thanks,
PZ
|
|
|
|
|
You can if you enable "Allow interaction with desktop" ... BUT it's bad practice Services shouldn't have UI's built in and as you say a remoting layer is normally the way to go with a .Net Windows Service.
|
|
|
|
|
originSH wrote: You can if you enable "Allow interaction with desktop" ... BUT it's bad practice
I didn't want to go there. As soon as you mention that something is available (even if it shouldn't be used), that's the way they'll head.
|
|
|
|
|
I take the alternative view that you should mention the bad ways of doing things and say they are bad ... otherwise the poster might come across them by themselves and assume they are good.
If the poster still chooses to do the bad thing then hopefully they'll end up in a world of s**t lol
|
|
|
|
|
i will be very much thank full if u help at any point of time
raghunath
|
|
|
|
|
Help you to do what? Grout the bathroom? Clean the guttering? Delouse a parrot?
|
|
|
|
|
Please don't let John Simmons see this thread...
SG
Cause is effect concealed. Effect is cause revealed.
|
|
|
|
|
With what?? Grooming your cow?
|
|
|
|
|
First post means this person is a troll. Nothing to see here....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
But don't stop me from having fun with the mockage. That's the only fun I get nowadays.
|
|
|
|
|
Here, here! I second that!
|
|
|
|
|
Hi Friends,
Can anyone send Web Service codings using java.Please its urgent,help me.
Thank You
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Wow - there are so many problems with this post.
1. This is a .NET forum.
2. We don't give you code for nothing. If you want code written for you, try rentacoder.
3. It may be urgent for you, but it's not for me. Don't put "its urgent" in a post.
4. You haven't specified what the web service is supposed to do.
|
|
|
|
|
Please read Forum Posting Guidelines at http://www.codeproject.com/scrapbook/forumguidelines.asp[^].
Discussion forums are oriented towards helping out as troubleshooting aides and not pamper and support code solicitations.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I am new in .net. I am making an application using datagrid which is showing details about employees. So I want to make my data grid searchable. So i am using a textbox where user can enter some data into it and the matching result with all the columns will be displayed in the datagrid. If anyone knows how to do it or anyone hav a code for it. Please reply me
Rock Star
|
|
|
|
|
Typically you would not search your grid, you'd search your data source and fill the grid with filtered data
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Lately, I've been playing around with the idea of giving LinFu's
Simple.IOC container the ability to create different generic type
instances depending on the type parameters given to the generic type
at runtime, but I'm not quite sure how useful would it be.
Anyway, as an example, suppose that I have the following generic
interface:
{{
public interface IOperation<tresult, tparam1,="" tparam2="">
{
TResult DoSomething(TParam1 first, TParam2 second);
}
}}
...and for this example, I want the IOC container to use the following
class to implement IOperation<tresult> if the TResult type is a
numeric type:
{{
// Note : This is a hypothetical code sample; it won't compile if you
remove the comments!
public class SomeMathOperation // : IOperation<tresultt, param1,
tparam2=""> where TResult : IsNumeric()
{
// TResult DoSomething(TParam1 first, TParam2 second);
}
}
}}
Now, the biggest challenge here is that in addition to adding a
hypothetical generic type constraint, there is currently no language
available in .NET (not even IL) with any feature that allows you to
match an interface like IOperation<tresult, tparam1,="" tparam2=""> to a
single class implementation like SomeMathOperation without having to
specify all of the type parameters to instantiate the generic type.
Furthermore, it would be useful if (for example) I could specify an
alternative type to use in the event that the TResult type was a non-
numeric type:
{{
// Note: I don't want the compiler to evaluate TParam1 or TParam2 til
runtime; I want the type specialized
// to handle only *specific* TResult types
public class SomeStringOperation // : IOperation<tresult, tparam1,
tparam2=""> where TResult : IsString()
{
}
}}
For those of you who are familiar with Visual C++ and partial template
specialization, this concept should be immediately familiar.
Essentially, what I want to do here is generate an entire hierarchy of
classes at runtime depending on the type parameters passed to the
generic type definition. So my question is this--how useful would this
feature be if it were implemented with LinFu?
|
|
|
|
|
I can do a select within a dataset to search for a string. This works great.
When I try to do the select to search for a number I get a 'does not evaluate to a Boolean term'.
For example- matchingRows() = ds.Tables("Generations").Select("id = 3")
I get a simular error when I try to create a dataview that keys off of a number.
How do you search a dataset for a numeric value?
Thanks in advance!
|
|
|
|
|
kermit88 wrote: 'does not evaluate to a Boolean term'
That tells you something
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi
I am currently using the ilasm.exe tool to compile my CIL code. Right now I am using the Process.Start() method to run the tool from code. I'd like to know if I have the option of calling a particular method through a dll reference that also returns messages back to my code. Right now I can't tell from the code if my ilasm.exe invocation succeeded or not.
Thanks in advance
Zawar
|
|
|
|
|
How about instantiating Process class, then using its Start(), HasExited or WaitForExit()
and ExitCode members?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Have you had a look at the System.Reflection.Emit namespace, and the MSDN articles on dynamic assemblies. Using this you should be able to make a dynamic function, and then call it.
|
|
|
|
|
Hello everyone, has anyone managede to get two-way event remoting to work over the internet ?? I can't seem to get it working, not even over VPN, any clues??
|
|
|
|
|
|
Ok, I read those and tried out to redo some of it on my own setup........
I'm trying to make a sort of push service, but it just don't work... I think I've come to the conclution that the problem remains with 2k3 server, then I run the 'server' in a 2k3 env and the 'client' on XP the client never gets any response from events fired from the 'server' but in reversed mode running the 'client' on the 2k3 server and the 'server' on my XP everything works like a charme.
|
|
|
|