VC++编程问题

[复制链接]
查看11 | 回复3 | 2009-6-23 11:13:46 | 显示全部楼层 |阅读模式
像以下开头的代码,在新建工程的时候,应该建win32 application 还是win32 console application
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
using System.Drawing;
public partial class chart : System.Web.UI.Page
{

//数据/月份

public ArrayList arrData = new ArrayList();

public ArrayList arrMonth = new ArrayList();

//定义幕布高宽

private int iCanvasWidth = 800;

private int iCanvasHeight = 600;

//x轴的间距

private int iX = 30;

//y轴间距

private int iY = 40;

protected void Page_Load(object sender, EventArgs e)

{

this.InitArrayq1();

Bitmap bitmap = new Bitmap(iCanvasWidth, iCanvasHeight, PixelFormat.Format24bppRgb);

Graphics g = Graphics.FromImage(bitmap);

g.Clear(Color.White);

Font font = new Font("MS UI Gothic", 8);

Brush b = new System.Drawing.SolidBrush(Color.Red);

Brush c = new System.Drawing.SolidBrush(Color.Black);

SolidBrush brush = new SolidBrush(Color.Black);

Pen pen = new Pen(Color.Black);

pen.EndCap = LineCap.ArrowAnchor;

pen.DashStyle = DashStyle.Solid;

g.DrawString("Y轴(q)", font, b, 30, 20);

回复

使用道具 举报

千问 | 2009-6-23 11:13:46 | 显示全部楼层
你这是asp.net网站的C#后台代码,应该点“新建”-》“网站”...
回复

使用道具 举报

千问 | 2009-6-23 11:13:46 | 显示全部楼层
这是asp.net的代码,既不是win32 application 也不是win32 console application, 因该市web application吧...
回复

使用道具 举报

千问 | 2009-6-23 11:13:46 | 显示全部楼层
应该C#新建网站...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行