|
Funny, I basically did console programming from the age of 14 on an Apple ][, and I taught myself C++ by focusing on the console. People who learn things backwards, tend to learn bad habits and stick to them. If the point of the course is to generate people who will never be programmers, but give the school a few points for offering a tech subject, then, sure, let them play with the wizard and write bad code. Give them an A if thier program doesn't erase the hard drive. For my kids, I'd rather they learn properly, or not at all.
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 )
|
|
|
|
|
You c++ guys are so funny. But yes, I guess yes what I am proposing is that you can't teach real programming in a first year class in highschool. If they followed it up with second and third year classes then you could though.
It's like highschool french. The first year will, if you're lucky, will give you the vocabulary of a 2 year old, but there will be lots of discussions of french culture and the teacher will occasionally bring in french food. In most schools students are required to take a first year language class and this opens up their minds to the idea of being able to speak another language. Then there's french 2 which delves much deeper into the language, but is still a little fun. Third year french cuts out english almost entirely and it's more like sitting in a french classroom taking a grammar and writing class in french.
I mean come on if this were a serious programming class they wouldn't be teaching visual basic, but because it's more verbose I think it is a good choice for a first year class. I would start second year with console apps in c# and lay heavy into programming concepts and design patterns. Third year should be treated like a development shop. Full sdlc and larger projects, but still continue with some concept based teaching.
It also depends on if the first year class is mandantory or an elective. If it were an elective I'd start with C# and be harder on the class. I guess I had the idea it might be required to take a technology class.
|
|
|
|
|
Oh and I started programming on an atari gaming console in atari basic. My parents bought me a model that had a keyboard and let you pop in cartriges to store your programming on. I was about 10 at the time and I don't think my parents realized you could program on the thing. I went and bought a book and taught myself. Later I did macros in amipro on my dads computer. I also had a programmible calculator in highschool. If my parents had encouraged me or I had other friends who liked programming I might have done c++ but the opportunity never presented itself. I continued studying over the years with vb 4, 5, and 6 and eventually it occured to me this could be a career. By the time I went to college after the navy everything was a refresher except pointers in C++. While I was in college .net came out, I picked up a copy on my own and learned C# and vastly prefer it. I got a job right out of college doing c# and have been programming ever since. I still love studying and improving my skills.
My start in programming was quite by chance. Some of these kids will get a start in programming in this class that never would have before. It's up to them from there.
-- modified at 10:11 Sunday 27th May, 2007
|
|
|
|
|
WOOHOO! Atari BASIC!
10 PRINT "I learned all I needed to know (apart from *s) on Atari BASIC!"
20 GOTO 10
Taught myself how to code on an 800XL from '85 to about '90 I think. Then I moved on to an Amiga and learned a bit of FORTH. By '93/'94 I was on to SPARCs and C at Uni.
I think as a result of my dynamic background I've become quite language Agnostic: I hate 'em all for one reason or another
|
|
|
|
|
What area of programming are u aiming at. Is it database, games, desktop, mobile etc
|
|
|
|
|
How can I find/get all the ip addresses of workstations connected in lan including the server using vb 2005?
I do appreciate it if you could give some working code. And from that I can start modifying it to suit my needs.
I am new to vb.net programming and I need advice/help from other coders.
Thanks!
BM
|
|
|
|
|
There is no central list that is maintained. You'd have to generate a list of valid IP addresses for your network and PING each one, checking to see if the target address responds. The response can come from ANY device at that address, not just a workstation or server.
If you're new to programming, you're going to have a very difficult time with this. This isn't exactly a newbie-level project. This is more moderate to advanced.
No, I don't have any example code to post.
|
|
|
|
|
Dear expert,
I have used VB.NET with serial port to recivev data from Fire alrm. Data is same as one that printed.
I user Hyperterm to connect and it can receiv data correctly. BUT when I try to connect with VB.NET the message appear gargabe,which seems like you have delected incorrect parameter.
I have try many apps and it appear to be same. The only work is hyerterm so mu question :
Does Hypterm do any thing with input ?
How can we deal with this situation ?
in .NET, data must be converted or not ?
sanong
|
|
|
|
|
Actually Hyperterminal does nothing special other than handling properly serial communication (!).
I suggest you to check Hyperterminal serial communication settings and try to reproduce them in you application.
If the application still remains unable to communicate, post the relevant code.
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.
|
|
|
|
|
Hi Pallini,
Thank you for reply.
I am really stuggling with this behaviour. Let me tell you more details:
We have Notify NFS 640 fire alarm panel,and I am writing Simple Terminal to capture alarm data from Printer Port(from panel TX\RX\CS). Printer epson is also connected same port (split cable) and it print fine. But on the other end, I have tested my program, Microsoft's VBTerm, PowerTCP emulator, and others, all failed to obtain correct data from port. Below are samples of actual data which taken from same source but from different programs. So I am not sure what is so special with HyperTerm that it can interpret correct data and other program cannot.
Incorrect output from:VBterm,PowerTCP, and others
=======================================
SYSิลM าลSลิ 0ฒ:ด0P 05ฒ60ท
Correct output from HyperTerm
=============================
SYSTEM RESET 09:36A 052707 Sun
I am suspecting :
1. text sent from panel has encoded for printer which I dont know about
2. or other unknow issue
I welcome all recommendation.
thank you in advance,
|
|
|
|
|
Hyperterminal is using one set of COM parameters and everything else you've used is using another set. These include Baud rate, data bits, stops bits, even or odd or no parity, handshaking, ... Write down ALL the communication parameters that HyperTerminal is using and duplicate them in your code.
|
|
|
|
|
|
Hi All
I want ask you how can i use tree wiew in VB.NET to brows for folders
in specific drive(c:\,d:\,.....)
i want to view all files and i want to open them when them clicked
(i want VB.NET code to implemnt this problem in other words my problem seem like Tree of folders in windows when we select folder all it's content are open beside it and we can select any file by click on it)
|
|
|
|
|
i am not sure what you are looking for but you can use the OpenFileDialog found in VB.NET
if this is not good for you and you want to implement something like windows explorer you have to write your own code to browse files and folders and add them to the tree view.
hope this helps you
|
|
|
|
|
Thank You Sir
I need to know how to implement something like windows explorer
(My problems looks like when we open My Computer and then click on the icon Folders we see tree on the left of the screen and on the right we see all files and folder in specific directory I need to implement this)
I look forward to hear from you soon
|
|
|
|
|
<br />
Dim Files() As String = System.IO.Directory.GetFiles("c:\")<br />
Dim Folders() As String = System.IO.Directory.GetDirectories("C:\")<br />
<br />
For Each F As String In Folders<br />
If (System.IO.File.GetAttributes(F) And IO.FileAttributes.Hidden) <> IO.FileAttributes.Hidden Then<br />
Me.TreeView1.Nodes.Add(F, F.Split("\")(F.Split("\").Length - 1))<br />
End If<br />
Next<br />
<br />
For Each F As String In Files<br />
If (System.IO.File.GetAttributes(F) And IO.FileAttributes.Hidden) <> IO.FileAttributes.Hidden Then<br />
Me.TreeView1.Nodes.Add(F, F.Split("\")(F.Split("\").Length - 1))<br />
End If<br />
Next
you can use something simillar to this code. this code only adds files and folders under the c:\ directory. you can extend this code to add other files under each folder. the best way is to make the function a recursive function but this will make your program very very slow. what i suggest is call this function everytime a node is clicked this add the childern of that node using this function. the nodes.add function can be extended to include icons to differ between a file and a folder.
to add a child node you can use the following line:
me.TreeView1.Nodes.Item(me.TreeView1.Nodes.IndexOfKey(Key)).Nodes.Add()
where the key is what i specified in the first argument of the Nodes.add line (= F)
hope this helps, if you need further help please let me know
Khalid
|
|
|
|
|
Dear Sir
I thank you very much
I know how to fill tree and I use the following
<br />
Dim aDriveAs String<br />
For Each aDrive In Directory.GetDirectories("E:\")<br />
If (File.GetAttributes(aDrive) And IO.FileAttributes.Hidden) <> IO.FileAttributes.Hidden Then<br />
T.Nodes(0).Nodes.Add(aDrive)<br />
End If<br />
Next
But I need the following
When I select folder from tree I want to display All files and Folders
on a panel or somthing like this,i.e. in the same way as (windows explorer)
so I can Open,Copy or delete any file or folder
Thank you again
|
|
|
|
|
i am not sure if i understod you correctly but you can use the AfterSelect event of the treeview control and you can get the name of the node by using the following line
MsgBox(e.Node.Text)
but for your code, it will be harder to read because you are including the entire path of each file which makes it hard for the user. What i suggest is use the same code as mine (add only the name of the file and use the Name property of the node to store the whole path. if you do this, then you would have to use the line:
MsgBox(e.Node.Name)
instead of the first one. after you get the path of the selected node, then you can use a list view control to display files and folders and do whatever you want to do with them.
hope this makes things more clear.
Khalid
|
|
|
|
|
Dear Sir
Ithank You and I am Very Sory
But Now my problem is can I use a list view control to display files and folders and do whatever you want to do with them.
I need to know how can I display files and folders as larg icons
|
|
|
|
|
to add items you just need to call ListView1.Items.Add("aa" ,0) to add an item called "aa" with icon index of 0
the index of the icons is found from an ImageList control that you have to add and insert images into.
after adding the ImageList, you have to specify the Me.ListView1.LargeImageList = Me.ImageList1 to define the large images of the items and then change the image size in the ImageList to 32,32.
by default, the ListView control displays LargeIcons (after setting up the steps before) but just in case you have to specify the propoprty ListView1.View = View.LargeIcon
hope this helps you..
Khalid
|
|
|
|
|
Hi all
I need a function that coverts first letter of each word in a string to uppercase.
Thanks in advance
|
|
|
|
|
|
(1) Separate Words (hint: use Regex ).
(2) Capitalize the first letter of each found word (Char.ToUpper method maybe handy)
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.
|
|
|
|
|
Use StrConv - e.g.
StrConv("yikes a vb function from old vb", VbStrConv.ProperCase)
|
|
|
|
|
I want to built a software in vb.net. We keep the recent updates(latest version). The software can check for recent updates, if there was any recent update the customer gets download link. When customer click on link, the software download the updated files within the application, kind the way Microsoft updates work.
Please help me, how can i built.
raj
|
|
|
|