menardgi's Q&A profile
Visual Basic Inherit from class with same namespace
Is there any way to inherit from a class that exists in a referenced project and has the same namespace as the base class For example, lets say I have a class with namespace MyApplication.Common in MyApplication.Base.dll. Is there any way to create a class that inherits from MyApplication.Common and has the same namespace in a project that references MyApplication.Base.dll I was hoping that partials might help me out, but they are limited to existing within the same project. Thanks for any help. Lance Its working well in C# 2.0. Im sorry I couldnt show VB.net code.. I dont have it but it ...Show All
Visual C# get Fibonacci sequence number base on user input
hi all, in my application, i want to return the n-th number in a Fibonacci sequence to the interface by asking user input. e.g. user inputs 5, and click on a button, it returns the 5th number in , which is 3. please help. Here is one solution (maybe not optimal, but it works ): private int fibonacci(int userInput) { int sum=0, a=1, b=1; int i=2; if (userInput == 1) return 1; else { if (userInput == 2) return 1; else { while (i != userInput) { sum = a + b; a = b; b = sum; ++i; } r ...Show All
Visual C++ How VS 2005 decides to build a project
I have a project that keeps building even if it completes successfully in VS 2005. Is there a way to determine what is causing this build to kick off instead of it saying up to date Hi Jabber, Can you please describe your problem in more detail Does VS keep building your project in an infinite loop or is the project rebuilding even when sources have not changed Thanks, ...Show All
Visual Studio Team System Estimating Project Size/Cost
I've read the MSF white papers on how to estimate project size. The MSF way is to estimate it bottom-up. I've come to a problem where I need to estimate the project size as early as possible. Do you guys have any experience with this kind of problem I'm not targeting for a 99% accuracy, just a range for low-high limits. Thanks! You can try to estimate project cost/schedule with any Cocomo II tool. Start from here to obtain more information: http://sunset.usc.edu/research/COCOMOII/ ...Show All
Visual C++ Why do I get these C2065 and C2057 errors?
This is a brand new MFC program I created thru VS and C++ version 6. When I added a new dialog which only has a progress bar and named it IDD_COMPUTER_SPEED I get the following errors "error C2065: 'IDD_GET_COMPUTER_SPEED' : undeclared identifier" and "error C2057: expected constant expression" both pointing to the .h file that was created automatically. I don't know why I'm getting these error because C++ added the IDD to the .h file and that's where the erreors occur. HELP!!!!! If you only preprocess then the link step will always fail as you have only pr ...Show All
Visual Studio Team System Irreversible decisions?
What are the irreversible decisions (or effectively irreversible due to large amounts of work) in VSTS If you choose MSF Agile and later decide that you either want MSF CMMI or want to make significant changes to the process template, can those changes be applied to an existing project Can you change fields in a work item type of an existing project Say add some fields, remove some fields and add more choices to an enumerated list. I'll see what I can do for you about the blog, Chris Chris' idea could work. However although we do support basic copying of a work item ...Show All
Windows Forms Configuration Files
Ok, I am very new to programming complex programs in VB6, but also am self taught by reading books, and just messing around with programming simple files so that I can learn how to program a program that I want. Most books that I have say from beginner to advanced, but there is just to much information for them to cover everything. This quest ...Show All
Software Development for Windows Vista Errors in winnt.h file using visual c++ 2005 express edition and mar. 15 sdk
Hello. I get the following errors when I try to include winnt.h in my code. I tried using the newest sdk as well as the previous release, and both files seem to generate the same errors. This must be a common problem, but I haven't seen the answer. I'm including stdio.h, xlcall.h, windef.h and winnt.h in my code. Maybe I need to include another header. Any help would be greatly appreciated. Thanks. C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(3857) : error C2146: syntax error : missing ';' before identifier 'ContextRecord' C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winn ...Show All
Visual C++ errors binding AD using LDAP
Hi all, I am new to Visual Studio and C++ and I am trying to bind to active directory using ldap. I could compile the code, but when I built it, I got linker error like this: ldapConn.obj : error LNK2001: unresolved external symbol __imp__ldap_initWC:\lewis\smtpMail\ldapConn\Release\ldapConn.exe : fatal error LNK1120: 1 unresolved externals My code is very simple, it's like this: #include <windows.h> #include <winldap.h> #include <stdio.h> #include <iostream> int main() { LDAP * pLdapConnection = NULL; pLdapConnection = ldap_init((PWCHAR) "x.y.z" , 636); if (pLdapConnection == ...Show All
Visual C# Internal Compiler Error - likely culprit is 'BIND' - C#.NET v1.1
Hi All I'm using C#.NET v1.1 I am getting the following compile error, I'm having several if statements inside two foreach statements. And inside some of the if statements I'm having one foreach statement. This doesn't occurs only when I removed the last three if statement(newly added), I tried removing other if statements but its giving error, nothing spl in the last 3 if statement. why is it so anything I'm doing wrongly or its a defect in compiler error CS0583: Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around this proble ...Show All
Visual Studio Tools for Office Connecting to a Remoting Server from an addin
I have remoting server that publish a singleton object. The object has some primitive objects and another complex object as properties. If I use the remote object from an .exe application i don't have problems. But, If I access to the remote object from the addin (In the same Way!!!) I have problems accesing to some properties. If I try to debug and ask to the Visual Studio to show the value of some properties the IDE hang up... :( The IDE shows a lot of properties but when it has to show the first complex type hungs up... I don't know how to solve this problem the error messages are differents depending on the operation i try to ...Show All
Visual Studio vs2005 Project Template, entry removal
I'm using VS2005 to create a project template and would like the resultant project template to only contain certain files but the template file generated always lists the complete set of original project source files, I do not want my source files included in the project template. How can I remove them If I unzip the project template zip file and edit the template to exclude the unwanted files and then rezip the I get the following error when trying to create a new project from my project template "Cannot find file ............" If you edit the zip file, e.g. want to remove source files you should rember to edit bot ...Show All
SQL Server SQL SERVER 2005 REPLICATION (SNAPSHOT GENERATION FAILING)
I'm getting this error when I try to generate a snapshot for "merge" replication. I have added the articles one-by-one to try and narrow the problem down. I get this error on specific articles. Any help is appreciated. 2006-03-23 18:23:14.35 Server: MYSERVER 2006-03-23 18:23:14.35 Database: MYDB 2006-03-23 18:23:14.35 Command Text: sys.sp_releaseapplock 2006-03-23 18:23:14.35 Parameters: 2006-03-23 18:23:14.35 @Resource = MYSERVER-DBMERGE 2006-03-23 18:23:14.35 @LockOwner = Session 2006-03-23 18:23:14.35 @DbPrincipal = db_owner 2006-03-23 18:23:14.35 [99%] The replication agent had encountered an exception. 2006-03-23 18: ...Show All
SQL Server return value of EXECUTE sp_executesql(SQLString)
Hi, How can I check return value from EXECUTE sp_executesql(SQLString) Thanks, I'm not sure what "return value" means -- if you mean that your SQL generates a value that you need to assign to a variable, you can use an OUTPUT param: DECLARE @x int EXEC sp_executesql N'SELECT @x = 1', '@x int OUTPUT', @x OUTPUT PRINT @x -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- < ...Show All
Visual Studio Tools for Office Keyhook event handling at Word Document level
Hi, We are on VSTO Customizations for Word 2003. We binded the XML Schema to the word document. At some of the nodes we need to capture the keys entered by the user and based on that we need to do some action. For that we have written KeyHook events. The following link is the source of our reference http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/ For that we added filters and allowing the keyhook event only being fired based on the matching filters (or keys for which we enable firing). The keyhook event is getting fired when user presses a key (which matches filter conditions set) at the document window. ...Show All
