visual-studio-2008

Error C2975 in a template function implementation

寵の児 提交于 2019-12-25 00:24:34
问题 I've asked a similar question already but did not provide enough details. So I'm trying to re-phrase it with a better code sample. So here it is. First off I'm using Visual Studio 2008 C++ compiler and I'm trying to implement a template to call a member method of a class. The template is declared as such: typedef void (*ON_CALL)(HWND); template <typename CLASS, ON_CALL F> class CMyTemplate { public: static void onProcess(CLASS* pDlg) { pDlg->SetTimer(100, 1, _onTimer); } private: static void

Unable to start debugging on the Web Server. Visual Studio 2008

余生长醉 提交于 2019-12-25 00:13:58
问题 I am running visual studio 2008 on vista business 64-bit. I am getting the following exception when I try to debug against IIS. "Unable to start debugging on the web server. The object identifier does not represent a valid object". IIS and Visual Studio are on the same box. I've tried adding Windows Authentication but no luck (my app requires forms authentication, fyi). Any thoughts? I have a binding on the Web Site. The IIS app is a Web SIte not a virtual directly. Thanks! 回答1: You have

.NET: TopItem property of ListView fails with “ShowGroups” = true

烂漫一生 提交于 2019-12-24 23:30:25
问题 I have a ListView that shows around 300 items. When something is changed and I need to repopulate the list, I would like the scroll position to be unchanged, so the same items are still visible and in the same position in the list. The "EnsureVisible" method sucks since it is satisified with "Visible", not the same position (the result is that the item of interest is always scrolled to the bottom of the list). My solution to the problem is to to save the (my) "ID" of the List->TopItem, refill

DCOM/IIS Issues

。_饼干妹妹 提交于 2019-12-24 22:29:57
问题 This is my first time dealing with IIS and DCOM so I apologize if I am butchering terminology: I am trying to develop an Intranet web site and I am having fits with what I think is a permissions issue. There is a function called from a DLL referenced in the web application that reads data from several DCOM applications on the web server. When I run the web application in the Visual Studio debugger on another computer on the network, it reads successfully. If I put the same DLL and function

Jquery and Intellisense in VS 2008 with hotfix and SP1

只愿长相守 提交于 2019-12-24 19:54:23
问题 I followed Scott Guthrie's instructions as outlined at http://weblogs.asp.net/scottgu/archive/2008/11/21/jquery-intellisense-in-vs-2008.aspx but no avail: intellisense still doesn't work. Any tips? 回答1: found the bug: my script tag said <script type="text/javascript" source="Scripts/jquery-1.2.6.js"></script> instead of <script type="text/javascript" src="Scripts/jquery-1.2.6.js"></script> 来源: https://stackoverflow.com/questions/1702791/jquery-and-intellisense-in-vs-2008-with-hotfix-and-sp1

How to add the Gridview cells using vb.net?

折月煮酒 提交于 2019-12-24 19:07:35
问题 My Gridview has following Fields ID Product Price ($) 1 Pencil 1 2 Pen 1 3 Rubber 2 I want to calculate the total price of price fields in Gridview Footer ...ie.. Total Price = 4 How to do it using VB.NET ? 回答1: Look at this msdn article GridView Examples for ASP.NET 2.0: Displaying Summary Data in the Footer 回答2: Use compute method of dataTable to get the sum of all your prices and handle the RowDataBound-event to set the Footer's text: Protected Sub Page_Load(ByVal sender As Object, ByVal e

Add custom version information to C# application

眉间皱痕 提交于 2019-12-24 19:06:03
问题 Application is a C# .Net 3.5 WCF Service. I'd like during the build process to dynamically add some build information to the final binary and assemblies that can then be read programatically and sent back to the WCF client when it sends a GetVersionInfo request to the web service. .Net assembly versioning isn't enough. I want to include additional string data that contains the state of the system at the time the application was built. I'm thinking that I'd do this by adding a post build event

What's this folder structure for? (Local user GAC?)

偶尔善良 提交于 2019-12-24 17:42:54
问题 I've just stumbled across this folder structure on my machine which contains lots of .NET assemblies similar to what you might find in the system GAC. This puzzled my as I've never seen this folder structure before and it makes me wonder, is there such a thing as a local user assembly cache? The folder structure is: C:\Documents and Settings\ [username] \Local Settings\Application Data\assembly\ and contains folders and files that look like: \dl3\8M830QM6.ON7\NJ9Q0EA9.TZO\623c8efc\00461250

What's this folder structure for? (Local user GAC?)

旧巷老猫 提交于 2019-12-24 17:41:52
问题 I've just stumbled across this folder structure on my machine which contains lots of .NET assemblies similar to what you might find in the system GAC. This puzzled my as I've never seen this folder structure before and it makes me wonder, is there such a thing as a local user assembly cache? The folder structure is: C:\Documents and Settings\ [username] \Local Settings\Application Data\assembly\ and contains folders and files that look like: \dl3\8M830QM6.ON7\NJ9Q0EA9.TZO\623c8efc\00461250

Coexisting installation of visual studio 2010 &2008

一笑奈何 提交于 2019-12-24 17:18:44
问题 I currently have MVS2008 and I want to try the 2010 version hoping that it would compile C programs faster. I would like to know if I can have a 2008 installation coexisting with a 2010 installation on the same Windows partition, without conflicts in the Windows environment variables in Win XP. Thanks a lot... 回答1: Yes, I have that setup and it works like a charm for me. You don't need to have any global environment variables set up - each version of Visual Studio creates its own "Visual