|
How to broadcast audio-video streams on Internet at optimum(Say Dial Up) bandwidth
Hi All,
I am developing a Video Chat where i wish to broadcast(multicast) vedio-audio streams over Internet. I am using DirectX(Direct Show) technology for the same.
I wish to know
- the "Best Practices" for the such an application.
- How to send streams in the most optimal manner so that application can run at lowest bandwidth
- How to trace the IP Address of a machine on LAN connected to a router for such a chat
- How to go about starting development of such an application.
HI I AM NAEEM
|
|
|
|
|
HI,
I would like to know, can we change the style of some rows in a listbox, such as change backgound colour or font size? Thank you
|
|
|
|
|
Set DrawMode property to OwnerDrawFixed, then do your own drawing in the DrawItem event handler
|
|
|
|
|
In my project i have one form.i would like to make that form as popup window.
when i run the project that window popups from right bottom corner where we see the time clock.
Amit Grover
CDAC R&D
|
|
|
|
|
you can refer the followinf link for that
http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp
Regards,
Pramod
|
|
|
|
|
thanks for help. u have send me the link in which there is an image which popups but i want my form to popup. how would i achive that functionality
Amit Grover
CDAC R&D
|
|
|
|
|
Actually the image is set on the form
u dont set the image
just use the methods that have been used in that link
to display the Popup
Regards,
Pramod
|
|
|
|
|
Happy New Year!!!!
I wanted to know how to make my web based ASP.Net application an intranet application.I know i can use authentication/authorization to do it.But I donot want a login page or something along those lines.I just donot want any one who's not a member of the intranet to view the site.I also want to know how i can accomplish the same thing in ASP.Would appreciate if someone can help me out in this.
Thanks,
Aanchal.
|
|
|
|
|
Please don't double post.
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
Hypothetically... If you were to write your own framework, and include a scripting language to configure components in the framework, what's there to stop someone creating a virus using the framework?
I'm looking at the following scenario..
- Application data and implementation patterns are transmitted in encrypted xml, to protect expensive algorithms.
- User authentication secures access to some components, and the script it were a trojan running interactively, user authentication protects nothing.
- Script compiles to a dll on the fly, so watching for unsafe dll's won't work.
- Script is encrypted during transit, so there aren't any options for inspecting malicious script before it gets to run.
- The system is being used on the server and client, and is core to a number of mission critical applications, so you can't stop the framework from running.
I think that one effective way to protect against something like this would be to use some pattern matching, prior to execution. However, whilst never having written a Antivirus system before, I would assume that this would be a huge task in itself.
For me at least, this seem really worrying. There seems no quick fix to it, and it's leading me to believe that a well written trojan will always run the first time.
If you were of the nature, what's to stop someone writing a trojan/virus in c#? If you were an antivirus vendor without a pattern matching algorithm, you would always be on the back foot wouldn't you? Ie. without it, a virus would always be able to run at least once, before someone comes up with a signature.
Is it futile to protect against human nature with code?
You attract what you believe you deserve.
|
|
|
|
|
LowlyNobody2 wrote: - Script compiles to a dll on the fly, so watching for unsafe dll's won't work.
You're right watching for an unsafe DLL here won't work. But the Assembly must be granted full trust in this scenario because it's required by Process.Start(). So this section can be avoided by disallowing full trust dll's.
Jared Parsons
jaredp@beanseed.org
http://jaredparsons.blogspot.com/[^]
|
|
|
|
|
I'm designing the UI for a program that's going to have a non-rectangular form to create an iTunes/Apple-ish look. I'm drawing the four corners with DrawImage and bitmaps that display the edges of the window (this helps me draw the transparent edges) and four pictureboxes with a single, "looping" line in between those that stretch out to allow the window to scale. The transparency works fine and the window draws correctly, it's just that when resizing the window everything is super slow and super choppy. And I mean extremely unnacceptably choppy. While resizing, those pictureboxes that stretch don't quite cover all the area they should and it's the same with maximizing/restoring the window. I heard that .net pictureboxes are more memory intensive. Any advice on what would be faster?
- Drew
|
|
|
|
|
picture boxes are crap. Just use DrawImage all the way through.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I see. Well, I have to have something that will stretch and that I can draw on so that I can scale the window. Is there something else I can draw on that's not crap or do I have to figure this out with DrawImage?
Thanks,
Drew
|
|
|
|
|
DrawImage lets you scale, there's plenty of overloads that take the area to draw into.
Picture boxes are fine if you just want to show a picture quickly, but people tend to try and use them for all sorts of stuff that pushes them beyond what they are for.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ok thanks again, I'll try this out.
|
|
|
|
|
i want to see it, email it to me!
/\ |_ E X E GG
|
|
|
|
|
Hey guys. I'm writing a key schedule method for a cryptographic primitive - the signature of this method is void SetKey(byte[] key) . The problem I'm encountering is that I don't know the length of the key array before the method is called, but I need to expand it to a fixed length (say, 256 bits) because all manipulation needs to be done on the fixed-length array.
I won't need this array any more after the SetKey method has finished, and since the array contains sensitive material I'd like it to be wiped from memory as quickly as possible.
I can find four ways to do what I need here:
1. Use something like byte* expanded = stackalloc byte[256 / 8] . The key is declared on the stack, so it will be overwritten on future function calls. Array lookups are also extremely fast, but this code cannot be verified typesafe. The lack of type safety makes it a poor candidate.
2. Create a new array on every execution of the method: byte[] expanded = new byte[256 / 8] . This is typesafe, and I can call Array.Clear before the method returns, but this is dreadfully slow if the SetKey method is called in a loop.
3. Define an array byte[] m_expanded = new byte[256 / 8] in the class containing SetKey . This is typesafe and prevents overworking the garbage collector if SetKey is called in a loop, and I can simply clear the array when the method exits. But putting this temporary array in the class itself seems like bad coding style.
4. For certain primitives, the key needs to be cast to a series of integers, and the key scheduling algorithms operate directly on the integers. I have a structure declared in the class containing SetKey : private struct Block { uint a; uint b; . . . } . Then I can declare Block b; as a local (stack) variable within SetKey and pass ref b as an argument to helper methods (which must operate directly on b ). This is typesafe and declared on the stack, so it will be overwritten on future function calls. This only works in cases where the expanded key array is updated in order (index 0, 1, 2, . . ., corresponding to members b.a , b.b , b.c , ...) and where I can unroll the key expanding loop. So this is not a general solution.
Currently I'm using (3) for most of my primitives and (4) for a select few. What I'd really like to do is something similar to (1), but with the ability to make my library typesafe. Is there any method of doing this that I'm missing, or is my current solution the best I can hope for?
Thanks!
|
|
|
|
|
Vega02 wrote: 1. Use something like byte* expanded = stackalloc byte[256 / 8]. The key is declared on the stack, so it will be overwritten on future function calls.
That statement isn't 100% true. It will only be overwritten when enough nested function calls are made such that the stack height overwrites the array. It's possible that the call to SetKey is the deepest call ever made and thus the data is never overwritten.
Jared Parsons
jaredp@beanseed.org
http://jaredparsons.blogspot.com/[^]
|
|
|
|
|
This isn't a big deal as far as I'm concerned. If SetKey is the deepest call ever made, then no encryption or decryption routines have been called, hence no data is protected with this key and the key is useless.
|
|
|
|
|
|
I need to convert any text entered by a user in a combo box to upper case. So, in the text_changed event, I added the code to convert the text to upper. However, the first time I select the combo box and change the text, it doesn't register the changed text, but the text that was previously present in the combo box (what is loaded into it during the form load event). Is there a reason for this and how do I correct it? Thanks.
|
|
|
|
|
I am creating a round edge panel by inheriting from the panel. What I do is create a graphics path with desired shape and in the Paint method I fill the graphics path and draw the graphics path border with desired color. This would look as if the panel has round edges. So far I have not set the region. Bounds of the panel is still the rectangle.
But the problem come when I set the region of the panel to the Graphics path region. It would not draw the borders( especially left and bottom) properly, it would not draw the curves properly. Also if I set the background image , the image is not smooth along the borders even though I set smoothing mode to AntiAliasing .
Any ideas on why it is behaving this way would be greately appreciated.
Here is the code in Paint method
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
{
Graphics gr = e.Graphics;
gr.SmoothingMode = SmoothingMode.AntiAlias;
if(_roundedCorners)
{
// clear background with the parent's backcolor before drawing the round edges
if( Parent.GetType() == typeof(RoundEdgePanel))
gr.Clear( ((RoundEdgePanel)Parent).PanelBackColor);
else
gr.Clear(Parent.BackColor);
gr.DrawPath(_borderPen, _roundedEdge);
// now fill with actual color
gr.FillPath( _graphicsPathBrush,_roundedEdge);
// setting the region of the control
//this.Region = new Region( _roundedEdge); // this is where the problem comes
}
else
{
// set the back color to the color of _graphicsPathBackColor
gr.Clear( _graphcsPathBackColor);
gr.DrawPath(_borderPen, _squaredEdge);
//gr.FillRegion( _graphicsPathBrush, this.Region);
}
}
Thanks,
VpMahank.
|
|
|
|
|
Hi
I am using crystal report to display the report. I am able to do that on my workstation where crystal report is installed.
Now I have to deploy my application on another machine(user machine) which does not have crystal report installed. Is their anyway I can still display report to the user on user machine or I need to install crystal report on user machine first?
Any help would be appreciated.
Thanks
|
|
|
|
|
Crystal_Database_Access2003.msm
Crystal_Database_Access2003_enu.msm
Crystal_Managed2003.msm
Crystal_regwiz2003.msm
Add there Merge modules in setup project and 4th merge module require license you can copy that license from About dialog of MS Visual Studio IDE
Thanks
SANTOSH SATALKAR
Sr. Software Engineer
Sino India GTT Shouguang,
Weifang Area, Shandong PRC,
CHINA.
Ph. 00865365196745
http://www.gtt-sinoindia.com
-- modified at 5:15 Wednesday 4th January, 2006
|
|
|
|