Search Results

Showing results 1 to 40 of 61
Search took 0.01 seconds.
Search: Posts Made By: Lord Soth ; Forum: C# and child forums
Forum: C# Jan 2nd, 2007
Replies: 9
Views: 3,967
Posted By Lord Soth
Hi,

Your problem is reading and writing byte by byte. Instead you should read as big blocks (like 4KB each at least, as NTFS cluster size is this) XOR'em on the memory and write'em back as...
Forum: C# Jan 2nd, 2007
Replies: 3
Views: 14,037
Posted By Lord Soth
Hi,

Try using ExitWindows or ExitWindowsEx Win32 API calls with P/Invoke.

Loren Soth
Forum: C# Jan 2nd, 2007
Replies: 1
Views: 3,278
Posted By Lord Soth
Hi,

You can either use P/Invoke to access Win32 Api calls, it supports analog reading but I don't think it supports vibration. You better use Managed DirectX 9 classes to use DirectInput.
...
Forum: C# Aug 29th, 2006
Replies: 5
Views: 7,381
Posted By Lord Soth
Hi,

Like libpcap (core of WinPCap I previously mentioned) libdnet also requires you to load a driver to your computer but different than libPcap it can drop packets, change routing tables or...
Forum: C# Aug 28th, 2006
Replies: 3
Views: 2,462
Posted By Lord Soth
Hi,


void change(string s)
{
label1.Text = s;
}

private void button1_Click(object sender, System.EventArgs e)
{
Forum: C# Aug 28th, 2006
Replies: 3
Views: 22,445
Posted By Lord Soth
Hi,

If you have a specific XML schema, you can use a DataSet not bound to a database or connection and provide your own schema. This way you can use all data bound controls and table cursors and...
Forum: C# Aug 28th, 2006
Replies: 21
Views: 12,205
Posted By Lord Soth
Hi,

First can an OS be coded in C# ? The answer is yes http://research.microsoft.com/os/singularity/ although it is pretty a proof of concept type of OS. Still it is one of the most fascinating...
Forum: C# Aug 28th, 2006
Replies: 2
Views: 2,142
Posted By Lord Soth
Hi,

The creation af a thread or calling a function from the event won't help at all because the creation of a new thread object and the thread it self on OS plus the necessary context switching...
Forum: C# Aug 28th, 2006
Replies: 2
Views: 3,066
Posted By Lord Soth
Hi,

Nice singleton pattern by RamyMahrous but GetTheOnlyInstance()
could directly return the Image myImage and from .Net 2.0 instead of defining a private contructor to make a pure static class...
Forum: C# Aug 28th, 2006
Replies: 5
Views: 7,381
Posted By Lord Soth
Hi,

You can't write kernel mode device driver in managed code (C#, VB.Net) which is required to write network filter driver which can drop packets (main functionality of firewalls)
You can...
Forum: C# Aug 12th, 2006
Replies: 5
Views: 3,289
Posted By Lord Soth
Hi,

You can use String.Split(" ") to get an array of words of your string, this way you can also know the number of words on that string. (if you plan to use multiple possible sentences)
...
Forum: C# Aug 12th, 2006
Replies: 1
Views: 4,344
Posted By Lord Soth
Hi,

Do you need an industrial strength encryption (like AES, 3DES) or just need to scramble the content to make it human unreadable. For the former you have to use System.Security.Cryptography...
Forum: C# Aug 8th, 2006
Replies: 5
Views: 14,852
Posted By Lord Soth
Hi,

If you aren't porting old code (actually even if you do so), or has a valid reason to use that ActiveX control, you would be much better off using System.Net classes performance and debug...
Forum: C# Aug 8th, 2006
Replies: 1
Views: 1,488
Posted By Lord Soth
Hi,

For forensic disk access you can't trust to the file system or the OS file/disk APIs (WIN32). MFT for NTFS and the FAT for FAT32 file systems may be corrupt or tempered. Sectors might be...
Forum: C# Aug 8th, 2006
Replies: 2
Views: 1,836
Posted By Lord Soth
Dear BeyerCorpuz:

C#

Loren Soth
Forum: C# Aug 5th, 2006
Replies: 2
Views: 7,698
Posted By Lord Soth
Hi,

I doubt that you can create that separate hook dll with managed code but you can create the app managed and the dll native code (C++, Delphi).

Loren Soth
Forum: C# Aug 5th, 2006
Replies: 28
Views: 74,455
Posted By Lord Soth
Hi,

As celikada already mentioned there are different bluetooth stacks available and Microsoft hadn't provided one till XP SP2 (if I'm not mistaken) still most USB BT dongles install their own...
Forum: C# Aug 5th, 2006
Replies: 2
Views: 2,298
Posted By Lord Soth
Hi,

Check http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsde/html/msdedepl.asp and ...
Forum: C# Aug 5th, 2006
Replies: 4
Views: 2,397
Posted By Lord Soth
Hi,

I am not sure but the four parametered version of the FromArgb takes Alpha Red Green Blue (where Alpha is opacity/trasnparency) but still you must adjust the GDI+'s brush or copy mode I...
Forum: C# Jul 28th, 2006
Replies: 14
Views: 24,894
Posted By Lord Soth
Hi,

I thought one of those events pass the ListViewItem object as parameter just like TreeView returns TreeViewNode but I was mistaken.
You can use just "tbSearch.Text =...
Forum: C# Jul 27th, 2006
Replies: 14
Views: 24,894
Posted By Lord Soth
Hi,

Try lv.selecteditems[0].subitems[2].text;
If you use ItemActivated or SelectedIndexChanged event then you can avoid lv.selecteditems[0] and directly call the ListViewItem passed as a...
Forum: C# Jul 24th, 2006
Replies: 12
Views: 22,423
Posted By Lord Soth
Hi,

Even if you manage to alter the data w/ JScript on the client side grid you see in the browser, this will not affect the datagrid object and the bound dataset on the server. If you don't...
Forum: C# Jul 24th, 2006
Replies: 4
Views: 2,397
Posted By Lord Soth
Hi,

If you are using System.Drawing (GDI+), you can use "System.Drawing.Color.FromArgb(Int32, Int32, Int32)".

Loren Soth
Forum: C# Jul 24th, 2006
Replies: 5
Views: 7,381
Posted By Lord Soth
Hi,

If you are trying to do a local firewall which protects the installed PC only (like ZoneAlarm) then you have to write a Network Filter Driver which is a kernel mode module like any device...
Forum: C# Jul 18th, 2006
Replies: 6
Views: 6,501
Posted By Lord Soth
Hi,

The second part is almost the same solution alc6379 suggested (encapsulate in a property) I just reminded that VS 2005 has a feature to make this get/set code generated automatically via...
Forum: C# Jul 8th, 2006
Replies: 1
Views: 2,074
Posted By Lord Soth
Hi,

Do you override any thing about the definition of property called Position ? If not then your problem is you try to use += variable on a value type member of position but position it self is...
Forum: C# Jul 8th, 2006
Replies: 4
Views: 2,234
Posted By Lord Soth
Hi,

Your problem is with compiler, the above fixes are correct. You create a bool msg but it gets assigned a value only if(txtuserid==args.Value) and also the only return statement is in this...
Forum: C# Jul 8th, 2006
Replies: 1
Views: 2,258
Posted By Lord Soth
Hi,

Your code is confusing and require some cleaning up. I suggest that you put the ststic void main in a separate class than your base classes. The class name LinkList is misleading because as...
Forum: C# Jul 8th, 2006
Replies: 3
Views: 3,012
Posted By Lord Soth
Hi,

You have some options. Your first and best bet is to use JNI to expose Java functionality native codes and consume them through Platform Invoke. A more exotic approach would be to use one of...
Forum: C# Jul 8th, 2006
Replies: 6
Views: 6,501
Posted By Lord Soth
Hi,

You can make your controls databound to a field on a dataset but if you just need to bind it to a variable declare your variable as private in your class and encapsulate it as a property...
Forum: C# Jul 8th, 2006
Replies: 1
Views: 2,507
Posted By Lord Soth
Hi,

You can use TcpClient and TcpListener classes from System.Net.Sockets name space to use standart TCP communication. If you are implementing a protocol of your own use any port you like...
Forum: C# Jul 8th, 2006
Replies: 2
Views: 6,989
Posted By Lord Soth
Hi,

I can provide you a C# implementation of CRC32. (you can easily find one googling too) But if the speed is of essence (making managed MD5 unusable) you might prefer to use a native code...
Forum: C# Jul 8th, 2006
Replies: 9
Views: 28,525
Posted By Lord Soth
Hi,

You must put the lblFactorial.Text = factorial.ToString("n20"); after the while loop.

Loren Soth
Forum: C# Jul 8th, 2006
Replies: 1
Views: 4,777
Posted By Lord Soth
Hi,

TcpClient is for raw socket access and isn't convenient. HttpWebRequest is possible but you have to code all the SML and SOAP parsing, composing code. Best way to do this is to consume the...
Forum: C# Apr 20th, 2006
Replies: 3
Views: 10,618
Posted By Lord Soth
Hi,

It is limited with your Virtual Memory Size (if you set to automatic management then it is limited to your free disk space on the drive where your page file resides) I successfully created...
Forum: C# Apr 20th, 2006
Replies: 7
Views: 3,504
Posted By Lord Soth
Hi,

As you see is a direct descendent of System.Object thus it isn't an array or a collection. So you can't assign s = {"a", "b", "c", "d", "e"}. To make the class itself a collection you must...
Forum: C# Apr 19th, 2006
Replies: 9
Views: 11,422
Posted By Lord Soth
Hi,

I assume you use VC++ 6.0 or VC++.Net (7.0) with unmanaged code in those the default variant type might be the same as OleVariant (especially when you select COM object as project type)...
Forum: C# Apr 19th, 2006
Replies: 4
Views: 1,606
Posted By Lord Soth
Hi,

The previous post is pretty much optimized and must have solved your problem but if you have many entires on your DB you might want to use an SQL query like (Select * from <tablename> where...
Forum: C# Apr 19th, 2006
Replies: 5
Views: 8,430
Posted By Lord Soth
Hi,

The problem here is that even XP don't come with a bluetooth stack unless you have SP2. So every body use a different bluetooth stack (my dongle came w/ Bluesoleil but there also is Widcomm...
Forum: C# Apr 19th, 2006
Replies: 7
Views: 3,504
Posted By Lord Soth
Hi,

All those code are valid but they aren't encapsulation really. The purpose of encapsulation is to provide a layer of decoupling between the private variable and other objects which access...
Showing results 1 to 40 of 61

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC