visual-studio-2010

Copy Sub directories to directory

断了今生、忘了曾经 提交于 2020-01-17 07:22:05
问题 Referencing this question/code: How do I copy a folder and all subfolders and files in .NET? I'm trying to copy a buntch of sub directories to a different directory. I'm wanting to update this code: Dim fso As System.Object = New System.Object fso = CreateObject("scripting.filesystemobject") fso.copyfolder(sour, dest) However I'm getting this error: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Temp\Summer2011\Newfolder\Copy of New Text Document.txt'. at System

Why does ddl 'onchange' event not appear in intellisense?

寵の児 提交于 2020-01-17 05:30:07
问题 I was working out a problem with a ddl trying to get a message box to popup when the item changed. You can read about that here >>> How to Popup Alert() from asp:DropDownList OnSelectedIndexChanged? The working answer shows me to use the onchange event but then I'm working in VS2010 this event does not appear in the intellisense dropdown. However if I type it in anyway it works fine. 回答1: For this, you need to understand how the thing works....when you change the value of a input element,

OpenCv unresolved external symbol error in Visual Studio

冷暖自知 提交于 2020-01-17 04:11:29
问题 I have linked to the libraries I want to use and added the header files to my project. And the code doesn't show any errors in red squiggle but when I try to run it, it gives me the following error: Error 1 error LNK2001: unresolved external symbol _cvDestroyWindow C:\Users\Jos\documents\visual studio 2010\Projects\ocv\ocv\opcv.obj ocv Error 2 error LNK2001: unresolved external symbol _cvWaitKey C:\Users\Jos\documents\visual studio 2010\Projects\ocv\ocv\opcv.obj ocv Error 3 error LNK2001:

'RUN PEX' does not appear on rightclick

て烟熏妆下的殇ゞ 提交于 2020-01-17 03:53:06
问题 I run VS2010 Pro on a Windows XP machine. I have downloaded and installed PEX & Moles. That all went fine. When I open a C#-project and position the cursor on a class method and rightclick, I see no 'run pex' or 'pex' choice, as should be the case according to (install) docu. As far as I could see I have done all by the book, but no joy. It seems I forget something somewhere but what? Who can help me out? 回答1: I have noticed the same functionality when I added a reference to Pex to my project

Program that identifies words in a sentence, stores these in a list and replaces each word with the position of that word in the list

Deadly 提交于 2020-01-17 03:51:05
问题 I have created a form visual basic program that ouputs the position of a word in a sentence, is there a way that i could output the whole sentence with only numbers for example: The cat fought another cat would be 1,2,3,4,1,6,7. Really appreciate all of your help. 回答1: All you need to do is get a list of the distinct words in the sentence, then iterate through each word of the sentence and substitute the word's index for the word as an output. Here's an example of how to accomplish that: Dim

WPF control frozen in Visual Studio 2010

和自甴很熟 提交于 2020-01-17 02:20:16
问题 I did a custom button control in WPF and I am trying to implement it in WinForms (c#). Now, the control is working and it compiles well, but I can't seem to access the elementhost - the control was not shown in the toolbox, and afterwards I saw it's frozen, i.e. I can't add it to the form. Since the project build process went without errors or warnings, I don't know what is causing the problem. Any help would be appreciated, thanks. EDIT: Here's the code of the xaml file: <Button x:Class=

Problem with moving VB.Net project from VS 2010 to VS 2017

前提是你 提交于 2020-01-17 01:19:09
问题 We have a 15 year old project that we want to move from Visual Studio 2010 to Visual Studio 2017. The project compiles fine in VS 2010, but when we tried moving it to VS 2017 we got a bunch of errors. Basically, we have a Businesslayer with a class called Security: <Serializable()> Public MustInherit Class Security Public Function GetPermission() As Boolean End Function End Class Then we have a Domainlayer with a bunch of classes that uses Security: <Serializable()> Public NotInheritable

How to implement conditional compilation ti run application on 32 bit and 64 bit platform?

三世轮回 提交于 2020-01-16 21:55:30
问题 I have 32 bit .net application solution project. It uses many third party dlls (32 bit). This app runs on both 32 bit and 64 bit (as a 32 bit process, compatibility mode) platform. It uses 32 bit DLLs even if it is running on 64 bit platform. I need to rebuild this application in order to let it use/load 32 bit Dll on 32 bit OS and use/load 64 bit DLLs on 64 bit OS. As existing 32 bit app runs on 64 bit systems in compatibility mode but I want it to be run as a dedicated 64 bit app on 64 bit

How to implement conditional compilation ti run application on 32 bit and 64 bit platform?

眉间皱痕 提交于 2020-01-16 21:55:28
问题 I have 32 bit .net application solution project. It uses many third party dlls (32 bit). This app runs on both 32 bit and 64 bit (as a 32 bit process, compatibility mode) platform. It uses 32 bit DLLs even if it is running on 64 bit platform. I need to rebuild this application in order to let it use/load 32 bit Dll on 32 bit OS and use/load 64 bit DLLs on 64 bit OS. As existing 32 bit app runs on 64 bit systems in compatibility mode but I want it to be run as a dedicated 64 bit app on 64 bit

How to implement conditional compilation ti run application on 32 bit and 64 bit platform?

[亡魂溺海] 提交于 2020-01-16 21:55:14
问题 I have 32 bit .net application solution project. It uses many third party dlls (32 bit). This app runs on both 32 bit and 64 bit (as a 32 bit process, compatibility mode) platform. It uses 32 bit DLLs even if it is running on 64 bit platform. I need to rebuild this application in order to let it use/load 32 bit Dll on 32 bit OS and use/load 64 bit DLLs on 64 bit OS. As existing 32 bit app runs on 64 bit systems in compatibility mode but I want it to be run as a dedicated 64 bit app on 64 bit