|
Mark,
It is there. Thanks for the extra info (Being able to look at the generated client-side class is really usefull) The problem is solved. Nigel's post was right. I apologize that I didn't mentioned it on the previous thread. But, there are 2 things I learned, besides these ones.
1. Starting with Net 3.51 it is not necessary to add the [Data Contract] anymore for know types.
2. It appears that SL 3 web services do not require to implement the interface
|
|
|
|
|
Hello To All,
I have developed a WPF Browser Application that captures webcam and broadcasts to to the persons in the list-box.
My problem is i m able to broadcast my webcam but when i see other webcam it shows me mixed streaming of both webcam 's .
One more problem is when two webcam get connected it gets very slow.
public void ShowVideo(Stream stream)
{
try
{
using (System.Drawing.Image objimage = System.Drawing.Image.FromStream(stream,true))
{
Bitmap objbitmap = new Bitmap(objimage);
MemoryStream str= SetImageSize(objbitmap);
Bitmap bitnew = new Bitmap(str);
IntPtr hBitmap = bitnew.GetHbitmap();
BitmapSource bmpSrc = Imaging.CreateBitmapSourceFromHBitmap(hBitmap, IntPtr.Zero,
Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
DeleteObject(hBitmap);
imageOnlineUser.Source = bmpSrc;
if (this.ConnectDisconnect == false)
{
btnVideoShare.IsEnabled = false;
}
stream.Flush();
stream.Dispose();
GC.Collect();
}
}
catch (Exception ex) { }
}
I m using above method to show my webcam.
Please Help Me.
With Best Regards
Hardeep Singh Bhullar
Hardeep Singh Bhullar
|
|
|
|
|
how can i create a window with may user control ? and how do i connect them with each other?
modified on Monday, October 19, 2009 7:36 AM
|
|
|
|
|
nerra wrote: How can i create a window that has many user control ? and how do i connect this
You start by learning the language that you wish to use, usually by buying a book and studying hard. When you have a problem with your program you can post a question here and ask for help.
|
|
|
|
|
I appreciate your answer but there is no available book here in my country. If i buy it online i can't afford it. Thank you for your answer
modified on Monday, October 19, 2009 6:16 AM
|
|
|
|
|
nerra wrote: I appreciate your answer but there is no available book here in my country. If i buy it online i can't afford it. Thank you for your answer
According to your homepage your country is USA where you can buy books on every subject you may need. Secondly if you cannot afford to buy a book then I suggest you try some of the tutorials on the internet as you obviously have access to that. There are hundreds of articles here on The Code Project, and other sites, to get you started.
Your question is far too general for anyone here to give you a simple answer, you must do your own work first.
|
|
|
|
|
oh I'm sorry i did not notice that my country was in USA i will change it immediately sorry for the confusion sorry .... I may have an internet it is not good for playing video though .... again i an deeply apologize for the confusion of the country post homepage... I am not looking for a debate ...I appreciate that you have concern about my study habit... if you think this is just a shallow question then i will delete this thread after i figure how i can delete it... again i thank you and i apologize for the confusion
|
|
|
|
|
nerra wrote: if you think this is just a shallow question
No, your question is fine. I was just trying to explain that what you are asking for cannot be answered in a forum like this, as it would take too long. If you read some of the introduction articles on the subject of your choice they will show you how to do the things you want to learn. Then when you find something that you have difficulty understanding, or that does not seem to work, you can post a question and people will try to help.
|
|
|
|
|
I understand thank you i'll just try searching for more resource
|
|
|
|
|
Assuming you want to use WPF since you asked in this forum...
The entire SDK is available free online, and it also is included
with Visual Studio:
Windows Presentation Foundation[^]
I always recommend reading the entire SDK TWICE, maybe
trying out some code the second time through. It's amazing how few
questions one will have if one knows the fundamentals...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
yes, i do want to use wpf it's for my thesis. Thank you for your advice .
|
|
|
|
|
nerra wrote: yes, i do want to use wpf it's for my thesis.
Maybe your first question should have been : How can I find some resource to learn WPF?
|
|
|
|
|
I did do some research .....I did try some sample but this is the only topic that i had some difficulty ... But I would be happy if you can post some Thank you
|
|
|
|
|
nerra wrote: But I would be happy if you can post some
This is far too wide a subject to post an answer here. Take a look at some of the WPF articles here on Code Project for further information.
|
|
|
|
|
nerra wrote: how can i create a window with may user control ?
Do you mean 'many' ? You just add them, one at a time. It's no different, no matter how many there are
nerra wrote: and how do i connect them with each other?
To communicate between classes, use delegates.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
What I mean in 'many' is that ... I was going to create a some what like start scree/welcome screen that connected to other screen in a single window
.... thank you
|
|
|
|
|
i want to upload a file using a batch file and check the upload staus from asp.net code. please suggest me the proper command line argument in batch file.
mannu
|
|
|
|
|
What does this have to do with WPF, WCF or WF?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
First of all, what you want is not possible. Second, if it was possible, it's plain that you're too dumb to do it. This is the WPF/WCF forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I don't think he liked our answers mate.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
How to handle WPF datagrid row double click event? I tried with PreviewMouseClick. But it is getting throwed when clicked on header also.
Private Sub dbGrid_PreviewMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles dbGrid.PreviewMouseDoubleClick
If Not dbGrid.SelectedItem Is Nothing Then
MsgBox(DirectCast(DirectCast(DirectCast(dbGrid.SelectedItem, System.Object), System.Data.DataRowView).Row, System.Data.DataRow).ItemArray(0).ToString)
End If
e.Handled = True
End Sub
How to handle it only for datagrid row?
|
|
|
|
|
After I've hacked together my first WPF app today, I'd like to embark on a slightly more formal approach to continuing to learn WPF. What do you guys recommend?
|
|
|
|
|
I'd recommend that you knock something up using MVVM. It's a great pattern, and you'll find it helps you a lot later on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Read all the articles here on The Code Project by Josh Smith & Sacha Barber, particularly their introduction sets. Also take a look at the books they recommend as they are likely to be useful.
|
|
|
|
|
I'd recommend getting Pro WPF in C# 2008 by Matthew MacDonald It's well organized, takes you step-by-step through WPF and covers most of it. I still refer to it when I'm coding WPF.
|
|
|
|