|
The device probably needs a signed byte, so try that
|
|
|
|
|
johnly wrote: if i read back form the bytes array, instead of getting the decimal value of 300, it's becomes 144 - byte[1] = 1 and byte[2] = 44.
That's exactly what you put in the array, you are only adding the values wrong.
256 * 1 + 44 = 300
---
b { font-weight: normal; }
|
|
|
|
|
I want to generate dll in C# for stringConnection by using exception handling concepts.First I have to check whether the database exist or not,if the database exist then ok otherwise error message should be displayed "Database does not exist" ,if the table is there in the database if the record is there in the table otherwise "eror message" should be fired.
Binu Koshy
|
|
|
|
|
Do you have any specific problem with this task or do you expect us to give you complete code.?
www.troschuetz.de
|
|
|
|
|
completed code
Binu Koshy
|
|
|
|
|
In this case you will not have much luck here. Nobody will do your work in his spare time.
Ask some specific question and we'll be glad to help.
www.troschuetz.de
|
|
|
|
|
binukoshy wrote: completed code
Uhmmm, do you call yourself a developer? With all due respect, I suppose you are working for one of the Indian companies that is robbing Americans of jobs. Figure it out yourself and then ask questions if you run into problems. That is what REAL developers do.
|
|
|
|
|
in net2003 codes have:
MSDASC.DataLinks mydlg = new MSDASC.DataLinks();
OleDbConnection OleCon = new OleDbConnection();
ADODB._Connection ADOcon;
//Cast the generic object that PromptNew returns to an ADODB._Connection.
ADOcon = (ADODB._Connection)mydlg.PromptNew();
OleCon.ConnectionString = ADOcon.ConnectionString;
OleCon.Open();
if (OleCon.State.ToString() == "Open")
{
MessageBox.Show("Connection Opened");
OleCon.Close();
}
else
{
MessageBox.Show("Connection Failed");
}
but in 2005 new format has,example ".net Framework ole db ".but the old dialog in 2003 can not show it.
2005's new dialog can show by writing codes ???
i come from china,English not well,sorry~
mymail:mikebai604@hotmail.com
mikebai
|
|
|
|
|
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
|
|
|
|