|
is your PORT number correct...?
spaps
|
|
|
|
|
hi all,
I have a windows application in which i am using a webbrowser control. i write a html file which includes playing different types of media files like audio, video and flash files.
I embedded media player for video and audio files and for flash the flash player. when i execute quicktime files(video) its not playing in the media player.
i need to play the quicktime formats also in the media player if i give the URL.
is it possible?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
quite innovative try to play that quick time format file in media player normally .....if its not able to play it then a message will appear regarding installation of files for media player if it works fine then u can do it
its me sid
|
|
|
|
|
hi,
thanks for your reply. probably i did not put myself correctly. the quicktime format files are not played in media player.
how can i play quick time formats using embed tag (i mean what type of object has to be embeded to play quicktime files)?.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Hi,
My aim is to show a graphical grid on the window's form for alignments of labels ............n it must be show/hide type if any one knows how to do this please do let me know ...................regards
sindhu tiwari
Dont loose ur Heart
Beat untill ur enemy dies
|
|
|
|
|
Try TableLayoutPanel...
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
i never said a data grid i am asking abt the grid which u can see in designing softwares horizontal and parallel lines i hope its clear now
its me sid
|
|
|
|
|
for your kind info it's not a Data Grid, it's like a table which u can see while designing ur windows form and can place controls accordingly.
Do have a look at that...
that may work for u or may not,
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
I have .NET framework 2.0 installed on my machine. But I don't have VS2005. I am using VS2003. Is there anyway to access the .NET 2.0 libraries using VS2003 ?
|
|
|
|
|
AKAIK, you can only write code against v1.1 of the framework in VS2003.
You need to either upgrade to VS2005, or use a 3rd party IDE like SharpDevelop.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks. So what about .NET 3.0 ? If I have VS2005 installed, can I use .NET 3.0 classes ? I guess we can
|
|
|
|
|
Yes, you can use dot net 3 in VS2005, but not in VS2003.
"You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"
|
|
|
|
|
This link[^] explains how to update VS2005 to access .NET 3.0 functionality.
I believe that in VS2008, it will be possible to build your code against a specific version of the framework.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks for the information paul.
|
|
|
|
|
pmarfleet wrote: I believe that in VS2008, it will be possible to build your code against a specific version of the framework.
Your right but it's limited to 2.0, 3.0 and 3.5, you wont be able to do 1.0 or 1.1.
|
|
|
|
|
You can compile for .NET 1.0 and 1.1 in both VS2005 and VS2008, you just have to write the appropriate MSBuild targets (or download them, e.g. from here[^]).
|
|
|
|
|
I need to represent some data in memory which needs the performance of a
Dictionary lookup, but the key for these data consists of multible values,
e.g.:
Data has a structure like this:
ProductId (key) InventId (key) Property1 (value) Property2 (value)
1234 1 [somevalue] [somevalue]
1234 2 [somevalue] [somevalue]
1237 1 [somevalue] [somevalue]
The unique key in this case is a combination of 'ProductId' and 'InventId'
My first idea was to startout having the key a new Generic class e.g.
Key<T1,T2> for use with Dictionary<Key<T1,T2>, ProductRelation> etc..
- But this solution is not usable for more than two values for the key ....
What is the "best" Practice for this scenario? - if you want max flexibility and max
performance ??
Regards, Rune
|
|
|
|
|
Hello,
Why not use a non generic class or struct?
All the best,
Martin
|
|
|
|
|
a nongeneric collection would be a lot slower.
I could use a object[] as the key, but that would give a heavy performance penalty when boxing/unboxing values ... that's why generics is so good in this case.
|
|
|
|
|
Create a wrapper object that overrides the GetHashCode method.
Actually, when it is numeric I just make my hash use a string as the first key and look up "id_id"
The other option is to have a hash containing a hash. It would require two look ups but work reasonably well.
Dictionary<productid, dictionary<inventoryid,="" myobject="">>;
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Sounds like the way to go ...
This performs quite well, but it still does not solve having n-number of values as a key, only two this time ...
<br />
void Main()<br />
{<br />
Dictionary<Key<int, string>, MyClass> dictionary = new Dictionary<Key<int, string>, MyClass>();<br />
<br />
MyClass obj = new MyClass();<br />
dictionary.Add(obj.GetKey(), obj);<br />
}<br />
<br />
<br />
<br />
<br />
public struct Key<T1, T2> : IEquatable<Key<T1, T2>><br />
{<br />
public Key(T1 keyValue1, T2 keyValue2)<br />
{<br />
_keyValue1 = keyValue1;<br />
_keyValue2 = keyValue2;<br />
}<br />
<br />
private T1 _keyValue1;<br />
private T2 _keyValue2;<br />
<br />
public override int GetHashCode()<br />
{<br />
return _keyValue1.GetHashCode() ^ _keyValue2.GetHashCode();<br />
}<br />
<br />
public override bool Equals(object other)<br />
{<br />
return this.GetHashCode().Equals(other.GetHashCode());<br />
}<br />
<br />
}<br />
<br />
<br />
<br />
public sealed class MyClass<br />
{<br />
<br />
private int _Key1;<br />
private string _Key2;<br />
private string _Value1;<br />
<br />
public int Key1<br />
{<br />
get { return _Key1; }<br />
set { _Key1 = value; }<br />
}<br />
<br />
public string Key2<br />
{<br />
get { return _Key2; }<br />
set { _Key2 = value; }<br />
}<br />
<br />
public string Value1<br />
{<br />
get { return _Value1; }<br />
set { _Value1 = value; }<br />
}<br />
<br />
public Key<int, string> GetKey()<br />
{<br />
return new Key<int, string>(this.Key1, this.Key2);<br />
}<br />
<br />
}<br />
<br />
|
|
|
|
|
How about a Dictionary of Dictionaries?
I don't know how variable you can get though.
Gives me something to think about tonight...
|
|
|
|
|
Under the right circumstances it would probably perform very well, but for more than two values you are screwed...
|
|
|
|
|
|
I like a good programming exercise. What I've been concentrating on is the "max flexibility" part, but with a lack of type safety I don't see how both can be achieved.
This is just a little test program that uses the class I'm working on.
namespace Test
{
class Test
{
[System.STAThreadAttribute]
static void
Main
(
string[] args
)
{
PIEBALD.Types.Hierarchary store = new PIEBALD.Types.Hierarchary
(
typeof(int)
,
typeof(int)
,
typeof(string)
) ;
store [ 1234 , 1 , "Property1" ] = "1234 1 1" ;
store [ 1234 , 1 , "Property2" ] = "1234 1 2" ;
store [ 1234 , 2 , "Property1" ] = "1234 2 1" ;
store [ 1234 , 2 , "Property2" ] = "1234 2 2" ;
store [ 1237 , 1 , "Property1" ] = "1237 1 1" ;
store [ 1237 , 1 , "Property2" ] = "1237 1 2" ;
System.Console.WriteLine
( "ProductId (key) InventId (key) Property1 (value) Property2 (value)" ) ;
foreach ( object k1 in store.Keys() )
{
foreach ( object k2 in store.Keys ( k1 ) )
{
System.Console.WriteLine
(
"{0,-17} {1,-16} {2,-20} {3,-20}"
,
k1
,
k2
,
store [ k1 , k2 , "Property1" ]
,
store [ k1 , k2 , "Property2" ]
) ;
}
}
return ;
}
}
}
|
|
|
|