|
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...
|
|
|
|
|
Hi
i am developing an application which will run on Dolphin 6100 (A smart device running on windows CE 5.0).
this application is a windows CE 5.0 application, which will interact with SQL Server 2005 Express database(installed on database server accessible through wireless access pint) and do some stock updates.
I am currently working with VB 6.0 and do not have enough time to learn VB.NET . could any one please translate this little piece of VB 6.0 code into windows ce 5.0(visual studio 2005) code.
Dim cn As New ADODB.Connection
If cn.State = 1 Then cn.Close
cn.Open "connection string for SQL server 2005 express" ?????????
Dim rs As New ADODB.Recordset
If rs.State = 1 Then rs.Close
rs.Open "select field1,field2 from TStock", cn, 2, 3
rs![field1]=some thing
rs.update
rs.close
cn.close
Specially i need connection string to connect to SQL Server 2005 Express from my windows ce 5 based smart device.
thanks and regards.
|
|
|
|
|
Hi,
connection strings need a server name; WinCE isn't any different in that.
For details see here[^].
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Hi
thanks for reply.
i tried many connection strings from http://www.connectionstrings.com/[^] but no results.
actually i a confused about
1- which class i should use
SqlCeConnection or System.Data.SqlClient.SqlConnection
my situation is
i have SQL server 2005 express installed on a PC and i want to access that database from my windows ce 5.0 device through wireless connection.
i tried many connection strings but no one is working.
could you please tell me how to connect or which connection string i need to use?????????
thanks and regards.
riz
|
|
|
|
|
I'm unfamiliar with WinCE.
Why don't you ask in the Database forum?
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I have been testing something like this today:
This website says you can't do it this way:
http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html[^]
ADOCE Specifications
The first thing you need to know about ADOCE is that it is a subset of ADO. This means there is only implementation of the Recordset and Field objects. No Command object, no Connection, no Error, no Property. It does, though, offer automatic two-way synchronization with the desktop, ANSI SQL support, and (generally) standard ADO compatibility. Armed with that information, let's see what we need to install to develop with ADOCE.
I am going back to reading a text file because I have that option ...
|
|
|
|
|
hi All
Can any body help me?
I have like this DataTable in vb.net:
A | B | C
------------
DLL |1,2 | 2
------------
DLL |3,4 | 2
------------
How Can I merage this dataTable in vb.net to
distinct A and merage B and Count C
A | B | C
--------------
DLL |1,2,3,4 | 4
|
|
|
|
|
Probably the simplest way would be to create a Dictionary with field A as the keys and a class to hold the new row data (at least fields B and C, maybe A as well) as the values. Then you can iterate over all the current data and build the new rows in the Dictionary.
|
|
|
|
|
Hi everyone,
A quick question if i may? I have been looking for a while for a way of logging all activity in my application by the user. I believe it is called instrumentation but I may be wrong. This is mainly so that when a user finds a problem with the software then I am able to playback exactly what they did. This will also allow me to see how the application is used by different users.
Does anyone know a way to do this? Links to further reading or maybe even links to software that I could use to do this would be appreciated.. In the meantime, I shall keep looking
Thanks again...
Oh oh...
Signed Polomint.......
|
|
|
|
|
Have a look here[^] to start with.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks, I'll take a look now...
Yippee Kai Yai
Signed Polomint.......
|
|
|
|
|
Hello,
I have a small situation. Not quite a developer yet, so i need a top-down view from someone with experience.
I have a windows 7 box, and two mice connected to it, both using the windows default driver. As you can imagine they both work as a "mouse".
What do i have to do, to "manage" the input of the second mouse to make it do something else, not just mousing around? Use it's movement to map to keys, and so on and so forth.
Thank you in advance.
|
|
|
|
|
samoila.mircea wrote: What do i have to do, to "manage" the input of the second mouse to make it do something else, not just mousing around? Use it's movement to map to keys, and so on and so forth.
Learn C and write your own driver. This ain't possible in .NET, AFAIK.
I are Troll
|
|
|
|
|
If it were only one mouse, then you'd be using a mouse-hook. There's an example on that on Fourth mouse button[^]. I doubt that this technique will work with two mouses (especially if they're identical), but you might want to give it a try before diving deeper into the system.
The second alternative is to write a small application that communicates with the serial port. We got many samples on that on CodeProject, especially for .NET - the only drawback being that you're limited to mouses with an old 9 pins serial cable. In that case you'd be interpreting the signals coming from the serial port yourself, and these signals may vary per manufacturer, or even by product.
I have some c experience. Do you know any paid or free video tutorials on how to do this...
There aren't that much video's on driver-development, you'd best start off with the Windows Driver Kit. http://www.microsoft.com/whdc/Devtools/wdk/
What IDE does one use?
You'd best ask the guys in the C++ forum what they're using - last IDE that I used was Borland C++ Builder 5. That compiler is still freely available today, I believe.
A big thanks goes to Eddy Vluggen.
|
|
|
|