|
the string contains some value eg. a,b,c,d,e
I want to replace 'a' to 'f'. can we do it and if yes please guide me as how to doit?
thanx
Taher
|
|
|
|
|
Use the Replace method of the String class, see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You can't actually change a string. The Replace method returns a *new* string with the values changed.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
How can we get data or characters which is present on image.Actually i have captcha images in .JPEG extension and from that images i have to remove noise, extract the characters and then i have to convert the extracted characters in to string.So please give some idea how to proceed further.
|
|
|
|
|
There's a reason why it's noisy and distorted. It's so that you CAN'T use automation to get those characters!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hai Dave,
The image is noisy because, the image is a captcha image as you know there will be noise in captcha image.I have captcha images with JPEG extension, i have to remove noise from captcha image and after that i have to extract characters from captcha image.
please give reply it would be help full for me.........
regards,
Balu.
|
|
|
|
|
What did I just get done telling you?? You CAN'T DO THAT because CAPTCHA was designed specifically to defeat what you're trying to do!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave i understood what u have suggested me.
ok removing noise is difficult, but give some idea how can i extract data from captcha image.Give reply if u have idea about extracting data from image.
Regards,
Balu.
|
|
|
|
|
What part of "YOU CAN'T DO THAT" don't you understand?
The text in those images is deliberatly wavy a filled with noise so that no OCR software can read it. You can't get the text in a CAPTCHA image because there's no technology out there that can read it!
That's the whole point behind CAPTCHA!! It's a test to determine if a machine is trying to access a website or if its a human doing it. The machines will always fail this test because there's no way they can make out the text in the image.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave Kreskowiak wrote: You can't get the text in a CAPTCHA image because there's no technology out there that can read it!
not yet at least.
|
|
|
|
|
Dave Kreskowiak wrote: What part of "YOU CAN'T DO THAT" don't you understand?
I am sorry Dave, I am afraid can't do that.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hahahaha!!!
|
|
|
|
|
No, you haven't understood. The whole purpose of captcha images is to ensure that it is a human that is viewing the image. They are specifically designed to make it impossible for any kind of automated tool to extract the data.
So, not only is it as impossible as makes no difference, you also can't really have a good reason to be doing it - attempting to bypass security controls is a bad thing.
|
|
|
|
|
JanapatiBalu wrote: i understood what u have suggested me.
Oh no you haven't!
|
|
|
|
|
|
As Dave and Nish have said, CAPTCHAs are explicitly designed to defeat OCR. It may not be totally impossible, you're going to have to do a good amount of research to try and process them. Noone has written a CCaptchaOcrConverter class that you can just copy/paste into your application.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
dan neely wrote: It may not be totally impossible, you're going to have to do a good amount of research to try and process them.
PS IF you don't even know all the right questions to ask, you're probably not the right person to be doing the actual research either.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
dan neely wrote: IF you don't even know all the right questions to ask, you're probably not the right person to be doing the actual research either.
Bingo!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
OMG, this thread has to be the funniest thing I've read for ages.
It's brightend my day. Thanks guys!
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog
|
|
|
|
|
The black hats did hire recently?
Failure is not an option - it's built right in.
|
|
|
|
|
Hi,
Am trying to access a web sevice developed in java, but i get the below error.
"Reference to a non-shared member requires object reference."
can anyone help on this..
Thanks in advance
where there is a will there is a way
|
|
|
|
|
The message is clear
NasimKaziS wrote: Reference to a non-shared member requires object reference."
you need an instance of the object in order to access a non-shared member. Maybe some code post will help us (and you).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
code used:
Imports WSDemo.demoref
Public Class Form2
Dim mservice As New MTVAS
Dim basicDesc As New BCDT()
Dim mn As New TVAMT
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
mn.originID = "test"
mservice.importTVAO(mn)
End Sub
End Class
Error:
Reference to a non-shared member requires an object reference.
If i double click on the error it takes me to the Reference.vb file underlined code as below
<system.xml.serialization.xmlattributeattribute(datatype:="integer"), _
="" system.componentmodel.defaultvalueattribute("10")=""> _
Public Property preferenceValue() As String
Get
Return Me.preferenceValueField
End Get
Set
Me.preferenceValueField = value
End Set
End Property
End Class
The first statement of the above code is highlighted.
Hope this helps
------------------------------
where there is a will there is a way
|
|
|
|
|
NasimKaziS wrote: preferenceValueField
Is this an instance field, or a shared field. You use it as an instance field. However, the compiler error indicates it is actaully a shared field.
So, it should either be an instance field (remove the Shared keyword from its definition)
OR
the property needs to be marked as Shared and the Me. in the getter and setter need to be removed.
|
|
|
|
|
Hi,
I have an button in my vb.net form, to show my help file (sample.chm). But I need to show only one instance of that help file, even if the user hits the button second time it should open the existing help file which already opened not the new instance.
Thanks in advance.
Be simple and Be sample.
|
|
|
|