visual-studio-2010

Sharing Config settings between Web App and Console App

∥☆過路亽.° 提交于 2020-01-02 04:24:07
问题 I'd like to share my VS2010 3.5 Web Apps settings with my Console App's (2 projects in the same solution). eg connection string, smtp, log4net settings This looked close: http://devlicio.us/blogs/derik_whittaker/archive/2008/04/15/how-to-share-configuration-files-between-projects.aspx 回答1: The big difference is step 1 (save your special settings in external .config files) Put your shared .config into external files (attribute on element: configSource="mySpecialConfig.config") Add the files in

Error LNK2019: unresolved external symbol “toString(int)”

谁说胖子不能爱 提交于 2020-01-02 04:11:15
问题 Environment: Windows XP. Visual Studios 2010. Language - C++. I have run into the following link error & have run out of ideas how to fix this problem. I have a project (CnD Device) which links to 2 projects (Messages & Carbon) controlled by my group. I have tried to search for project properties between the 3 projects enter tcp_driver.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl toString(int)"

Error LNK2019: unresolved external symbol “toString(int)”

好久不见. 提交于 2020-01-02 04:11:09
问题 Environment: Windows XP. Visual Studios 2010. Language - C++. I have run into the following link error & have run out of ideas how to fix this problem. I have a project (CnD Device) which links to 2 projects (Messages & Carbon) controlled by my group. I have tried to search for project properties between the 3 projects enter tcp_driver.obj : error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl toString(int)"

can you validate xsd against xml in vs 2010?

▼魔方 西西 提交于 2020-01-02 04:05:28
问题 How do I validate an xml document against an xsd in Visual Studio 2010? Thanks. 回答1: Open you XML file in VS2010; in the Properties tool window (F4) there is a Schemas property. List the XSD you want in there. Once done, the errors/warnings will show up in the Error List tool window. 回答2: There are a few things you need. First the XML Document must be associated with the Schema: <XmlDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Code\Schema

Issues with RESX files on VS2010 targeting 3.5 framework

…衆ロ難τιáo~ 提交于 2020-01-02 03:57:24
问题 Here is a story what I recently ran into and a possible answer(?) I just wanted to share this information because I could not find this yet at stackoverflow. I upgraded my solution from VS2008, WinXP, 32bit TO VS2010, Win7, 64bit. When I make modifications on WinForms that generate new RESX files, or update the RESX files, I'm running into problems. A Debug build with VS2010 was no problem. However for Release mode I have to use a delay-signing process. Now that process gives errors on new

Binding array of string to DropDownList?

99封情书 提交于 2020-01-02 03:34:17
问题 A question that I have never solved. I will illustrate with two code samples in which one works and the other doesn't: Page_Load() { FontFamily[] oFamilyFontList = FontFamily.Families; DropDownList_Fonts.DataSource = oFamilyFontList; DropDownList_Fonts.DataBind(); string[] colorName = System.Enum.GetNames(typeof(KnownColor)); DropDownList_FontColor.DataSource = colorName; DropDownList_FontColor.DataBind(); } <asp:DropDownList ID="DropDownList_Fonts" DataTextField="Name" DataValueField="Name"

visual studio 2010 c++ debugging symbols loaded but can't find source code

試著忘記壹切 提交于 2020-01-02 03:31:30
问题 I've specified symbol (pdb) file inside 2010 so that it is loaded correctly but I get the No source available error and the Browse to Find Source Code is greyed out. Does anyone know how I can specify the source code directory or look inside the pdb to find out where it is? EDIT: My DLL is being called by an external program. The error is happening inside my DLL so I have the source code. When the error occurs I click Debug, the pdb symbols are loaded but not the source. 回答1: If you moved the

64bit int Spin Box in QT

岁酱吖の 提交于 2020-01-02 03:30:31
问题 I'm building a windows program which shall have controls for 64bit numeric values. these controls shall be switchable to be signed or unsigned. I found two controls: "Spin Box"(int32) and "Double Spin Box"(double) with double I'd be able to cover the range but it can't handle the precision. Is there a way to change the data type of these controls? Is it possible to create an own control which can handle signed and unsigned 64bit values? Is it possible to create a 128bit Spin box? The only

What happens if I use a font that isn't installed on the client machine?

╄→гoц情女王★ 提交于 2020-01-02 03:13:08
问题 Can someone tell me what happens if I use a font in my WinForms app that isn't available on the target machine? Does it use a font in the same family, just Sans Serif, or something else? 回答1: Your application will fallback to Segoe UI, Tahoma, then MS Sans Serif depending on the OS Version. 来源: https://stackoverflow.com/questions/5675709/what-happens-if-i-use-a-font-that-isnt-installed-on-the-client-machine

ATL COM class registration .rgs file defaults

旧巷老猫 提交于 2020-01-02 03:11:07
问题 I'm creating a COM server executable, and have run into a problem with class registration. When I created my class object, the automatically generated .rgs file looked like this: HKCR { NoRemove CLSID { ForceRemove {4C6DAD45-64B4-4C55-81C6-4CE125226421} = s 'Test Class' { ForceRemove Programmable LocalServer32 = s '%MODULE%' { val ServerExecutable = s '%MODULE_RAW%' } TypeLib = s '{EAA173CA-BDBC-463A-8B7A-B010EFA467BC}' Version = s '1.0' } } } This created the registry entries correctly for