/[projet1]/public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_visualstudio.htm
Defence Force logotype

Contents of /public/pc/tools/osdk/main/Osdk/_final_/documentation/doc_visualstudio.htm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1441 - (show annotations)
Fri Feb 2 15:59:03 2018 UTC (19 months, 2 weeks ago) by mmu_man
File MIME type: text/html
File size: 3983 byte(s)
Fix typos

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
3 <HTML lang=fr dir=ltr>
4 <HEAD>
5 <meta name="robots" content="noindex">
6 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
7 <title>OSDK - Visual Studio</title>
8 <link href="documentation.css" rel="stylesheet" type="text/css">
9 </HEAD>
10
11 <BODY>
12
13 <hr>
14 <A href="documentation.htm"><img src="arrow_back.gif"></A>
15 <img src="pics/osdk_logo_small.png">
16 <hr>
17
18 <h1>Visual Studio</h1>
19
20 <p id=chapter>Using Visual Studio</p>
21
22 <p>If you want to edit 6502 source code using Visual Studio, you will have to hack a little bit, because
23 it's not normaly posible to define new languages in Visual Studios. This hack will simply be to let Visual C++
24 believe that .S files are C++ files, and to add 6502 source code files to known C++ keywords.
25 </p>
26
27 <p>In the following folder
28 <pre>
29 osdk\extra\VisualC++6\</pre>
30
31 <p>you will find two files:
32 </p>
33 <pre>
34 language.reg
35 usertype.dat</pre>
36
37 <p>
38 Simply execute the <b>language.reg</b> file to modify the registry settings (this will add the .S files to the
39 list of C++ extensions), and copy the <b>usertype.dat</b> file in the following folder:
40 </p>
41
42 <pre>
43 Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\</pre>
44
45 <p><i>Note: this works for Visual C++ 6, but is not guaranteed for other versions, use at your own risks.</i>
46 </p>
47
48 <p>In this folder, you will also find another folder called <b>OsdkSampleProject</b>.
49 It contains a complete Visual C++ 6 project, pre-configurated to allow compilation for the IDE.
50 You can use this project as a basic for your own project. Simply copy the folder somewhere else, rename it
51 to the name of your project, rename the <b>OsdkSampleProject.dsp</b> file with the same name, and edit it
52 with a standard text ├ęditor (not Visual C++ !) and replace all the OsdkSampleProject occurences by the name
53 of your project. Voila !
54 </p>
55
56 <p>You now have a ready to use Oric project correctly integrated in the IDE.
57 Compile with the F7 key, and use CTRL+F5 to run the program.
58 </p>
59
60
61 <p id=chapter>Creating projects</p>
62
63 <p>If the already made project is not good enough for you, here are the step by step explanations on how
64 to do it yourself.
65 </p>
66
67 <p>If the configuration is correctly done, launch Visual Studio, and go to the menu"
68 "file/new". The following formular appear. Of course, you should replace "OsdkTest" by the
69 name you want to give to your own project !
70 </p>
71
72 <center><IMG SRC="pics/visualstudio_new_project.gif" ALT="New project" ALIGN="middle"></center>
73
74
75 <p id=chapter>Appwizard configuration</p>
76
77 <p>Now, you simply have to correctly fill (follow the example) the two dialog boxes of the
78 app wizard.
79 </p>
80
81 <p>Right now, there are no differences between the DEBUG and RELEASE versions. Anyway, in the
82 future it's possible that it will be used.
83 </p>
84
85 <center><IMG SRC="pics/visualstudio_setup_1.gif" ALT="AppWizard 1/2" ALIGN="middle"></center>
86 <br>
87 <center><IMG SRC="pics/visualstudio_setup_2.gif" ALT="AppWizard 2/2" ALIGN="middle"></center>
88
89
90 <p id=chapter>Modify the configuration</p>
91
92 <p>If you later need to change the configuration (or if you do not make the right configuration
93 during the project creation), you can go to hte "project/settings" menu, that will display the
94 following dialog boxes.
95 </p>
96
97 <center><IMG SRC="pics/visualstudio_project_settings_1.gif" ALT="Settings 1" ALIGN="middle"></center>
98 <br>
99 <center><IMG SRC="pics/visualstudio_project_settings_2.gif" ALT="Settings 2" ALIGN="middle"></center>
100
101 <p id=chapter>Usage</p>
102
103 <p>The configuration is now terminated. You can launch the compilation by pressing the F7
104 key ("Build" icon), and run the program (using the emulator) by pressing the "Execute program"
105 key (CONTROL+F5).
106 </p>
107
108 <p>Have fun !
109 </p>
110
111
112 <hr>
113 <A href="documentation.htm"><img src="arrow_back.gif"></A>
114 <img src="pics/osdk_logo_small.png">
115 <hr>
116
117 </BODY>
118 </HTML>
119
120

  ViewVC Help
Powered by ViewVC 1.1.26