|
Possibly create a virtual machine to run this in isolation. I assume though that you can't recompile this application and target a new version of the .NET Framework.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
All .NET versions can coexist, they use different folders and version numbers.
It sounds to me it is the application itself, not the .NET Framework, that is already (partially) installed.
Also, I suggest you give the error message verbatim, either in your post, or to Google.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
|
Ah, in the end I just gave up and used a different program. Anyways thanks for the answer
|
|
|
|
|
pls Niland help me. An exception is being raised when i try to connect to any mail server and the code you provided is unable to solve this. pls help me.
|
|
|
|
|
Who the hell is Niland???? Random postings in the forums are unlikely to find the person you're looking for.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
would need to see a code snippet and the exact error message to help you!
Simon
|
|
|
|
|
Hi,
I have an application which comprises of several components developed using C# (it includes WCF and other web services implementation). For integration testing, I have the language options of C# and vb.net. As I know except syntax difference between them, nothing is different, but as per my personal opinion, its better to use a language for testing which already used for development.
Please share your thoughts and comments on the same and also let me know if there is any pros/cons using c# or vb.net.
Thanks,
Jay
|
|
|
|
|
I see no reason to mix languages unless there are compelling technical reasons to do so. If the project has been developed in C# then stick to it.
|
|
|
|
|
I second that. Keep it simple.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Jaydev.A wrote: its better to use a language for testing which already used for development.
Unless you have some special technical reasons for using a different language just stick to the same one.
Jaydev.A wrote: let me know if there is any pros/cons using c# or vb.net.
If you don't have any personal preference then I'd go for C# because:
1. There are generally more samples and snippets on the web in C#.
2. VS IDE editor support is better implemented in C# than VB.
Technical differences are minor and going forward C# and VB language feature differences are narrowing.
Kevin
|
|
|
|
|
I am a C# developer mainly, but I have been looking at some VB code recently. I thought that they were pretty much the same because they compile to similar things, but I'm starting to think that C# is much better. Maybe I'm not giving it a fair chance because I haven't spent much time on it? I was expecting to like it, and had an open mind, but there are some things which I really dislike.
The first thing I don't like is the weak typing. I saw these
myVar = "-1"<br />
myVar = -1
This really scared me, I found it quite confusing looking at the code.
The syntax also doesn't look nice to me, but that's really a personal preference. I'm should there will be lots of opinions, but do you think it's reasonable for me to dislike VB?
|
|
|
|
|
Member 4487083 wrote: do you think it's reasonable for me to dislike VB?
If not, then apparently I'm unreasonable too
I don't like it at all, but I haven't tried it, and I
come from many many years of C/C++ so C# is natural to me.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Member 4487083 wrote: do you think it's reasonable for me to dislike VB?
yeah, it is very reasonable. Don't hesitate, go for the real language.
BTW: there are some options that are off by default, if you insist on using VB.NET, turn them on (e.g. Option Strict[^]).
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
The main option to turn off is when installing Visual Studio. Uncheck the VB.NET box
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Each language has its own lovers and haters, so does VB. I had been programming in VB for more than 6 years when I changed to C#.
But history tells us that VB is the language that has the shortest learning curve.
And there are certain features that VB.NET provides out-of-the-box that C# cannot do "neatly", for example, single instance desktop applications.
|
|
|
|
|
Shameel wrote: there are certain features that VB.NET provides out-of-the-box that C# cannot do "neatly", for example, single instance desktop applications.
I don't see what isn't neat about this: http://www.ai.uga.edu/mc/SingleInstance.html[^].
Just because C# doesn't provide tick box for it doesn't mean you can't do it.
The choice in language is entirely down to personal preference, there is no significant technical difference.
Simon
|
|
|
|
|
I you had ever tried one of those solutions, you would realize that all those articles on the internet that teach how to create a single instance desktop application in C# just try to find out if the app is already running and then display a message box that reads "App is already running". I am yet to read any article that teaches how to "neatly" activate the already running instance (without using Microsoft.VisualBasic namespace and AppActivate method). I tried using Win API and P/Invoke but no luck
|
|
|
|
|
Member 4487083 wrote: weak typing
VB.net is not weak typed. It is strongly typed just like C#.
However, the vb.net compiler does not enforce strict type conversions at compile time in the way the C# compiler does. This means that you are able to directly place an Int in a String object and VB will automatically apply the type conversion. It's still strongly typed, the type is still a String, and the int being placed into it will be cast to a String, it's just casts can happen implicitly.
You can use the Option Strict[^] setting to change this behaviour and make the compiler act more like the C# one.
Either way, the coder is still free to ignore type usage (equally as they could in C# by declaring everything to be an Object).
In terms of the language, both are equally capable and equally well supported. The language choice is almost entirely down to personal preference. There is no really significant technical difference between the two.
All that said, I personally prefer C# too.
Simon
|
|
|
|
|
Simon Stevens wrote: There is no really significant technical difference between the two.
IDE editor support is better in C# IMO but that's a usability rather than a technical difference.
The Option Strict off by default was a really lousy decision. I've been bitten by this numerous times when working on VB projects.
Kevin
|
|
|
|
|
Member 4487083 wrote: I'm should there will be lots of opinions, but do you think it's reasonable for me to dislike VB?
Other people don't like VB.NET, C# or C++, and opt for Python, Ruby or even Pascal[^].
So you're not so sharp on VB. The *cool* news here is that you can team up with a VB.NET programmer, even if he/she isn't too keen on C# - you can both write your .NET classes in your own language
I are Troll
|
|
|
|
|
Hi, I hope to post in the right forum ..
I need to control and modify the drawing of a Windows Enhanced Metafile so, as a test, I
tried code from the following MSDN article.
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.metafile.playrecord.aspx[^]
NOTE...All Platforms and Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Result: I have not done many tests but i can say: working in W2000, W2003 , not in XP and Windows 7....
Note: .NET 3.5sp1 in all update PC's
I've try with this simple file, a red rectangle with gradient,
http://rapidshare.com/files/301791141/rosso.emf[^]
and, for the lazy the whole small program...
http://rapidshare.com/files/301791802/WindowsFormsApplication2.zip[^]
Finally, if we use DrawImage instead of EnumerateMetafile, ...that's works fine!!!!!
(more in details e.Graphics.DrawImage(metafile, destPoint);)
Can you help me????
|
|
|
|
|
Where can I find me a .Net class library for astronomy calculations? I'm looking for functions for calculating moon phases, sunrise, sunsets, transit, seasons, perihelion, aphelion, perigee, apogee, nodes, etc.
|
|
|
|
|
|
Hi all,
I'm building a virtual keyboard in c#.
My problem is when I set the keyboard for korean input, I can't retrieve korean keyboard chars to display on my keyboard.
I use LoadKeyboardLayout API call to get the korean keyboard layout, and then I use ToUnicodeEx to get keyboard characters symbols. This doesn't work for korean characters. For other languages (such as german) this works fine.
What do I need to do in order to be able to retrieve korean characters?
Thanks...
|
|
|
|