|
GetSuit should be on Card, not CardCollection
|
|
|
|
|
Is there a class available to convert data from Little to BigEndian?
Regards
Hansjörg
|
|
|
|
|
If you found usefull.
See this.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
I need something to convert a byte array (which contains int, int64...) from big to little endian.
I don't see any possibitlity to use this class, isn't it?
Thanks for your help!
Regards
Hansjörg
|
|
|
|
|
Best way is to write some methods yourself, what types do you have to convert?
public static int ReverseEndian(int x) <br />
{<br />
return ((x<<24) | ((x & 0xff00)<<8) | ((x & 0xff0000)>>8) | (x>>24));<br />
}<br />
<br />
public static uint ReverseEndian(uint x) <br />
{<br />
return ((x<<24) | ((x & 0xff00)<<8) | ((x & 0xff0000)>>8) | (x>>24));<br />
}<br />
<br />
...
|
|
|
|
|
I have to convert all standard types...
I hoped that something is available
Thanks for your help!
|
|
|
|
|
I don't know of any implementation that does it, the code I gave was from a program of mine where I also did everything myself.
If you have to convert all standard types I would create your own BinaryReader which takes the default BinaryReader as parameter and endian swap each method before passing back.
using System.IO;<br />
<br />
public class EndianReader : BinaryReader<br />
{<br />
#region Constructors<br />
<br />
public EndianReader(Stream stream)<br />
: base(stream)<br />
{<br />
}<br />
<br />
#endregion<br />
<br />
#region Methods<br />
<br />
public override int ReadInt32()<br />
{<br />
return ReverseEndian(base.ReadInt32());<br />
}<br />
<br />
#endregion<br />
<br />
#region Class Methods<br />
<br />
public static int ReverseEndian(int x)<br />
{<br />
return ((x << 24) | ((x & 0xff00) << 8) | ((x & 0xff0000) >> 8) | (x >> 24));<br />
}<br />
<br />
#endregion<br />
}<br />
|
|
|
|
|
how to print the datagrid after user input certain parameter to display the datagrid in Web page??
angela
|
|
|
|
|
Hi Angela,
If u want to print data which have dynamic attributes to be displayed then u can use Cellset.
Cellset might be the solution to ur query.
Not sure....
|
|
|
|
|
hi,
sorry that i dun know about Cellset, how to call it to print my datagrid?
also thanks for your suggestion
angela
|
|
|
|
|
Hello!
I want to write a proxy server with access log and content filtering or cashing.
I wrote a proxy server with access log!!
Somebody knows how can I add content filtering to it !
please help me
thanks
Mitra
|
|
|
|
|
hi
i want use VScrollbar in my form but don't know how do that and my scroolbar is not work .
how to do that ?
|
|
|
|
|
is it for a certain control? See in the properties of that control, otherwise you can do it via inserting a panel, which does has those properties, if you want it on your entire form for example, you need to add it first and your controls after that into that panel, then you calculate the size your panel needs to be and resize it. If the panel then goes outside your form, you should get scrollbars (if all is correct)
Good luck,
No hurries, no worries.
|
|
|
|
|
I have two application. One appli use one COM object releted to RTP streaming.
Now if i transmit packet by this appli & other end this appli receive that packet & play the sound it work well.
But the appli transmit packet my second appli capture that packet & retranmit to first appli then it will not play well.
I can't understand what is the problem.
In COM object i just specified IP & Port no. In Other appli i create on socket of UDP type. When i check for header of RTP it is correct but what about payload i don't know.
Plz help me.
Regards,
Divyang Mithaiwala
|
|
|
|
|
Dear All,
Im doing a setup application. Where i need to install the .Net Framework and then the application setup by a single button click from my application.
In button click i need to run the set up Msi file in a quite mode using the /q arguement in the command prompt. How to achieve this. Please help me out.
Struggling with this. Anyhelp will be greatfull to me.
Regards
Mukilan.P.S
|
|
|
|
|
i wish to discover all the systems in a network using wmi and c# as the scripting language...can u please help me out...
barath pc(barathchidambaram@gmail.com)
|
|
|
|
|
|
I have encounted a serious problem when working on C# programing. That is:
I developed a table control consisting of labels and panels.
So, if i need to create a huge table with many cells(each cell with a window handle), so i got a big amount of window handles in my program. But for each process on WINXP the limited number of window handles is 10,000. I want to destroy some window handles not used, but how to? Are there good solutions to it? Waiting for reply, thanks.
|
|
|
|
|
Assume i have a subfolders in the mainfolder. These subfolders contains certain Excel files. And that this main folder is stored in server. I want to retrieve the path of the files in subfolder and pass it to the local machines. I am not supposed to use database. So how am i to implement this
ItsMe
|
|
|
|
|
|
will this function fetch all the paths of the subfolders in specific mainfolder.
Can this be written in a webmethod in webservice or the client has to call this. because i want this to be written in the webmethod at server.
ItsMe
|
|
|
|
|
Hi, I was wondering if anyone here has any experience using the ipod class "iPodManagerClass"? if so, I'd be interested if you have any knowledge of how to, or where to find information on, getting artist names off the ipod, and copying songs from the ipod to the pc. I have searched google without many results. Thanks for the help,
Stephen
|
|
|
|
|
|
Hello Code Project Team.
Someone knows wath is necesary to make a VPN client in C#?
Thanks in advanced.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Hello!!
I want to create a function in which i need for example click some button and obtain a value, then click somewhere in the win form and obtain a x, y value and finally click other button and make some math operations, so the function that i want must wait until i click the appropriate button or area in the win form, if i don't follow the right order the function must do nothing until i click the elements in the right order.
Somebody knows how can i do this?
Thanks,
Alberto Martinez
|
|
|
|