|
Hi,
Can i use comports in a windows service ?
if yes, how does i know the portnumber when no user has logged onto windows ?
for me as user the comport is 6 and 7 instead of 1 and 2.
can i build a service than, using comport 6 and start the service with local system account ?
thx for you're help.
Kurt
|
|
|
|
|
topcatalpha wrote: Can i use comports in a windows service ?
Yes
topcatalpha wrote: i know the portnumber when no user has logged onto windows
We made ours configurable so we could change comports easily. Whether some one has logged into the system or not makes no difference as the comport is still there.
Just open com 6 or 7 as usual
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
ok thx. I will try it.
thx
|
|
|
|
|
Good afternoon!
Any one could tell me if this is possible? Could I access a remote machine port by sms, and control its parameters?
Thanks in advance.
My best regards.
|
|
|
|
|
Which incarnation of the acronym "SMS" are you referring to??
Can you control the parameters of a port opened on a remote machine?? Not likely, but you haven't said what you're really trying to accomplish with the method either.
|
|
|
|
|
Sorry SMS - Cell Phone Message
I'm trying to connect with a remote system via gsm and make data acquisition. But i need to give some commands to the equipment via it's RS485 port. There's any other way to do this?
Best regards.
|
|
|
|
|
write a bit of software that takes an SMS as input and outputs RS485. Then connect the output of the computer to the input the hardware.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Hello
To: all expert person
I need know method create code C# to DLL ,Please kind help me find this method
Thank you very much
|
|
|
|
|
From the VS ide, New Project then select CLASS LIBRARY as the template.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thank you for answer.when are create code C# finish if i want DLL of C# go to use with VB6, Is it can do ?
|
|
|
|
|
Select the Class Library project when creating a new project.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi All,
I want to implement MVC in C#.net. I have multiple view and single controller.
I have grid on the form which is docked in MDI Parent form. User want to view same out put in un-docked view. If user perform any action then same effect should appear on the both views.
Thanks,
Syed Sadaqat Hussain
|
|
|
|
|
That's nice. Now, do you have a specific problem, or are you just making notes for future reference on this message board?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
I bet the question will be "how can I do this?"
modified 12-Sep-18 21:01pm.
|
|
|
|
|
My money goes on "can someone give me the code to... (PS ITS URGENT)"
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Unknown Query Engine Error
Failed to open a rowset.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_83afa3e5-684f-4586-88b7-b1c22e9cc7d1 {096D4500-45DC-4A34-9DA9-E80F4AED7546}.rpt:
Unknown Query Engine Error
The above error raised while open an report. DataSet dsRoutecard.xsd file is used as datasource. Tables are filled before opening the report.
Any please help to me.
Thanks in advance!
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
If you're using CrystalReportViewer object to show the report, try wiring CrystalReportViewer.Error and CrystalReportViewer.HandleException events. They should give you more info what goes wrong.
The need to optimize rises from a bad design
|
|
|
|
|
Thanks for you reply. I Tried like this one. but i get the same message.
private void CReportViewer_Error(object source, CrystalDecisions.Windows.Forms.ExceptionEventArgs e)
{
InfoMsgBox(e.Exception.Message);
}
Thanking You.
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
public static int GenerateImage(String FilePath, int ImageW, int ImageH, string sToFolder)
{
try
{
int iResult;
if (File.Exists(sToFolder + System.IO.Path.GetFileName(FilePath)))
{
iResult = 0; // File allaready exists to destination path
}
else
{
int ThumbWidth = ImageW;
int ThumbHeight = ImageH;
Bitmap origImg = new Bitmap(FilePath);
// HttpContext.Current.Server.MapPath("filename");
//Declare our New FileName to save the thumbnail as
String newSavePath = sToFolder + System.IO.Path.GetFileName(FilePath);
Bitmap dstImg = new Bitmap(ThumbWidth, ThumbHeight);
dstImg.SetResolution(72, 72);
Graphics g = Graphics.FromImage(dstImg);
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.SmoothingMode = SmoothingMode.HighQuality;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.CompositingQuality = CompositingQuality.HighQuality;
// Resize the original to the thumb width and height
g.DrawImage(origImg, 0, 0, ThumbWidth, ThumbHeight);
g.Dispose();
EncoderParameters encoderParameters = new EncoderParameters(1);
encoderParameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Compression, 100); // 80% Compression
dstImg.Save(newSavePath, ImageCodecInfo.GetImageEncoders()[1], encoderParameters); // jpg format
dstImg.Dispose();
origImg.Dispose();
iResult = 1;
}
return iResult;
}
catch (Exception ex)
{
throw (ex);
}
}
I AM USING THIS FUNTION WHEN i run the local it is working fine if i run on server it is giving error any body can help me........ASAP...........
|
|
|
|
|
Are you sure that a new path is being sent to the method? If you attempt to ovewrite the open file you can get this message. If a new path is being set, check that your program has write permissions on it.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Try not disposing of anything, and see if it works. I have had problems closing streams in a similar scenario. If it works, try wrapping the disposable objects in using blocks instead (which strangely seemed to work in my case).
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Member 5565850 wrote: WHEN i run the local it is working fine if i run on server it is giving error
Does the error occur on the Save() call?
I'm going with a permissions issue
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hai all,
I wrote a code to read & write in the Excel 2007 in C#.net 2005.
I made an exe of it to deploy. It works fine in the development environment but fails outside it giving the Error:
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.Excel, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Why this problem occurs? How to solve?
Thnks in advnce,
Praji
|
|
|
|
|
I suspect that other computers either don't have Excel installed all they have other version.
|
|
|
|
|
I copied that .exe to other folder in same machine, it doesn't works? There any solution?
|
|
|
|