|
anyone can help me??thanks...
-- modified at 23:46 Monday 17th April, 2006
|
|
|
|
|
I am unable to come up with a code that lists all printers on a network. How should i approach this situation ? I am looking to do this in c#. Sample code would be very helpful.
Thanks
-- modified at 3:15 Monday 17th April, 2006
|
|
|
|
|
My asp.net project is live and I have used one web service in that project .Now I want to change web reference in that project.Do I need to make a change in code ,compile it again and deploay my new apllication again , or is there any other way by which I can get the same thing done by making changes in disco,map or reference file .
Thank you.
|
|
|
|
|
I have the following string "\1 tag1 \2 tag2 \3 tag3", how do I declare this one in C#?
(the \1 \2 \3 are special characters)
-- modified at 2:41 Monday 17th April, 2006
|
|
|
|
|
Try
string st = "\\1 tag1 \\2 tag2 \\3 tag3";
or
string st = @"\1 tag1 \2 tag2 \3 tag3";
Best regards, Alexey.
|
|
|
|
|
Thanks, but this is local authentication. If use this way, at server you can receive more information for client user, but you will not know this information, that sent from valid user or not
-----------------
conglt
|
|
|
|
|
You said all your machines are in an Active Directory domain. The WindowsIdentity is not local to the machine when in a domain environment. Unless, of course, the user picked the local machine as the domain name when he/she logged in.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Example:
User A and user B in domain, they is authenticated. User A run a app client, if he send information about A then no problem, but he use infomation of B to send to server. B is authenticated, so server accept request.
I want server only accept when A send information of A? Do you think?
-----------------
conglt
|
|
|
|
|
Now you've got a problem that ha snothing to do with Windows Authentication. This is a data security problem specific your data model. If anyone can impersonate anyone else simply by typing information into a TextBox, you have to implement something to prevent this. But, what and how you do this is entirely dependant on your data model and requirements.
Have you looked at the properties of the WindowsIdentity class?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Please help me
How to read input 1 character a time from the keyboard by using a thread?
Thanks so much
eric
|
|
|
|
|
hi
and sorry for question again
but my problem was not solved . Please give me a full description because i am beginer.
thanks.
i want to set pass on my access db and use it in .net but when i import it to vs.net, the following message has shown :
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
my access was closed,and username is : Admin but i don't know why this message has been shown.
please help hat how to imort it to my vs.net and solve my problem.
|
|
|
|
|
Stop spamming the forum!
Posting the same question over and over will seldom give you any more replies, and will almost always irritate a lot of people.
---
b { font-weight: normal; }
|
|
|
|
|
hi everyone, i am trying to sent email from my web application using System.web.mail the problem is i am using different smtp server which reuired authontication. my question is how would i set user name, password and the server.
here what i have done but it not working, and i runing this project from my local host.
oEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
oEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "abc@ab.com");
oEmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "******");
SmtpMail.SmtpServer = "smtp.servername.com";
plz help me. i am doing this project for free for some non-profit company and need to finish this project ASAP.
Thank you,
|
|
|
|
|
int cdoBasic = 1;
int cdoSendUsingPort = 2;
if( useAuth )
{
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", cdoBasic);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", user);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", pass);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", cdoSendUsingPort);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", server);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 10);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 25);
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", false);
}
|
|
|
|
|
Hi ap_sa, I'm very pleasure to tell you. Now Please try it:
MailMessage mm = new MailMessage();
mm.From = "your mail address";
mm.To = "Other mail";
mm.Subject = "mail title";
mm.BodyFormat = MailFormat.Html;
mm.BodyEncoding = System.Text.Encoding.Default;
mm.Body = "Your mail text";
mm.Fields.Add("http://schemas.microsoft.com/cdo/smtpauthenticate","1");
mm.Fields.Add("http://schemas.microsoft.com/cdo/sendusername","yourname");
mm.Fields.Add("http://schemas.microsoft.com/cdo/sendpassword","yourpwd");
SmtpMail.SmtpServer = "smtp.abc.com";
SmtpMail.Send(mm);
OK! The End! Happy you daily!
————————————————————————————————————
The Opportunity Knows But Once!
|
|
|
|
|
ok, if somebody knows about , how can i get infomation about howmany changes are maded on logonusers acaunts on windowsxp (password, ...)
_______________________________________________________________________
But i need howmany modifications are maded about passwords, usernames
_________________________________________________________________________
I Want to learn a lot about C#
-- modified at 9:47 Monday 17th April, 2006
|
|
|
|
|
You only can get information for username, fullname, .. no password
-----------------
conglt
|
|
|
|
|
I am involved in a project whereby I have to use a methods from a Win32 dll. There are two methods for which I can't write signature in C#
I have even tried using p/invoke wizard, but it didn't gave the right answer.
The C/C++ declaration for these methods is
BOOL __stdcall CodecStart
(int hRadio,void __stdcall (*CallbackFunc)(void *),void *CallbackTarget); and
DWORD __stdcall CodecRead(int hRadio, void *Buf, DWORD Size);
I would highly appreciate if any2 can suggest the signature that I can use in C#
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
What is CallbackFunc? I've never seen that type before. If it's a custom type, you might be better off building a C++/CLI dll that calls the method for you. You can then make your C++/CLI dll function call be public, thus allowing other .NET languages like C# to call the function as if it were native .NET code.
void* is similar to object; it can be used to store many different types. You'll need to first know what is expected before you can pass in something for void*.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: I luv teh choco
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
t4urean wrote: BOOL __stdcall CodecStart
(int hRadio,void __stdcall (*CallbackFunc)(void *),void *CallbackTarget);
CodecStart() takes a pointer to a callback function, the C# equivalent is a delegate . However, since the other DLL is a Win32 DLL, I don't know if it's going to work if you pass it the address of a managed code function.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I a calling an API method which requires passing the reference to an array as parameter. The problem is with that parameter
The actual function is
BOOL __stdcall G3BlockScan(int hRadio,DWORD *Freqs, int Count,int StopSquelchRaw, DWORD FeedbackTime,HWND WinHandle,DWORD Msg);
Here Freqs is an array whose contents are mofied by the The API function call.
I have wrapped this function in C# as follows..
[DllImport("wrg303api.dll")] <br />
public static extern bool G3BlockScan(int hRadio, <big>uint [] Freqs</big>, int Count,int StopSquelchRaw,uint FeedbackTime,IntPtr WinHandle,uint Msg); and the function call is like this .....
..... some code.....<br />
uint[] Freqs = new uint[1001];
..... some code....<br />
if (!clsApiWrapper.G3BlockScan(radioHandle, <big>Freqs</big>, 1001, 256, 100000, pointer,Msg))<br />
MessageBox.Show("The block scanning failed to start", "WiNRADiO - Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error); <br />
..... some code .... But now when I run the app it doesn't change the contents of the array. so I believe I need to pass the reference of the array to the function. And if I change the code like this to pass the reference of the array
[DllImport("wrg303api.dll")] <br />
public static extern bool G3BlockScan(int hRadio, <big>ref uint [] Freqs</big>, int Count,int StopSquelchRaw,uint FeedbackTime,IntPtr WinHandle,uint Msg);<br />
<br />
..... some code.....<br />
uint[] Freqs = new uint[1001];
..... some code....<br />
if (!clsApiWrapper.G3BlockScan(radioHandle,<big>ref Freqs</big>, 1001, 256, 100000, pointer,Msg))<br />
MessageBox.Show("The block scanning failed to start", "WiNRADiO - Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
Now when I access the Freqs array after the method call I encounter a strange behaviour.. The size of Freqs array is reduced from 1000 to 1.
I can't figure out what is going wrong.
Can any1 plz suggest what to do.
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
Hello all...
I want a method to embed an executable file (exe) in my application which is written in c# .. And I want a method to launch this executable after compiling my application without saving the embedded exe in a file.
And if it's possible I want a sample source code for an exe password protection program that is wrapping the exe directly.
Thanks in advance.
|
|
|
|
|
zorro.tmh wrote: And I want a method to launch this executable after compiling my application without saving the embedded exe in a file.
Is this embedded exe a .NET executable? If so, you can use System.Reflection.Assembly.Load method and pass it the byte[] of the assembly, IIRC.
If this .exe is not a .NET assembly, I don't think you'll be able to launch it without writing it to disk first.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: I luv teh choco
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Thank you very much for your quick response. But unfortunately the .exe file isn't a .NET assembly.
|
|
|
|
|
I made objects By 3D Max and I want to use these objects in Open GL...
I'm useing C#
I Appreciate any help
|
|
|
|
|