|
I found that very few programs open this file. Further exploration found that it uses a largely obsolete form of JPG compression. Check if there is a new driver for your scanner. You could also try using IrfanView (a free program) to batch convert your scans.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
i am trying to write a c# program communicating to a device (PLC) using socket. the communication is in hexadecimal. everything are alright - socket connection, socket send and received etc. i had created a byte array for the socket's send.
for example, 2 bytes are use to send a decimal value of 100. this is fine.
byte[1] = 0x00;
byte[2] = 0x64; // 64 hex = 100 dec
however, i am having problem to send a decimal value of more than 255. for example, to send a decimal value of 300,
byte[1] = 0x01;
byte[2] = 0x2C; // 12C hex = 300 dec
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.
i am not quite sure if i should use byte array to store the hex value since it will be converted to hex decimal value separately. i had tried to use string array but enventually i still need to convert to byte array in order for the socket to send out. the smae
i am looking forward for your advise. thanks indeed.
Regards,
CC Pang
Software Engineer
|
|
|
|
|
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!
|
|
|
|