visual-studio-2008

WPF Toolbox Empty

与世无争的帅哥 提交于 2020-01-04 14:21:25
问题 I am adding on to an existing WPF Project, and am running into an odd error. My Toolbox is empty. I am developing in a Windows 7 environment using Visual Studios 2008 run as Administrator. I have created a project from scratch, and the tools were there. However, when I load the existing project, there are no tools in the Toolbox. I do have an element in the UI selected. I fixed this once by going into Tools -> Choose Toolbox Items... -> WPF Components. I then added the tools that I needed.

Localizable User Controls

荒凉一梦 提交于 2020-01-04 13:09:09
问题 If I have a form that is localized and has User Controls that are localized, how I can I view the form and the controls in the language specified in the VS Properties? Right now when I change the language, all my controls that are not part a user control adjust appropriately, but my user controls do not. 回答1: You have to localize each user control individually when designing it in the designer. Then you can set the property Localizable on the user control to true and choose your language.

Syntax highlighting for html markup disappears in Visual Studio 2008

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 09:48:34
问题 This happened to me in Visual Studio 2008 pre and post 2008 sp1 on more than one computer and to someone else I know, so it can't be an isolated incident. Seemingly random, every so often I lose all syntax highlighting in my aspx page (the html) so that Visual Studio now looks like a really expensive version of notepad. Does anyone know why does happens? Better yet, anyone know how to fix it? 回答1: it happened to me after an uninstall of visual studio using a removal tool at http://msdn

Can I programmatically export class diagrams from Visual Studio 2008?

落爺英雄遲暮 提交于 2020-01-04 09:18:32
问题 I can export a class diagram as an image from Visual Studio by right-clicking on the surface and choosing "Export Diagram as Image..." Is there a way to do this through command line? I'd like to be able to generate all of my class diagrams as images so I can include it in the .chm I am building w/ Sandcastle. 回答1: Found it after a full day of searching. In case anyone ever comes across this again: Two ways to do this: Microsoft.VisualStudio.Modeling.Diagrams.Diagram.CreateBitmap() lets you

Visual Studio compiles WPF application twice during build

Deadly 提交于 2020-01-04 09:08:11
问题 I have a WPF app in VS2008 that compiles twice during the build. The two CSC command lines are similar but with some differences. The first CSC command line does not have an /resource options, the second has two /resource options on the command line. The second CSC command line has these additional arguments: /resource:"obj\Debug AutoCAD\VisualApp.g.resources" /resource:"obj\Debug AutoCAD\CAP.Visual.Properties.Resources.resources" I hate to post such a huge ugly compiler output but here are

Connecting to MS Access database using C++ using Visual Studio 2008

冷暖自知 提交于 2020-01-04 07:35:22
问题 I need some serious help trying to connect to an Access database using VS 2008's C++. I have done this in C# but I cant figure this out in C++. I need to use C++ for the connection because I am grabbing data using pre-compiled C++ code. I would really appreciate some help with this. Thanks I would like to odbc, but if you have another recommendation then I could change my mind.I am trying to connect to an Access database, the Northwind sample database, by following this example, http://msdn

DefWindowProc() issue

淺唱寂寞╮ 提交于 2020-01-04 06:55:28
问题 VS2008, c++, mfc I have to handle messages from the child windows in the parent window. In fact i want to handle only ON_BN_CLICKED messages and then make some ather actions. As i understood i have to redefine WindowProc(): LRESULT CDLauncherDlg::WindowProc(UINT mes, WPARAM wp, LPARAM lp) { HWND hWnd = this->m_hWnd; switch (mes){ case WM_COMMAND: if((LOWORD(wp)==IDC_BUTTON4)&& (HIWORD(wp) == BN_CLICKED)) { MessageBox("Button pressed.", "", 0); } break; } return DefWindowProc(mes, wp, lp); }

#define, #ifdef #undef #endif

青春壹個敷衍的年華 提交于 2020-01-04 06:34:26
问题 I have the following code #define PROC_ADD void main(void) { while(1) { #ifdef PROC_ADD // Do this code here then undefined it to run the code in the else // processing work #undef PROC_ADD #else // now that PROC_ADD has been undefined run this code // processing work #endif } } However, it will run the code. But it won't run the code in the else after the PROC_ADD has been undefined. I think the reason could be that you can only define and undefine at compile time, and not at run-time.

Compiling my own PHP extension on Windows with Visual Studio 2008

烈酒焚心 提交于 2020-01-04 05:08:34
问题 I wrote a PHP extension and it could be compiled and run under linux successfully. But on windows, I met some problems. I did the compiling on windows according to http://blog.slickedit.com/?p=128 with PHP source version 5.2.10, and after the compiling it generated the dll file. But when I tried to use the dll file, it reported me the memory problems when starting Apache(Wamp server). And then I started the debugging process, it seemed that REGISTER_INI_ENTRIES() had problems. Here is the PHP

WinCE - Unable to start debugging

ぃ、小莉子 提交于 2020-01-04 04:58:20
问题 Using a WinCE C# Forms app .NET3.5 on device link I can deploy fine and run the forms application. I can use the Windows CE Test Kit link which automatically deploys itself to the device and it runs the tests. Problem: Debugging wont start. It locks up VS2008. It seems to deploy the app fine, then hangs. Eventually comes up with "Unable to start debugging" I cannot use SOTI link as it fails to deploy itself to the device 回答1: The fact that CETK works is a red herring. It uses a different