|
I need set de sambaNTpassword in LDAP. Using a program in c#. I know the nt password is a MD4 hash. I use a MD4 class but de hash is diferent then a samba hash . For example:
password =pass
using MD4.cs = 52E9E9E4F1CD6D1ABC78AA866D2A5509
using samba = 8846F7EAEE8FB117AD06BDD830B7586C
anyone have one idea for help-me?
thanks
Seidl
-- modified at 13:40 Tuesday 13th February, 2007
|
|
|
|
|
Folks,
In one of my requirement I have to use ADODB(since I need
old method recordset)in c#.I am trying to execute stored proc I don't know how to pass parameters from c# to adodb can anyone help me.
rs=cmd.execute(out object recordsaffected,ref object parameters,int options)
can somebody help me how to pass ref object parameters with some sample.
Thanks
kingston
|
|
|
|
|
hi,
How do we notify the application about alerts in the database.
Actually i have created an alert in the database and it gets called whenever an update occurs in the database.how does the application gets to know that an alert has been called?the database is SQL Server 2000 and im using c#.
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
Do you mean a trigger ? You can't.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Not triggers actually.You have "sp_add_alert" like http://msdn2.microsoft.com/en-us/library/aa259587(SQL.80).aspx
by this you can create a database alert .I just wana know how to notify the alert to the application.
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
Hi,
I am having problem finding a dot net solution (i.e. dll or namespace) for using the ODMA.
If any1 has a solution for using ODMA on .net platform please help me out.
Thank you!
M. Nauman
|
|
|
|
|
Hello,
I am currently using C# and DirectShow to create a DVD Playback. I am using DirectShow DVD Navigator/Splitter Filter to read the DVD stream directly from a DVD disc and produces individual media type outputs, such as audio, video, and subpicture.
I was wondering if there is way to get the name of the DVD and from this filter and display it on the User Interface? After all, once the DVD is placed on the DVD-Driver, the name of the movie appears on the driver.
Thank you for your help and any information to get this problem solved
Khoramdin
|
|
|
|
|
I spent a several lifetimes by searching how to implement nice folder tree in C#. A tree which looks like that in Windows Explorer.
There are several solutions that are complicated, platform-dependent and full of errors. What I need is to implement a tree usable on different platforms only with minimum modifications (it will show "Desktop" and "Network Places" on Win32, but can be simply modified to work well on Linux or Mac with Mono).
Of course, there is FolderBrowserDialog but this is a dialog and I need a control that can be docked inside a form and throws several events (directory changed etc.)
Any help would be appreciated.
|
|
|
|
|
Hi All,
You can set an application icon in the "Application" page of the project properties in visual studio. This works.
I can use the same icon for my filetype, assigned through the following registry key and value:-
HKEY_CLASSES_ROOT\MyFile\DefaultIcon\[default value] = c:\mypath\myexe.exe,0
Which uses the 0th icon in my app for the file type icon. But how can I add another icon embedded to the exe to use instead? Back in the VC6 / c++ days this was easy. the icons would of course end up being c:\mypath\myexe.exe,1
Many windows binary images have multiple icons in. How to implement this in c#?
Thanks
Jon
|
|
|
|
|
I would use a PNL package [Probabilistic Network Library in http://sourceforge.net/projects/openpnl[^]], but this package was in .cpp an .hpp, please help me to introduce this package in my project,
i work with C# .net VS2005, i don't know if the Visual Studio 2005 introduce .cpp an .hpp
thank you.
-- modified at 11:02 Tuesday 13th February, 2007
|
|
|
|
|
You can't mix languages. You can write a dll in managed C++, which uses these files, and uses a managed class to expose their methods to C#.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I wonder how many times that answer has been given to a question in this forum.. Just the last few days I know I have read it several times, and then I haven't even read all threads.. Is it really so that people doesn't read the first post, search articles here, and do not use google like ever??
Internet - the worlds biggest dictionary
|
|
|
|
|
The function Socket.AcceptSocket() creates a new socket for a connection, I can get
the remote host IP address from Socket.RemoteEndPoint.
but I want to know the remote host name(computer name), can i resolve the name from
an IP address?
-- modified at 11:45 Tuesday 13th February, 2007
|
|
|
|
|
Hi,
i didn't test this but found it by searching for the local PC name.
System.Net.Dns.BeginResolve
or
System.Net.Dns.Resolve
if you also write the server app. you can send it yourself by using this at server site.
System.Windows.Forms.SystemInformation.ComputerName;
or
System.Net.Dns.GetHostName();
hope it helps.
Greetz
Kurt
Okay i did a small test for you .. and seems to work (but depreceated).
System.Net.IPHostEntry tmp = System.Net.Dns.Resolve(textBox1.Text);
textBox2.Text = tmp.HostName;
fill in IP address in textbox1..
greetz
-- modified at 10:57 Tuesday 13th February, 2007
|
|
|
|
|
I think you should use
System.Net.Dns.GetHostByAddress(String address)
Regards,
Wasif Ehsan.
|
|
|
|
|
Yep. Also seems to work.
VS2005 suggests System.Net.Dns.GetHostEntry() when compiling.
so there are several ways...
greetz
Kurt
|
|
|
|
|
I was trying to "upper" cast a class. I looked like this but I get a Exception. Is there anyway to have a extended class and cast to it?
public class FirstClass {
}
public class SecondClass : FirstClass {
}
public class Main {
public Main()
{
FirstClass iFirstC = new FirstClass();
SecondClass iSecondC = (SecondClass)iFirstC;
}
}
I get a error on the line.
SecondClass iSecondC = (SecondClass)iFirstC;
|
|
|
|
|
While syntactically correct, executing that statement will throw an exception, since an instance of iFirstC is not of type SecondClass . If you prefer not to handle exceptions, you should use the as operator and check for null .
SecondClass iSecondC = iFirstC as SecondClass;
if (iSecondC == null) {
}
/ravi
|
|
|
|
|
You can only cast SecondClass to FirstClass, but not FirstClass to SecondClass.
FirstClass is parent, SecondClass is child.
|
|
|
|
|
Matglas wrote: Is there anyway to have a extended class and cast to it?
Only if the object is of the "extended class" (aka derived class).
The following will work:
FirstClass iFirstC = new SecondClass();
SecondClass iSecondC = (SecondClass)iFirstC;
This is because the actual object is a SecondClass even although it is initially referenced as a FirstClass .
Does this help?
|
|
|
|
|
Thanks all for the great input. I start to understand it better now. So it does help.
|
|
|
|
|
Hey.
I was wondering if any one can point me towards some resources that outline/explain the dangers associated with allowing users to upload image files to a web server.
I shall be using the MIME type as one step of validation and maybe limit uploads to jpeg so i can read the file header and associated data as validation (not fool proof i know).
Any advice on validation and the dangers will be much appreciated.
Cheers
Dan
|
|
|
|
|
Can you write me an insert statement to insert an integer and a Date data types values in dBase dbf table?
|
|
|
|
|
hi, i'm trying to make a real time audio streaming application using directSound. but the problem is i do not know how to transfer the audio bytes received to directSound buffers and eventually play it while filling in the buffer with data...please, can anyone help me out with this very big dillema...my future depends on the completion of this project.. :c
mumwei :c
|
|
|
|
|
I am writing a Windows Mobile CE 5.0 c# application, and I want my form to be completely full screen, and not movable. I have been able to make the form unmovable and maximized. However, want it to cover the task bar as well on the PDA device (it's a symbol one).
I have done some PInvoke calls to hide the task bar. But still, when setting the form WindowState property to Maximized, it does not take up the blank space left by the task bar. Any help please?
Ashvin Gunga
|
|
|
|