|
ehRecObj actually isn't COM, it's a managed API.
Joseph LeBlanc
|
|
|
|
|
Oh, in that case you can specify (at least in VS 2005) that the reference doesn't require a specific version in the reference's properties.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
That's the kind of solution I'm looking for, I just can't figure out how to do it. I'm using Visual C# 2008 Express and I can't find any settings that let me configure how the assembly is referenced in my project.
I looked at my .csproj file and where I reference that assembly there's a line "<SpecificVersion>False</SpecificVersion>". I've never changed that setting so I don't think that's the reason.
Joseph LeBlanc
|
|
|
|
|
You see it's not easy trying to help you if every relevant piece of information has to be extracted bit by bit...
I don't have any experience with VS 2008 yet, so I'm sorry I can't help you any further...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hi all,
I'm trying tho match to strings like that
str1 = "I love Rose"
str2 = "Rose is Loved"
str1 and str2 should match
and another example
str1 = "Hello"
str2 = "hallo"
str3 = "hellw"
str4 = "Mello"
all of the 4 strings should match
Please Help Me!!!!
Thanks.
|
|
|
|
|
its only possible when you write all english words like this and then search
Becoming Programmer...
|
|
|
|
|
Hello!
Are you required to do that in C#? As is it based on a logic, not on procedure oriented approach, it should be do-able in languages like Prolog, which are logic based languages. If you need to do that in C#, then you surely have to do alot of work!
Regards,
Adeel
Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.
|
|
|
|
|
Yes I want to do that in C#
Thanks
|
|
|
|
|
To match your first example you'd need to write a natural language parser which would be a ton of work, so good luck with that one . . .
but here's an idea for your second example:
write a compare routine that takes two strings and uses the first string to compose a regex term and iteratively compare it to the second string, with each iteration replacing a single character in the first string with a wildcard.
Example:
to compare the two strings "Hello" and "hallo" your routine would compose the regex terms
/.ello/
/H.llo/
/He.lo/
. . . and so on, comparing each one to "hallo" until a match is made or you overrun the length of one of the strings. This algorithm should catch simple one-off spelling mistakes but keep in mind that the performance will totally suck, as it will be relational to (the string length * regex computation time).
If performance in you app is an issue then maybe this won't be a feasible solution for you but maybe the experts here can provide some optimization suggestions or alternative ideas
modified on Sunday, December 09, 2007 6:29:03 PM
|
|
|
|
|
Nice one. I would take your regex idea further to acheive sentences matching on his first example, by matching each word in the first sentence to any word in the second sentence using this matching algorithm (override IsEqueal using this algorithm), and if all words match, then you have an overall match.
This would require both sentences to have the same number of words to achieve a total match, it would then be your call to determine what to do with the extra words.
Now I won't even try to discuss performance on that one!
For more tips, go to: http://www.mycsharpcorner.com
|
|
|
|
|
Hello guys
i am trying to customise my repeater control i have placed on my web form.
When i try to edit the <itemtemplate> element i get the following error, hence i cannot see any data on the screen:
Per the active schema, the element 'tr' cannot be nested within 'form'??
please could you offer some help??
P.S this is what i have, there is a problem with the <tr> tag but i dont know what it is
<itemtemplate>
<tr bgcolor="#ccfff">
</tr>
.
.
.
</itemtemplate></tr></itemtemplate>
Cheers
|
|
|
|
|
HI,
Can anyone tell Exactlly what is the diffrenece between :
1. Connect and BeginConnect
2. Accept and BeginAccept.
3. Send and BeginSend.
4. Receive and BeginReceive.
THANKS
Have Fun
Never forget it
|
|
|
|
|
Connect, Accept, Send, adn Receive, are all blocking methods, when you call them it will just wait until you have Connected, Accepted a connection, Sent data, or Received data.
Begin... are asynchronous, which means they get called, and then the rest of your code is executed. When you call them you supply a callback function, so then when something happens, the callback function gets executed, and you deal with the send / receive etc. in there, and then usually call EndConnect, etc.
If you hop on over to google, and type in these methods, one of the top reults will be MSDN, which will tell you in alot more detail what each of them does.
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
THANKS
Have Fun
Never forget it
|
|
|
|
|
hi,
I am working on a desktop application which has grid in it and show data from access database.
my problem is that the grid only shows about 21700 records of the table,(I am not sure about the exact number)
I can search throw the whole database (i can search for last added record which doesn't appear in the grid).
what should I do to show larger range of data in DataGrid?
|
|
|
|
|
DataGridView dont have row limit, check your codes
Becoming Programmer...
|
|
|
|
|
Hi all :
I have a file it`s exetition is .dll I want to open it to copy some codes inside. How can I do it?????
<<<<<<<<thanks><<<<<<<<<
|
|
|
|
|
What sort of dll is it ? Is it a resource dll ? What files are you hoping to get out of it ? Where did it come from ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi :
Yes it`s a resource dll in two days ago I was download a project form this website it`s was great , it was about office vista buttons there is a function that response to give the attribute to the buttons I want to know how I can do a button like them .......
<<<<<<<<<<<<<<<<<<<THANKS<<<<<<<<<<<<<<<</codeProject$$>
|
|
|
|
|
Surely if it came from this site, the source code and the images are also there for download ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If the dll is written in one of the .NET Framework languages then you can use Reflector for .NET[^] to decompile it.
|
|
|
|
|
Sig size, reduce it now
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
yeah he used lots of Enters, XD
Becoming Programmer...
|
|
|
|
|
Hi
I created an windows application in C# which contains one form and one class file.In form I have one timer control and Timer1_tick event. In event I am calling a function in the class file. And in class file iam creating the object of form and calls the timer1.Enabled and Interval properties. When I refer this exe in other applications to perform Timer operations, I am getting two kinds of errors for two conditions.
If i am giving a "new" reference to the objects I created for the class and form in Timer exe, then - Stack overflow exception
If I am creating object without "new" and assigns null and uses to avoid Stack Overflow exception, then the error will be "Object refernce not set to an instance of object"
What is the solution to this problem?
NB: In VB they uses "friend" functions and Withevents to create object and avoids this situation
With Regards,
Abraham Chethuvelil
|
|
|
|
|
The 'friend' keyword in VB is just the same as 'internal' in C#. I don't see how that would solve your problem. Also, withevents is just a shorthard for assigning an event. You've obviously created a situation where your code just keeps calling itself. I'm not sure why your class is setting up a timer in your form, but if you set a break point you should be able to work out quick enough what is causing the endless loop.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|