|
I build a C++ app that launches the .NET install from CD if needed, then installs my app. It works well for me.
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,
I want in a textbox that is for date when user is entering date, automatically the text in it appears as --/--/--
i.e user only enters 6 digits(2 for day ,2 for month, 2 for year)
Best wishes
|
|
|
|
|
|
He might not be using .NET 2.0. I think one of out fellow Code Project members wrote one by extending a regular textbox and intercepting keys. I can't be sure.
ROFLOLMFAO
|
|
|
|
|
Ri Qen-Sin wrote: He might not be using .NET 2.0.
Very well could be, but he should move up to 2.0 if not already there.
"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
|
|
|
|
|
Hi,
In a ComboBox that items is bound to DB, How can add the ability that user can select nothing of items.
Suppose it has 5 items when user opens (drops) it, then he/she must select one item and can't don't select none of them.
Best wishes
|
|
|
|
|
Just add another option for 'None' or something. Then when they pick that, you know they don't want any of the options.
I don't think the combobox can select nothing, even when it first starts and has the default text, the selected index is 0 (so, the first item in the list).
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
Dear, Codeproject staff
I'm a C# & VB beginner developer that have been adviced to visit your website to get more experiences in programming but unfourtunatly I can't navigate well or search well about what I need,so I decided to ask for your help to advice me and guid me to put my leg on the first stip or programming field and to guide me through the next steps as well.
Thanks alot for your help and cooperation and Sorry for inconvience.
Best Regards
Mahmoud Alyan
mahmoudalyan@gmail.com
Mahmoud Alyan (Astronaut)
|
|
|
|
|
Dear Mahmoud,
you'll get answers to concrete problems here, but if you have very basic starting problems, then a good book on C# or VB.NET is definitely a much better choice.
Feel free to come back here with a concrete C# question, though, once you completed the first steps.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Welcome to Code Project and good luck in learning C# and VB.
"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
|
|
|
|
|
|
Hi,
Here is a good general tutorial on C# (the links are on the right of the page)Clickety
Again a general CodeProject C# tutorial Clickety
Since you are a beginner with C# and VB I would strongly recommend that you bite the bullet as soon as possible with regards to threading and here is a good tutorial Clickety
One tip I will give you, which comes from my own experience, is to concentrate on learning C# rather than VB.
The reason I say this is twofold:
C# tends to encourage better programming habits than VB.
If you can get an understanding of C# you should have no difficulty with VB whereas the opposite is not necessarily true.
Regards and welcome
Guy
You always pass failure on the way to success.
|
|
|
|
|
|
Hello,
I have an application that references a particular assembly that contains the Windows Media Center Click-To-Record API (Windows\eHome\ehRecObj.dll). The problem is that when my application runs on Vista this assembly is version 6.0.6000.0 and when it runs on MCE 2k5 the version of this assembly is 5.1.2710.2732.
My development machine is running Vista, so when I add a reference to this assembly to my project it's to the 6.0.6000.0 version. This results in my application crashing when I run it on MCE 2k5 with a "could not load file or assembly" exception because that particular version of that assembly does not exist on MCE 2k5.
What do I need to do to my project so that my application will work with either version of the ehRecObj assembly?
I've searched for documentation but since I don't understand assembly versioning very well I can't quite seem to find anything that answers my question.
Joseph LeBlanc
|
|
|
|
|
Hi!
I guess ehRecObj.dll is hosting a COM type library, right?
In order to support different versions I think the best way (at least the one I use) is to take the dll with the lowest version (that's still supporting the functionality you need) and create an interop assembly "by hand".
There's a tool named "tlbimp" included in the .NET SDK that can create such interop assemblies. In your .NET application you only reference the interop assembly (instead of adding a reference to the COM type library).
At runtime, the calls to your interop assembly's classes are marshaled to calls to the actual COM objects installed on the target system.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
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
|
|
|
|