Tuesday, July 14, 2009

Programming lesson or course material?

hi, I would like to teach courses on Visual C#.net, Visual Basic.net, Python and Phrogram. I have written some material myself, but I was wondering if there any resources or lesson plans availible so I could look at how I am teaching, what they teach, what order they teach stuff in, and some general guidance, do you know of any?

Programming lesson or course material?
I think you need to do a basic teacher training course. I suggest you look at your local college and find out if they do a C %26amp; G level 1 as you can do it in about a term .. This will at least give you a basic insight.


Is there a way to say what C/C++ compiler and linker were used to compile and link an application?

The matter is that I would like to know if there is a way to find out which compiler and linker were used to compile a C or C++ application.





I have the Borland compiler/linker and two versions of Microsoft Visual C++ (v6.0 and .NET). Is there a way to say if an application (final .exe) was built using one of these (or other compilers/linkers)?





Thanks for any help.

Is there a way to say what C/C++ compiler and linker were used to compile and link an application?
The build tools don't usually put what was used to build the particular executable in them. The only way you can really do this is to have the source code, generate a new executeable and then compare that to the one you wish to find out about.


Visual Basic .NET 2005 Programming Help?

How would you write an EOF character(s) to a file? And how can I write past this/read past it? I know you can do it in C++ and other languages...so I imagine it can be done in VB .NET.

Visual Basic .NET 2005 Programming Help?
Check out the link - that answers all your questions.


Vb.Net code conversion is very similar. Only thing you need to know is which class and which method you need to use





http://www.codeproject.com/cs/files/fast...

rose

How to learn C# ?

I know C++ already. I ve heard of this language called C# developed by Microsoft. And i need to learn it.





please tell me for what purposes C# is used?


Whats the relationship between C# and Visual Studio.NET ?

How to learn C# ?
The best way to learn is to try the language out. It uses the C language syntax. Though, it is a .Net based language. You can download a free light weight version of C# called Visual C# Express from Microsoft directly (see below link). C# is simple but the Dot net framework is pretty huge. If you've been using Visual Dev Studio for C++ then the transition is pretty straight forward. Once you download C# you should be able to write Hello World in about five minutes.


It easy to create GUI's and gives you access to develop under the .Net environment. It runs in a virtual machine so it runs slower if you're doing intense calculations or image processing.


I've been programming in C# for about one and a half years. I programmed in C++/C for the last fifteen years.
Reply:I was quite the C++ veteran when I took on C#, and all I did to learn it was use visual studio and C#, and checkout MSDN for help (I did have knowledge of the .Net framework too, from using VB.Net). If you know C++, C# will be a breeze as the syntax is very similar, plus it has advantages like lower compilation times, and it removes the requirement to forward-declare class. The only learning curve is the .Net framework. If you are familiar with Java, then you will notice that the .Net framework class libraries contain many similar types of namespaces and objects that Java does.





C# is primarily used to design windows applications, but it can be used for Asp.net as well. It's a Rapid Application Development language designed to allow you to quickly make quality windows applications. C# is hosted by Visual Studio, meaning it is one of the languages that Visual Studio can work with. Other languages include C++ and VB.Net.
Reply:C# is a part of visualstudio.net. you can learn c# using MSDN or you can buy a book the complete reference by herb schildt is also good.it is similar and advanced than C++.


What is the difference when programming for xp or vista in c++?libraries/.net win32. help!?

Right now i'm learning win32 on dev-c++ and it's hard without a visual developing environment like vc6 or vb5. Is there a difference when programming for xp or vista?

What is the difference when programming for xp or vista in c++?libraries/.net win32. help!?
Microsoft offers a very powerful .NET Framework for Windows XP and beyond. Microsoft Visual Studio 2005 Express edition for C++ or for C# are powerful development environments (Express editions are downloaded for free). The C++ version encourages you to write "safe" code. That means you cannot use pointers. However, you can write unsafe code and use pointers in this language.





The framework automatically cleans up resources/memory when you do not explicitly use pointers.





Microsoft has been very successful in offering a very powerful set of framework features. I recommend you go on to learn what Microsoft .NET Framework has to offer developers. C# is a successful threat to Java.
Reply:why is it difficult wthout vc6 or vb5? there are some free IDEs available.





there's some difference between XP and vista. Vista's security model is very strict - if you're not an elevated user (administrator), you're not allowed to store files in some directories, or create registry entries. Also, the firewall can make problems if you use the internet. XP is not that strict.





but in most cases a program will run fine on vista if it was written for XP.


How does one get and put files with FTP using Visual Basic .NET (and Visual Studio 2008)?

This is a follow-up to a question that was answered very nicely with a C# example, but I'm looking for a VB.NET (2.0 or 3.5) example.

How does one get and put files with FTP using Visual Basic .NET (and Visual Studio 2008)?
I'm working on a ftp control and here is a test class I started with.





Imports System.Net


Imports System.IO





Public Class GetFile


Friend Sub subGetFile(ByVal uri As String, ByVal LocalFile As String)


My.Computer.Network.DownloadFile(uri, LocalFile, My.Settings.strUser, My.Settings.strPwd, True, 100000, True)


End Sub





Friend Sub subDownLoadFile(ByVal strUri As String, ByVal strLocalFile As String)





Dim Instance As New Uri(strUri)


Dim Request As FtpWebRequest





Request = CType(WebRequest.Create(Instance), FtpWebRequest)


With Request


.Method = "RETR"


.UseBinary = False


.Timeout = 120000


End With





Dim Response As FtpWebResponse = CType(Request.GetResponse(), FtpWebResponse)


Dim ResponseStream As Stream


Dim TargetStream As Stream





Try





Response = CType(Request.GetResponse(), FtpWebResponse)


TargetStream = New FileStream(strLocalFile, FileMode.Create)


Using Writer As New StreamWriter(TargetStream)





ResponseStream = Response.GetResponseStream()


Using Reader As New StreamReader(ResponseStream, System.Text.Encoding.UTF8)





Writer.Write(Reader.ReadToEnd())


Reader.Close()





End Using





Writer.Close()





End Using





Catch Err As Exception


MessageBox.Show(Err.Message)





Finally


Response.Close()





End Try





End Sub





End Class


VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please

Requesting answers that will be intuitive to a programming semi-illiterate.





I have inherited a VS 2005 project from an individual who left the company unexpectedly. I'm not an experienced programmer and I'm trying to see if the application he was building is working.





QUESTIONS:





What is meant by the following:





" 'C:\WINDOWS\blah, blah, blah...\Microsoft.VisualStudio.HostingPr... Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."





In .NET programming speak (in VB context, if/where it matters), what is meant by:





- "Skipped loading symbols"? Does this indicated that some aspect or component of the application did not run successfully?





- "Module is optimized"? In this context, what's a "module"?





- What does "debugger option 'Just My Code' is enabled" mean?





Thanks!!

VB - .NET - Visual Studio 2005 - programming - coding - termimology and other issues, assistance needed please
If you're not an experienced programmer you are going to have a lot of pain working through this. It's not for the faint hearted. Briefly a module is a piece of code that compiles into a DLL. Just My Code is an option under Tools/Options/Debugging/General. If your module is optimized you can't debug it so the debugging symbols are not loaded.





Now switching off the optimization is something I have been trying to do without success for ages...





Sigh.

flowering plum