|
Hi. Please could anybody tell me how to obtain subnet masks (TCP/IP) settings of the network controllers from Windows?
Thank you very much.
B.
|
|
|
|
|
As you guys know Dynamic Link Libraries created in visual studio .NET can be decrypted, oooh my goodness. How can it be encrypted?
Dotfuscator can do somethings, but when u encrypt your class with it,all the members of your class rename to letters and furthur useness would be horrible.
Thank you in advanced.
bobby877
|
|
|
|
|
Someone told me that with .Net 2.0 its possible to compile to native code. But I don't know if he his correct. I didn't found a way to, yet.
So if anybody knows, I'm interested in, too.
Greetings,
Ingo
|
|
|
|
|
ihoecken wrote: Someone told me that with .Net 2.0 its possible to compile to native code.
No, it's not. Well, only if you're writing in unmanaged C++. Managed C++ compiles to a combination of native and managed code.
There are tools out there that will compile down to Native code, but they cost a bloody fortune to buy.
There is no way to encrypt the .DLL and still have it work, other than obfuscation. No matter what you do, the .DLL must be decrypted to use, even if it's done in memory. At that point, you're entire encryption scheme just defeated itself.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
even in .Net 1.0 you can use NGen to compile a .Net dll to native code. This has to happen on the target machine however, since Ngen will optimize for the processor it finds, and installs the resulting image in the native image cache. Your installer script could Ngen normal dlls in a temporary location, then delete the uncompliled dlls...
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke
|
|
|
|
|
But that, of course, means that the source MSIL files would have to be on the installation CD's too! You could easily stop the installer from deleting the files just by modifying the permissions on the TEMP folders.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well I found a software which allows to convert .Net projects to native code. It's called .Net Reactor[^]
I tried it. The code is encrypted afterwards. Reflector isn't able to disassemble it.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
-- modified at 11:27 Tuesday 7th February, 2006
|
|
|
|
|
hi ,
i have a textbox that i type date in it like this :
for exs
10/01/05
d,m,yy
this value i am sending into a DateTime object like this :
DateTime dateToPut;
dateToPut=DateTime.Parse(tbDateToPut.Text);
after the value is insert to the obj i am sending him to a datagrid cell
the problem is that the date is showing like this in the grid :
01/10/05
m,d,yy
how can i repiaer it ?
thanks ...
|
|
|
|
|
Specify a date format.
dateToPut=DateTime.ParseExact(tbDateToPut.Text, "dd/MM/yy", CultureInfo.GetCultureInfo("he-IL"));
Why don't you use 4-digit years?
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
I want to create a calander tool which will allow user to create a message on a date when you click it on calander and when the day appears, I want it to play a alarm and display message in a Message box with OK button on it.
I also would like a USer.ini config to be generated to save the information so its not lost when the application is exited. Finally I want the user to be able to set the application to it loads up when windows starts. How would you do this?
In the end we're all just the same
|
|
|
|
|
How do i create TabStrip Control dynamically? without using IE Webcontrols. does any one know pls. reply to this.
|
|
|
|
|
I am currently designing a Application in C#.net 2003 that will have a lot of features in it. It looks a bit like the desktop of Windows Blackcomb and it has many features of a mini- operating system.How would I:
1) How would you get a button to link to the Recycle bin? or My computer?
2) on the information part, I have written a properties tab. I have three text boxes. I want the first one: txtBx1 to show the amount of RAM that the application is using while running and TxtBx2 to show the amount of Free RAM and TxtBx3 to show how much Space the Application takes up on disk and the Location of where the application is stored like:
Finally I made a way to change the background on Main Screen (Like wallpaper on desktop)and I made a Calander which has settings to save imoprtant day notes. How would I generate a .ini config file so when the application is closed, you don't loose the settings?
Cheers if you can help me.
In the end we're all just the same
-- modified at 5:45 Tuesday 31st January, 2006
|
|
|
|
|
Dave McCool wrote: 1) How would you get a button to link to the Recycle bin? or My computer?
Not sure about the Recycle Bin - there is probably an API for it. You can access many of the special folders with System.Environment.GetFolderPath()[^]
Dave McCool wrote: txtBx1
You might consider a more robust naming convention otherwise it will become a nightmare to maintain.
Dave McCool wrote: How would I generate a .ini config file so when the application is closed, you don't loose the settings?
.ini files? How very Windows 3.1 - You might better consider an XML file, for which there is plenty of documentation.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
Hi ,
I am using Byte array which I want to Convert to a string
I think that I can't use the GetString function , since the array holds zeros in it
Is there any other function I can use ?
Thanks
|
|
|
|
|
Take a look at the BitConverter class.
|
|
|
|
|
Is the byte array based on Unicode/ASCII characters, or is it just an array that you want to store as text?
If you just want to convert the byte array into a storable string (and then convert it back afterwards), try Convert.ToBase64String() to change them into a string, and Convert.FromBase64String() to change them back. The MSDN article for the former is here[^]
If the array is based on characters in text, then you can use the System.Text.Encoding.Unicode.GetString() method (or ASCII if you replace the relevant word).
Hope that helps.
Cheers,
Will H
-- modified at 7:23 Tuesday 31st January, 2006
|
|
|
|
|
Hi All
I want to creat a control which displays time in "hr:min AM/PM". If I click on the value the mouse control will go to "hr", "min" or "AM/PM" respectively. I want to add updown control to change the value of "hr", "min" and "AM/PM".
Can anyone suggest me how can I do it? Thanks in advance.
|
|
|
|
|
You should use a label or (if the user can enter the time via keyboard) a textbox for every part of the time: hr, min, am/pm
When you got a click you should remember what have been clicked. If the Up/Down Control is clicked you should read the value of the element, change it and then write it back like:
if (element == "hour") {
int hours = Convert.ToInt32(txtHour.Text);
hours++;
if (hours > 12) {
- to be done -
}
txtHour.Text = hours.ToString();
}
...
Greetings,
Ingo
|
|
|
|
|
hi,
I have developed the email sending application using SMTPMail class(.NET). My machine setup is like that I m working on the lan network. In our company we use MS Exchnage server. So can how can i send an email thru my spplication.
|
|
|
|
|
You should give us a little more points. When I read your question, I would say: "Press the send button!"
What does the application? Is an error thrown? Do you get contact to the server? Have you implemented the sending of the eMail?
Greetings,
Ingo
|
|
|
|
|
Ok here's the error
I am making a chat client. The user has to open a new windows for each client he wants to talk to. So if he clicks the button
if(TO[TOS[this.listBox1.SelectedIndex]].Visible)<br />
{<br />
TO[TOS[this.listBox1.SelectedIndex]].Focus();<br />
}<br />
else<br />
{<br />
TO[TOS[this.listBox1.SelectedIndex]].Show();<br />
}
I use that and it works. But I also want the program to open a window when it receives data from a client who's window is not opened(just like Yahoo Messenger).
if(TO[num].Visible)<br />
{<br />
TO[num].Receive(Got.Split(":".ToCharArray(),2)[1]);<br />
}<br />
else<br />
{ <br />
TO[num].Show();<br />
TO[num].Receive(Got.Split(":".ToCharArray(),2)[1]);<br />
}
And then i get something like the left-over of a window and the program exits, without pointing out an exceptio at least. Please help.
-- modified at 2:57 Tuesday 31st January, 2006
|
|
|
|
|
Did you put a breakpoint and step through the part where it gives you problems?
If you can find out which line breaks your code, it might be easier to fix it.
Cheers,
Vikram. "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.
i dont mind to be
a stupid,better than being a moron - Adnan Siddiqi.
|
|
|
|
|
Really, I'll try, altough until now I haven't used this method
|
|
|
|
|
Ok, It managed to jam the debugger. I am speechless
|
|
|
|
|
nc3b wrote: It managed to jam the debugger
What do you mean by that? How did it "jam" the debugger?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|