visual-studio-2003

Setting environment variables in pre-build event and using in compilation step

ぃ、小莉子 提交于 2019-12-18 14:54:31
问题 In Visual Studio 2003, I am trying to set an environment variable in the pre-build event that will then be used in the compilation step, but the value doesn't seem to be propagated. For example, if the pre-build event contains this (either directly or within a batch file): set MY_LIB_VERSION=1.0.0 and AdditionalIncludeDirectories has this: c:\path\to\library\my_lib_v$(MY_LIB_VERSION)\include then I would expect the compilation to work if the my_lib_v1.0.0 directory exists. But instead, I get

Can I still target .NET Framework 1.1 in VisualStudio 2010?

匆匆过客 提交于 2019-12-18 05:49:06
问题 I am working with a project which uses .Net Frame V1.1 runs on VisualStudio 2003, Now, I want to run my project in VisualStudio 2010? Can I still target .NET Framework 1.1 in VisualStudio 2010? 回答1: Visual Studio 2010 only supports the 2.0, 3.0, 3.5, and 4.0 frameworks as targets. It does not support 1.1. Is there any reason why you can't upgrade it to .NET 2.0. Did you know that .NET 1.1 is no longer officially supported on Server 2008 R2 and so I wouldn't expect it to be officially

Strange C++ syntax

白昼怎懂夜的黑 提交于 2019-12-18 04:52:35
问题 I have 8 years of coding experience, but I have never seen the operator [] passed as a parameter to the function definition. For example, the following code (from an open source project): bree::porder(m_root, [] (treenode* node) { delete node; }); Throughout my coding life, I have always defined [] as an operator overloader, not as a parameter. So what does this new syntax signify? I am using the compiler that comes with Visual Studio 2003. How can I change the above code so that it will

Omitting XML processing instruction when serializing an object

只谈情不闲聊 提交于 2019-12-18 00:32:53
问题 I'm serializing an object in a C# VS2003 / .Net 1.1 application. I need it serialized without the processing instruction, however. The XmlSerializer class puts out something like this: <?xml version="1.0" encoding="utf-16" ?> <MyObject> <Property1>Data</Property1> <Property2>More Data</Property2> </MyObject> Is there any way to get something like the following, without processing the resulting text to remove the tag? <MyObject> <Property1>Data</Property1> <Property2>More Data</Property2> <

Linking errors when upgrading a VS2003 solution in C++

痞子三分冷 提交于 2019-12-13 08:23:59
问题 I've been struggling with upgrading this solution. It has both managed and unmanaged memory and includes calls to methods that Marshal the string variables. The linking errors I get are in pairs. LNK2028 unresolved token void __cdecl function(wchar_t const *, wchar_t const * *) referenced in function public: void __clrcall NamespaceOfTheSolutionIAmWorkingOn::function(class System::String ^, cli::array ^) and LNK2019 unresolved external symbol void __cdecl function(wchar_t const *, wchar_t

How to give a .net 1.1 dll a strong name in VS2003

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:18:29
问题 I have a .net 1.1 dll I need to digitally sign for a legacy project. I have created a .snk file. What steps must I take in Visual Studio to apply the signature? Edit : Found this http://www.robrich.org/archive/2006/11/29.aspx 回答1: Maybe these links will be helpfull: Strong name WinForms 1.1 .NET Framework 1.1 Security Guidelines - Strong Names 回答2: prepare a key file to give strong name **ex: sn.exe -k test.dll test.snk 来源: https://stackoverflow.com/questions/529224/how-to-give-a-net-1-1-dll

System.BadImageFormatException: How to fix .NET version mismatch?

旧街凉风 提交于 2019-12-12 07:49:32
问题 I wrote a dll in VS 2005 that will be loaded by another program that was developed in VS 2003. When that program tries to load my dll, it throws a System.BadImageFormatException: The format of the file 'Foo.dll' is invalid . I searched SO and Google, and it seems that the different version of .NET is the culprit. My question is: How do I fix this? (I cannot modify the program developed in VS 2003.) 回答1: Compile the VS2005 Project with the same .Net Version as your VS2003 Project uses. Or,

Error while running .Net 1.1 Application in visual studio

可紊 提交于 2019-12-09 13:44:15
问题 I get the following message when I try to run a .net 1.1 web application in Visual Studio 2003: Error while trying to run project.Unable to start debugging on the web server. There is no managed code running in the process. In order to attach a process with the .Net debugger, managed code must be running in the process before attaching. Can any body tell what I am missing here. FYI : The application is working fine on the live server. 回答1: Have you tried the following? Right click the ASP.Net

Do I need to uninstall all higher versions of Visual Studio just to reinstall VS 2003 successfully?

流过昼夜 提交于 2019-12-09 07:56:27
I have Visual Studio 2003, 2005 and 2008 installed on my machine + my OS is Windows 7. Both 2005 and 2008 are working properly except for 2003. I have a project that still needs to be compiled in VS 2003. I have setup-ed it in IIS7 and it is working fine but when opening it in VS2003 it prompts me... "Visual Studio .Net cannot create or open the application. The likeliest problem is that the required components are not installed on the local Web server. Run Visual Studio .net setup and add the web development component." I even tried to repair it but still did not work. Are there any solutions

textbox value change not being reflected in code behind c#

非 Y 不嫁゛ 提交于 2019-12-08 06:47:54
问题 I am using .NET framework 1.1 with C#. My problem description is given below. I have server side textbox control with id:= txtFromDate . view state is enabled and its readonly. when page loaded for the first time i am setting current date value in above textbox. after that I change the value of textbox with jQuery. then posting back the page using jQuery with some __EVENTTARGET parameters. I am using this changed textbox value in my code behind. I have developed code in window XP machine 32