|
Well, somewhere, you've got at least one of the communication parameters wrong. It would be parity, handshaking, ..., any of them.
BTW, what's a "DMM"?
And if you're using Visual Studio 2005 or above, why are you using the old MsComm control instead of the SerialPort class in the .NET Framework?
|
|
|
|
|
Hi Dave,
the only DMM I know would be a Digital MultiMeter, an electronic device measuring voltages, currents, impedances, and the like. Handheld DMMs normally don't have a computer interface, desktop models often do, either a serial one or more often an IEEE-488 one (that is a rather old byte-wide bus for measurement equipment, not to be confused with IEEE-1394 aka FireWire).
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I figured that's what it was, but now-a-days, he could have been talking to a synthesizer or a toaster oven! I always ask just to make sure. You know what they say about "assume", right?
|
|
|
|
|
Dave Kreskowiak wrote: he could have been talking to a synthesizer or a toaster oven
I like a synthesizer with an interface, OTOH I wouldn't connect to a toaster.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Luc Pattyn wrote: OTOH I wouldn't connect to a toaster.
What?! You don't want to put a webcam in a toaster to get your English muffin's toasted to the perfect golden brown every time?
|
|
|
|
|
If the toaster contains a camera, that is OK, but I am not interested in those pictures. I want it to be smart enough to deliver on its promises all by itself. That is what embedded systems are supposed to do, not bother me, just deliver the results.
Now if the manufacturer needs an interface to service the device, he can do so; but again, I'm not interested in it. Oh wait, I might want to include it in my next domotica infrastructure. Have to rethink. If so, it won't be a serial port I'm afraid.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
some guessing is required here.
your DMM probably wants some hardware handshaking (=data flow control), i.e. it needs you to set some control lines high or low, before it wants to listen to you (that would not explain the error conditions you mentioned);
or it wants you to not send stuff when it is not ready, as indicated by some control lines it is setting high or low.
I don't remember how handshaking and control lines work in Win32 or VB6; I do know for .NET
FYI: HyperTerminal by default chooses Hardware Handshake, Win32 does not. So try setting your COM port to hardware handshake.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
HI,
I AM POSTING SOME KB OF XML CONTENT TO WEBSERVER USING XMLHTTP. IT IS WORKING IN MY SYSTEM, IT IS SENDING AND RECEIVING DATA PROPERLY. BUT IN ONE OF MY CLIENTS SYSTEM IT IS NOT WORKING PROPERLY AND IT IS GIVING THE ERROR "The connection with the server was terminated abnormally".
IF ANYBODY HAVE AN IDEA PLS HELP US..
THANK YOU,
RISHI
WinCrs
|
|
|
|
|
I CANT HEAR YOU PROPERLY WHEN YOU SHOUT can you maybe talk a bit quieter.
Have you checked the various system/application error logs?
Have you checked the network stats for the dodgy client, is there high error rates?
Its a start.
|
|
|
|
|
thanks in advance
modified 28-Nov-12 4:47am.
|
|
|
|
|
You have to read the documentation on what these methods do (LTrim, Remove, SubString, ...). This is very simple string manipulation, and yes, Remove would be the way to go here.
|
|
|
|
|
Thanks for that reply...
will gothrough and comeback if i find something not working...
|
|
|
|
|
My.Setting.Save() method works and saves what I need it to save. However, when I view the .config file the values in <usersettings>
<appname.my.mysettings> are not the same as those returned by the My.Settings.PropertyName
When you call the Save() method, does it not also save the changes to the config file?
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
There should be a folder within C:\Documents and Settings\user\Local Settings\Application Data or C:\Documents and Settings\user\Application Data folder i can't remember exactly where its at but if you browse those two locations, you should see a folder with your program name and in that should be your config file.
Hope that helps.
|
|
|
|
|
Hi,
I tought that defining EnableVisualStyles would give a XP style look to application. However in design time when I define a backcolor for a button, The glossy look of button disappears. In the mean while, I set the one button's backcolor to system.window color, the glossy look of the button disappeard and now I can't give glossy look to button.
The question is how I can make a button look glossy with a defined backcolor.
Thank You.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
In order to do this, you have to override the OnPaint event handler for the button, and do all the painting yourself.
VisualStyles for buttons is whatever the colour is set to in Windows itself.
There are loads of examples in CodeProject and on the Web. Search for something like 'Glass Button Visual Basic' for ideas on how to do it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
To enable Xp style look for the application go to project properties -> application tab. you will find "Enable XP visual Style" check box. recompile the application and it will work.
|
|
|
|
|
Hi all... I'm working on a report (Reporting Services) with an external image. The problem is it's not showing up. I'm passing the image through as a base64 string to the report and converting it back to bytes using the
Convert.FromBase64String function. The code is as follows
Dim location As String = Configuration.ConfigurationSettings.AppSettings("location")
Dim reader1 As New System.IO.StreamReader(location)
Dim base64 As String
Dim BinRead As New BinaryReader(reader1.BaseStream)
Dim file1 As New FileInfo(location)
base64 = Convert.ToBase64String(BinRead.ReadBytes(CType(file1.Length, Integer)))
Dim param As New Microsoft.Reporting.WinForms.ReportParameter("Image", base64, False)
Dim al As New List(Of Microsoft.Reporting.WinForms.ReportParameter)
al.Add(param) ReportViewer1.LocalReport.EnableExternalImages = True ReportViewer1.LocalReport.SetParameters(al) ReportViewer1.RefreshReport()
.
.
.
Please ignore the BinReader / Reader bit. I havn't fixed that up yet. If someone can please tell me why this thing is not showing an image. I would be very greatful.
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
First you should convert your stream to Bitmap object then you can put it on Picture Image.
Bitmap bitmap = new Bitmap (stream);
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
I have a text file that has similar lines.
there are 3 fields by which the similar lines can be identified.
modified 28-Nov-12 8:45am.
|
|
|
|
|
you have to define rules for "similar"
Is "jerry" similar to "jery" ??
is ABCD similar to ABBC or ACDC (BTW ACDC is very good band) ??
|
|
|
|
|
|
Read all strings in an array, and do a foreach .
I are troll
|
|
|
|
|
Read your Text file to Line wise. You should need of Two string Arrays.
First one you put your File's Unique Data.
Second You use it for Counter.
Then check one by one your data to array.
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Hay developers
In Visual studio 2005 in Crystal Report Editor you can find "Set datasource location...". There you can change everything (mapping, datasource, even dataprovider). So far so good, but if you want to change DATAPROVIDER runtime (in code) you have big problem. You can change datasource to other database on the same platform, but you cannot change ORACLE to SQL database ??
It seems that changing DATABASENAME doesn't do anything. This is understandable because ORACLE (i design report originaly for ORACLE) does't have database name, you just specified SERVERNAME, USERID and PASSWORD.
So I think the problem lies in fact that you cannot change PROVIDER runtime??
So basicaly I'm able to change provider from ORACLE to SQL in IDE with no problem but not on runtime
I try allmost everything and nothing works form me (see example below).
BTW I'm IT pro and I know what I'm doing, so don't answer to my question like "do you have SQL started" or "is your password writen correct"
no ofense
If you have hundrets of report you cannot do this thru IDE.
Please help
Best regards Jerry
<br />
Public Sub sub_ApplyInfo1(ByRef _oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument, _<br />
ByVal _dbName As String, _<br />
ByVal _serverName As String, _<br />
ByVal _userID As String, _<br />
ByVal _passWord As String, Optional ByVal _IntegratedSecurity As Boolean = False)<br />
<br />
<br />
Dim oCRDb As CrystalDecisions.CrystalReports.Engine.Database = _oRpt.Database<br />
Dim oCRTables As CrystalDecisions.CrystalReports.Engine.Tables = oCRDb.Tables<br />
<br />
Dim oCRTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo<br />
Dim oCRConnectionInfo As CrystalDecisions.Shared.ConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo<br />
<br />
<br />
oCRConnectionInfo.IntegratedSecurity = _IntegratedSecurity<br />
oCRConnectionInfo.Type = ConnectionInfoType.CRQE<br />
oCRConnectionInfo.ServerName = _serverName<br />
<br />
If _dbName <> "" Then<br />
oCRConnectionInfo.DatabaseName = _dbName<br />
End If<br />
If _userID <> "" Then<br />
oCRConnectionInfo.UserID = _userID<br />
End If<br />
If _passWord <> "" Then<br />
oCRConnectionInfo.Password = _passWord<br />
End If<br />
<br />
For Each oCRTable As CrystalDecisions.CrystalReports.Engine.Table In oCRTables<br />
oCRTableLogonInfo = oCRTable.LogOnInfo<br />
oCRTableLogonInfo.ConnectionInfo = oCRConnectionInfo<br />
oCRTable.ApplyLogOnInfo(oCRTableLogonInfo)<br />
'Dim lcLocation As String = oCRConnectionInfo.DatabaseName & ".dbo." & oCRTable.Location<br />
Next<br />
<br />
'Dim cry_logOnInfo As New CrystalDecisions.Shared.TableLogOnInfo<br />
''Me.sub_ApplyInfo(oRpt, "FIN", "MYPC\SQLEXPRESS", "", "", True)<br />
<br />
'cry_logOnInfo.ConnectionInfo.ServerName = "MYPC\SQLEXPRESS"<br />
'cry_logOnInfo.ConnectionInfo.DatabaseName = "FIN"<br />
'cry_logOnInfo.ConnectionInfo.UserID = ""<br />
'cry_logOnInfo.ConnectionInfo.Password = ""<br />
'cry_logOnInfo.ConnectionInfo.IntegratedSecurity = True<br />
<br />
'Dim oTable As CrystalDecisions.CrystalReports.Engine.Table<br />
'For Each oTable In _oRpt.Database.Tables<br />
' oTable.ApplyLogOnInfo(cry_logOnInfo)<br />
'Next<br />
End Sub<br />
<br />
|
|
|
|