|
Thank you for the time you spent on this matter.
I think we've got it worked out.
God Bless,
Jason
DavidCrow wrote: It would not affect me or my family one iota. My wife and I are in charge of when the tv is on, and what it displays.
I do not need any external input for that.
|
|
|
|
|
You are welcome.
I hope you are sure you understand the problem and the solutions (with and
without byte array).
|
|
|
|
|
Never mind I got it:
return val = (val >> 24) |(val << 24);
Yep your right that is better.
Thanks for the time and help.
God Bless,
Jason
DavidCrow wrote: It would not affect me or my family one iota. My wife and I are in charge of when the tv is on, and what it displays.
I do not need any external input for that.
|
|
|
|
|
?????????
what is val's type ? what did you do to my code, now it is completely wrong.
[1]
ushort val=0x1234 ?
val>>24=0
val<<24=0
so it returns 0
[2]
uint val=0x12345678 ?
val>>24=0x00000012
val<<24=0x78000000
so it returns 0x78000012 ????
?????????
|
|
|
|
|
Well after some searching on the subject I got it figured out.
Here is what I am using to do the flipping it should handle any size:
static byte[] FlipBytes(byte[] bArray)
{
byte[] bNewArray = new byte[bArray.Length];
int j = 0;
for (int i = bArray.Length - 1; i >= 0; i--)
{
bNewArray[j] = bArray[i];
j++;
}
return bNewArray;
}
God Bless,
Jason
DavidCrow wrote: It would not affect me or my family one iota. My wife and I are in charge of when the tv is on, and what it displays.
I do not need any external input for that.
|
|
|
|
|
I am using Publish Feature of Microsoft Visual Studio 2005(Visual C#) , I can easily Publish and install the updates with one click, BUT the PROBLEM is that it downloads the updates under the Logged-on user profile as C:\Documents and Settings\salman\Local Settings\Apps\2.0\MZ4LCEX9.335\8Q3D2HW5.Q2O\manifests\....
Whereas, i want to specify a download location during publishing the project.
Please help me this is very very urgent.
thanks.
|
|
|
|
|
You posted the same question just a few minutes ago. Please delete the previous post.
__________________
Bob is my homeboy.
|
|
|
|
|
You can't specify install directory on client if you use ClickOnce... If that is absolutely necessary, well -> then you'll have to use some other deployment technology.
However, if you provide me with more info on what you're trying to achieve, I'm willing to give you more suggestions.
Enjoy!
|
|
|
|
|
Hi all,
Ive been using log4net as my logging framework of choice anybody who has used it will agree its really great ! (beats the microsoft logging block)
Now my question ?
I would like to add a SMS Appender feature that will send an sms to a mobile phone as an addtional logging feature, how do i go about adding appenders of my choice ?
Thanks !
|
|
|
|
|
|
|
I am using Publish Feature of Microsoft Visual Studio 2005(Visual C#) , I can easily Publish and install the updates with one click, BUT the PROBLEM is that it downloads the updates under the Logged-on user profile as C:\Documents and Settings\salman\Local Settings\Apps\2.0\MZ4LCEX9.335\8Q3D2HW5.Q2O\manifests\....
Whereas, i want to specify a download location during publishing the project.
Please help me this is very very urgent.
thanks.
|
|
|
|
|
Hello,
i'd like to remove the pointer of the datagridview, i don't know exactly the name of that.
look the picture:
http://img105.imageshack.us/my.php?image=pointerua1.jpg
thank you !!
|
|
|
|
|
Don't keep reposting the same question.
only two letters away from being an asset
|
|
|
|
|
the other post was deleted
|
|
|
|
|
FernandoMartin wrote: i'd like to remove the pointer of the datagridview, i don't know exactly the name of that.
Set the RowHeadersVisible property of the DataGridView to False
|
|
|
|
|
|
how can i code to check for the existence of a particular text file in a drive and then call for a dialogue form if the file does not exist
ma coding life
|
|
|
|
|
Hello,
ploxy wrote: how can i code to check for the existence of a particular text file in a drive
Have a look at System.IO.File namespace and "Exists" method.
ploxy wrote: and then call for a dialogue form if the file does not exist
The System.Windows.Forms.MessageBox with it's static "Show" method will do that.
Hope it helps!
All the best,
Martin
|
|
|
|
|
if (!File.Exists(filename)) {
filename=null;
using (OpenFileDialog dlg=new OpenFileDialog()) {
... dlg properties = values;
if (dlg.Show()==DialogResult.OK) filename=dlg.FileName;
}
}
if (filename!=null) ...
|
|
|
|
|
i wrote a little application that install a particular file in drive C. on installing the application on D drive,i had problem calling the file.how can i code for the file to be referenced irrespective of its installation path
ma coding life
|
|
|
|
|
The only idea I can think of involves creating a share folder where you write the file to. Then you could access the file via the share name. So it would be something like:
\\computername\sharefoldername\file
Of course the down side to this is you need to know the computer name, but that isn't real hard to figure out.
Hope that helps.
Ben
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
I like your answer, but the way I understood the question was that you wouldn't know for sure which drive the file is on. (Of course, that is a little weird/ bad design) So if you don't know the drive letter you could acces it through a share. I suppose sometimes I think too much of answering the question instead of pushing for a better design. My fault.
Ben
|
|
|
|
|
If the file is on the same drive that the application is on, could you use
Environment.CurrentDirectory
to figure out which drive you are on. the use relative paths from there to get to your file.
Hogan
|
|
|
|