STARTUP, WEB APPLICATIONS | ALENTUS WEB HOSTING SERVICE |
The latest version of Personal C Sharp, version 2.0 is now distributed free. So, if you have downloaded an earlier version or a limited time use version, erase it, go to our home page and download version 2.0 in its place before proceeding further.
Personal C Sharp tools and methods make you do your programming job faster and easier. They make your programs shorter while they accomplish more. They take care of the lengthy repeated jobs and let you concentrate on your project. They help with growing your skill, improving your abilities and boosting your creativity.
HOW TO START, GENERAL =============== The first step is to install Microsoft's ".Net Framework package and development kits".
REMARK: Personal C Sharp version 2.0 software runs on either Version 2 or Version 3 of the .NET Framework. However, the size of the .NET Software Development Kit (SDK) of version 3 is over three times that of version 2. Version 3 SDK is actually over 1 Gigabytes in size and this could cause some downloading difficulties. If you still like to download version 3, Click here then skip to section [B].
[A] DOWNLOAD AND INSTALL THE .NET FRAMEWORK VERSION 2.0:
(1) From control panel 'Add/Remove Software' uninstall all older versions. (2) Click here to download 'Microsoft .NET Framework Version 2.0 Redistributable Package'.

(3) Install the received file 'dotnetfx.exe' by double-clicking its icon. (4) Click here to download '.NET Framework 2.0 Software Development Kit (SDK) (x86)'.

(5) Install the received file 'setup.exe' by double-clicking its icon. (6) Browse to the folder: C:\Program Files\Microsoft.NET\SDK\v2.0\Bin Make sure the file 'SDKVars.bat' is available. When this batch file runs, it modifies the environment variables to make the '.NET' framework accessable. This modification is not permanet, which means, each time your computer is restarted, you need to run it again. PC# fixes that by rerunning the file for you whenever needed. At the beginning, when you install PC#, it copies the file to your working directory. Each time you use PC# after your computer has been restarted, PC# runs the file copy which is at your working directory.
If you have chosen to install the '.NET' framework at a different location than the default, you have to find the file and copy it to your working directory by yourself.

[B] CREATE WOKING DIRECTORY:
Even if you have purchased PC# software for the sole purpose of web development, we suggest that you proceed with this step in order to make sure that everything works properly for desktop development first.
Create a new directory for your PC# programming. You can place the new directory anywhere and choose any name for it. However, if you ask for suggestion, 'c:\pcs' is a good name and location for the new folder.
[C] COPY PC# SOFTWARE TO YOUR WORKING DIRECTORY:
The latest version of Personal C Sharp, version 2.0 is now distributed free. So, if you
have downloaded an earlier version or a limited time use version, erase it, go to our home
page and download version 2.0 in its place before proceeding further.
Version 2.0 comes in one file named "PCS200.exe".
You can download the file into any directory you choose. To install it, you need to
double click on that file name. When the dialog box appears select [Run], [Next]. You'll
get a dialog box which contains a text field and a button at its right side. Click
that button and browse to your working directory, click on your working directory name
then click [OK]. Click [Next] then [Start]. When you get the message "Personal C Sharp
has been successfully installed", click on [Next] then on [Exit].
[D] INSTALL PC# SOFTWARE INTO YOUR WORKING DIRECTORY:
From Command Mode, browse to your Working Directory then type:
                 pcs      And hit the [Enter] key.
Read the License agreement. If acceptable, enter the word 'yes' and hit [Enter] The 'Setup menu' should appear.

Select (c) from the setup menu to Create all necessary tools. Check your Working directory. Make sure all expected files are there. If you have installed the latest version, the following files should be available:

[E] PRACTICE WITH YOUR FIRST PROGRAM:
The easiest way to start is to practice with the 'Demonstrative Examples' at PC#'s website. You need to study them in order, starting with Example 1 of the first group.
Use copy/paste to copy the code of the first example from the website to Notepad.


Save the program to a file named 'a.cs' (to match the class name) To do so, select [File], [Save As] frm top menu, Click the arrow of the selection box labled 'Save as type' and select 'All Files'. Type in the 'File name' field 'a.cs' and click on [save]. Check the directory to make sure the new file 'a.cs' is there. then from Command mode enter:    pcpr a   [Enter]

As you can see, when the environment variables have been checked, PC# software has found that running the batch file 'SDKVars.bat' which has been discussed earlier is necessary, so it did before it executed the program. The two text lines starting with 'Setting' 'environment' came from that file.
[F] GOING FURTHER:
If you have reached this point successfully, we would like to congratulate you. You
should have no problem with any other example or with writing your own programs at
the end.
Practice with each example, read all tutorials. They have been designed to teach you
learning how to use PC# software step by step. So you must study all the examples in
order. Don't move to the next example before you fully understand the current one.
We recommend printing a copy of the "PC# Reference" and "PC# Methods". Keep them by your
side. Whenever you find something unclear, look through them to find the answer.
PC# methods and field names are made to be as few, short and easy to remember as possible.
After some practice, you will be able to write programs which run without errors on the
first try. Enjoy your new programming experience!
IMPORTANT REMARK CONCERNING THE USE OF NOTEPAD:
===============================================
Before we get into that, you need to make sure that your computer shows all files
with their extensions. The following instructions are for "Windows XP". If your
operating system was different, the instructions may need to be slightly modified.
Click on [Start] [My Computer], then on the [tools] tab and select [Folder Options].
When the "Folder Options' window appears, click on the "View" tab and locate the item
"Hide extensions for known file types". Make sure this item is "UNCHECKED" then click
on [OK].
Now, whenever you save a file like "a.cs" from Notepad, the "File save" dialog box
always appears with "Save as type = Text Documents", you must change that option to
"All Files". Then you should type "a.cs" into the "File name" text field and click on
"Save".
If you forget to change the "Save as type", you will save the file under the name
"a.cs.txt" which is not what you want.
MOVING TO WEB DEVELOPMENT:
==========================
After going through all the "Desktop application examples" and the "Desktop
Applications Reference", you may move to Web development. Click on the link at the
top to go there. |
|