标签: visual-studio-2012

如何从已发布的 .net 项目返回到原始源代码项目

我有一个已部署的 .Net 项目(调试版)。它没有任何隐藏文件的代码。

我想要做的是取回原始项目,包括正确文件夹中的 c# 文件。

c# visual-studio-2012

-2
推荐指数
1
解决办法
4063
查看次数

如何腾出访问语音写作位置

我在C中处理大小((128*75)*(128*75))的数组.每当我将数组声明为全局时,就没有像

#include<stdio.h>
float buf[(128*75)*(128*75)]
int main()
{
   //using buf in different functions works fine
}
Run Code Online (Sandbox Code Playgroud)

但每当我声明它使用malloc并使用main()获取访问冲突写入位置错误,

#include<stdio.h>
int main()
{
   float * buf;
   buf = malloc((128*75)*(128*75));

   //using buf in different functions gives error
}
Run Code Online (Sandbox Code Playgroud)

它是什么原因?

c c++ visual-studio-2012

-2
推荐指数
1
解决办法
55
查看次数

If ... Else语句C#中的表达式语句无效

在尝试根据用户输入的温度输出console应用程序的VSL studio 2012输出建议时,我遇到了错误

"无效的表达术语"

我在此代码中的所有其他if语句.我不知道我在这里做错了什么.

如果有人能指出我正在解决这个问题的方向,那将是惊人的!谢谢

if (temp <= 40)
{
    Console.WriteLine(" It is very cold. Put on a heavy coat.");
}
else if (temp > 40 && <= 60)
{
    Console.WriteLine("It is cold. Put on a coat.");
}
else if (temp > 60 && <= 70)
{
    Console.WriteLine("The temperature is cool. Put on a light jacket.");
}
else if (temp > 70 && <= 80)
{
    Console.WriteLine("The temperature is pleasent. You can wear anything you …
Run Code Online (Sandbox Code Playgroud)

c# if-statement visual-studio-2012

-2
推荐指数
1
解决办法
541
查看次数

Visual Studio虚线

我不小心按了一下,现在每行代码前都有虚线.如何删除它?

在此输入图像描述

c# visual-studio-2012

-3
推荐指数
1
解决办法
445
查看次数

Visual Studio for Web 2013无法查看解决方案资源管理器中的所有文件

基本上我不知道我是不是白痴,但我正在尝试在Visual Studio 2013中使用ASP MVC 4,现在我想编辑未在解决方案资源管理器中显示的文件:

在此输入图像描述

就像在图片中一样,我在这里有一个Windows资源管理器中的Global和Content文件夹,现在是你可以在Windows资源管理器和解决方案资源管理器中看到的Content文件夹,但是我有自己的文件和文件夹而且它们没有显示.

同样在脚本文件夹中,我制作的所有脚本都没有显示在解决方案资源管理器中.

我的整个重要文件夹也丢失了.

如何在Windows资源管理器中看到它们,我如何显示它们.

谢谢

c# asp.net asp.net-mvc visual-studio visual-studio-2012

-3
推荐指数
1
解决办法
1453
查看次数

矢量和列表之间的差异

我正在学习c ++语言,我试图找出vector和list之间的区别.我正在使用visual studio工具进行编码.有人能解释一下有什么区别吗?

c++ visual-c++ visual-studio-2012

-3
推荐指数
2
解决办法
2498
查看次数

从命令提示符调用控制台应用程序

我使用visual studio 2012创建了一个新的控制台应用程序.然后我导航到项目"...\bin\debug"中的以下位置,然后将.exe文件复制到C.现在我想从命令提示符调用此.exe文件,所以我写了以下内容: -

C:\>ConsoleApplication1.exe
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误: -

'ConsoleApplication1.exe' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)

这是我的控制台应用程序主要方法: -

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            using (SkillManagementEntities sd = new SkillManagementEntities())
            {
                sd.Levels.Add(new Level() { Name = "from CA" });
                sd.SaveChanges();
            }

        }
    }
}
Run Code Online (Sandbox Code Playgroud)

如果我使用记事本打开.exe文件,我会得到以下它包含配置而不是实际的方法代码......: -

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- For more information on Entity Framework configuration, …
Run Code Online (Sandbox Code Playgroud)

c# asp.net exe console-application visual-studio-2012

-3
推荐指数
1
解决办法
1883
查看次数

C#中的Floyd Steinberg算法实现

我试图实现Floyd-Steinberg算法ic#抖动24位图像到8位但我有异常错误System.IndexOutOfRangeException(索引超出了数组的边界.)行:g1 [x - 1,y + 1] + = err_g*3/16; 有没有人告诉我我犯了什么错误,我应该改变什么?
r1表示旧像素r2 - 新像素

{

            Color Pix;
           int[,] r1 = new int[bmp.Width, bmp.Height];
           int[,] r2 = new int[bmp.Width, bmp.Height];
           int[,] g1 = new int[bmp.Width, bmp.Height];
           int[,] g2 = new int[bmp.Width, bmp.Height];
           int[,] b1 = new int[bmp.Width, bmp.Height];
           int[,] b2 = new int[bmp.Width, bmp.Height];




            for (int y = 0; y < bmp.Height; y++)
            {


                for (int x = 0; x < bmp.Width; x++)
                {
                    Pix = bmp.GetPixel(x, y);
                    r1[x, y] = (Pix.R …
Run Code Online (Sandbox Code Playgroud)

c# algorithm visual-studio-2012

-4
推荐指数
1
解决办法
897
查看次数

我需要Visual Studio 2012的替代品

嘿,我不确定这是否是正确的地方,如果不是,请对不起,但我需要替代Visual Studio 2012 for Linux,我发现2到目前为止被称为Netbean和Eclipse,其中包括那些或任何其他你们可能知道哪些是与VS 2012最接近或类似的?谢谢你们的时间.

linux ide visual-studio-2012

-5
推荐指数
1
解决办法
9133
查看次数

Visual Studio 2012 Express中的C#登录问题

伙计我正在研究项目并遇到一些问题.它是一个写入本地数据库的基本登录应用程序.我知道在安全方面它不对,但它仅用于概念验证.它在我的浏览器中验证并加载.然后,当我填写数据时,我收到以下错误:

代码行突出显示: int temp = Convert.ToInt32(com.ExecuteScalar().ToString()); 错误如下:

用户代码未处理SqlException

"Staff"附近的语法不正确

任何帮助表示赞赏谢谢

这是我的代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

public partial class LoginPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {

        if (IsPostBack)
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ShowUsersConnectionString"].ConnectionString);
            conn.Open();
            string checkuser = "select count(*) form Staff where UserName='" + txtUserName.Text + "'";
            SqlCommand com = new SqlCommand(checkuser, conn);
            int temp = …
Run Code Online (Sandbox Code Playgroud)

c# asp.net visual-studio-2012

-5
推荐指数
1
解决办法
169
查看次数

今天windows的原生二进制应用程序在哪里?

好吧,尝试使用c ++ win32控制台应用程序在visual studio 2012中构建一个简单的exe,只需使用printf("-----"); 构建发布版本后,运行正常.

转移到另一个Windows 7清理安装时,在运行时我注意到MSVCP110.DLL丢失...

它不是原生应用程序??? 为什么需要extern dll?

在旧的win95中,我使用visual C 6创建了许多可执行文件,并且它可以独立运行任何dll.

我会一直用"本地"exe来重写这个dll吗?

c++ visual-studio-2012

-8
推荐指数
1
解决办法
107
查看次数