Background: I developed an Activex control in .NET, but found it was causing stability issues in various applications that used it. I managed to find a series of steps, from sample applications, similar unstabilities outlined below. I have a sample Activex control that I've downloaded from the Dev-Center website called 'CSActivex' (http://code.msdn.microsoft.com/windowsdesktop/CSAc
背景:我在.NET中开发了一个ActiveX控件,但发现它在使用它的各种应用程序中导致了稳定性问题。 我设法从示例应用程序中找到一系列步骤,以下列出类似的不稳定性。 我从Dev-Center网站下载了一个示例Activex控件,名为“CSActivex”(http://code.msdn.microsoft.com/windowsdesktop/CSActiveX-b86194f8) 构建起来相当简单,我只是将项目加载到VS2010 Express(C#)中,并将其编译为一个.dll文件 然后我从VS2008 C ++创建
I have recently been working on a small top-down grid-based 2D game. As part of an experiment I figured it to be fun to convert the 2D representation of an automatically generated level to 3D, similar to Wolfenstein 3D's style (as an example, I'm not actually using Raycasting). Converting the grid to quads with textures is not that much of a problem, however, I'm kind of stuck on h
我最近一直在做一个小型的自上而下的基于网格的2D游戏。 作为一个实验的一部分,我认为将自动生成的关卡的2D表示转换为3D很有意思,类似于Wolfenstein 3D的样式(例如,我实际上没有使用Raycasting)。 将网格转换为纹理四边形并不是什么大问题,但是,我很困惑如何实现碰撞。 我已经在网上浏览了两天的文章,但是没有人真正给我提供了一个很好的起点,即如何准备我的3D世界以进行碰撞以及如何实际执行它。 有没有人知道有
I am a game developer who made games in .Net languages with XNA for the past four versions of it. Unfortunately now there's this news: http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php#.UQ3yiehQCh8 I am surveying the ecosystem of game engines, looking for something that supports coding in Visual Studio (I use F# heavily, believe it or not!) and I am having trouble find
我是一名游戏开发人员,他使用XNA为过去四种版本的.Net语言制作游戏。 不幸的是,现在有这样的消息:http://www.gamasutra.com/view/news/185894/Its_official_XNA_is_dead.php#.UQ3yiehQCh8 我正在调查游戏引擎的生态系统,寻找支持在Visual Studio中编码的东西(我大量使用F#,相信或不相信!),而且我很难找到一些高质量,仍然活着并且高性能的东西来替代XNA。 例如Unity会错过标记,因为它只允许在MonoDevelop中使用脚
Me and some friends were thinking about making an online game with XNA game studio. Our games mainly used Winsock for the networking portion, but our most recent project used RakNet where the server was in C++ and the Client used a small RakNet wrapper I wrote. As far as I know XNA can't really use DLLs, so I was wondering what a good networking solution would be. 1) C# already has some n
我和一些朋友正在考虑使用XNA游戏工作室制作在线游戏。 我们的游戏主要使用Winsock作为网络部分,但是我们最近的项目使用了RakNet,其中服务器是C ++,客户端使用了我写的一个小型RakNet包装器。 据我所知XNA不能真正使用DLL,所以我想知道一个好的网络解决方案是什么。 1)C#已经具备了一些网络功能,但是用C#编写服务器是一个坏主意。 我主要使用C ++来实现它的原始功能。 2)如果用C#编写服务器是一个坏主意,他们
I made a little parking application in C#. There are some different pricings depending on vehicle type and time zone. Day can be divided into time zones (for example morning, day, evening and night). Now if customer stops parking I want to calculate in which time zones customer has parked and how long. For example morning time zone starts at 6:00 and ends 12:00, day time zone starts at 12:00
我用C#做了一个小型的停车应用程序。 根据车辆类型和时区有一些不同的价格。 日可以分为时区(例如早晨,白天,傍晚和夜晚)。 现在,如果客户停止停车,我想计算客户在哪个时区停车以及停车多久。 例如,早上时区从6:00开始到12:00结束,日时区从12:00开始并结束于16:00,晚上时区从16:00开始并于23:00结束,晚上时区开始于23:00至6:00结束。 客户于00:30开始停车,并在6:32停止停车。 目前我有4个变量:停车开始时间,
I have installed VS 2015 RTM (nothing else) and I'm unable to debug any solution, not matter if it's an existing one or a brand new one (created with VS 2015 and compiled against .Net Framework 4.6), it only opens a new tab in VS which is called Break Mode with the following text: The application is in break mode Your app has entered a break state, but no code is executing that is support
我已经安装了VS 2015 RTM(没有其他),我无法调试任何解决方案,无论是现有的还是全新的解决方案(使用VS 2015创建并针对.Net Framework 4.6编译),它只会打开一个VS中的新选项卡被称为中断模式,其中包含以下文本:应用程序处于中断模式您的应用程序已进入中断状态,但未执行所选调试引擎支持的代码(例如,仅执行本机运行时代码)。 如果我检查调试 - >模块窗口:VS2015Test.vshost.exe没有符号加载(即使我点击加载符号
I'm trying to debug a C# application from a .DMP file and I have the executable, the DLLs and the PDBs all in a folder called "MyFolder." I set the directory containing the source code to C:MyFolder but when I try to debug it tells me that: "No symbols are loaded for any call stack frame. The source code cannot be displayed." When I open the Symbol Load Information it
我试图从一个.DMP文件调试一个C#应用程序,并且我有一个名为“MyFolder”的文件夹中的可执行文件,DLL和PDB。 我将包含源代码的目录设置为C: MyFolder ,但是当我尝试调试时,它告诉我: “任何调用堆栈帧都不加载符号,源代码无法显示。” 当我打开符号加载信息时,它声明无法找到以下PDB: C: Windows System32 kernel32.pdb:找不到或打开PDB文件。 C: MyFolder kernel32.pdb:找不到或打开PDB文件。 C: MyFol
I'm making an app in C#, with a lot of forms and other stuff. I wanted to localize it, so I used the integrated localization functions in VS. The app was originally in French (cause I am) with English translation RESXes, but now that it is on Codeplex with some other developers who doesn't speak french, I want to change the "default" language in the app and the RESX files so t
我在C#中制作了一个应用程序,其中包含很多表单和其他内容。 我想本地化它,所以我在VS中使用了集成的本地化功能。 该应用程序最初是用法文(因为我)与英文翻译RESXes,但现在Codeplex与其他一些不会说法语的开发人员在Codeplex上,我想更改应用程序中的“默认”语言和RESX文件所以他们可以在不读法语的情况下翻译成其他语言 因为当你在VS Form Designer中选择另一种语言时,它会显示默认语言(这里是法语)。 我试图重命名
I have .resx file created for english (MyResourcesFile1.resx) and french (MyResourcesFile1.fr.resx). Both have the Access Modifier to Public and they are both Embedded Resource . In the app.xaml.cs the even Application_Startup contain : var languageInfo = new CultureInfo("fr"); Thread.CurrentThread.CurrentCulture = languageInfo; Thread.CurrentThread.CurrentUICulture = languageInfo; In
我有为英文(MyResourcesFile1.resx)和法语(MyResourcesFile1.fr.resx)创建的.resx文件。 两者都具有公共Access Modifier ,它们都是Embedded Resource 。 在app.xaml.cs中,甚至Application_Startup包含: var languageInfo = new CultureInfo("fr"); Thread.CurrentThread.CurrentCulture = languageInfo; Thread.CurrentThread.CurrentUICulture = languageInfo; 在Silverlight代码中的很多地方,我使用Visual
I want to be able to log when code execution enters a method and then exits, I was wondering is anyone has any comments on the best way to achieve this? I know an AOP way of injecting the logging code at runtime exists but I wanted to have a little more control and PostSharp seems to be a pay framework. What level of logging would you recommend here, I would think DEBUG. What about logging
我希望能够记录代码执行何时进入方法,然后退出,我想知道是否有人有任何意见,以实现这一目标的最佳方式? 我知道在运行时存在注入日志代码的AOP方式,但我希望有更多的控制权,PostSharp似乎是一种薪酬框架。 你会在这里推荐什么样的日志记录,我会认为DEBUG。 关于记录时间呢? 该方法进入vs退出需要多长时间 我很想知道别人在这里做什么以及你正在使用什么框架。 我正在寻找与log4net。 我正在考虑的日志记录是