JohnK1's Q&A profile
Visual Studio Tools for Office FV result is being different from Pure Math Calculation ?
Could anyone please help me to rectify the following problem. Compounded ROI Term(Yrs) Term (Months) TotTerm Instalment Halfyearly 8% 6 0 =(6+(0/12)) 6 1000 (=8%/2) =6*2 =1000/2 2 0.04 12 =500 If I use Excel FV Function like this FV(0.04, 12, -500, 0, 1) The result becomes 7813.42 But if I calculate in the following way: 1000 6 =ROUND(1000*(1+(0.04))^(12),0) = 1601 1000 5 =ROUND(1000*(1+(0.04))^(10),0) = 1480 1000 4 =ROUND(1000*(1+(0.04))^(8),0) = 1369 1000 3 =ROUND(1000*(1+(0.04))^(6),0) = 1265 1000 2 =ROUND(1000*(1+(0.04))^(4),0) = 1170 1000 1 =ROUND(1000*(1+(0.04))^(2),0) = 1082 The result becomes 7967 The difference is b ...Show All
.NET Development DLL loaded twice
Hi, I was looking at DLLS used by a process using ProcessSpy and found that the process has loaded two DLLs for few of the system dlls like Systsem.Drawing.Dll, System.Windows.Forms.Dll etc. For one of these DLLs the version is 0.0.0.0 and the other one has a valid version. Unfortunately, I can't add a snapshot of the window here. What I am wondering is, whether its pretty common to have this behavior or something is wrong in the taks, the way it is loading DLL. Thanks, -Brajesh It will still be loaded regardless. It is loaded first, then the native image is loaded. Assemblies can't be unloaded from an AppDomain. ...Show All
Visual Studio Windows Services - Debug
Hi all, I'm writing a simple Service that pings my website. Now I've done the "installutil.exe /i Service.exe". Then I go to Windows Services Manager, there I manually start the service. Now I want to debug the running service. I go to my VS--> debug --> attach to Process, where I find my process however it's gray and says managed as Type. And I cannot click attach.. What am I doing wrong Greets Hi, in the same dialog, check the "Show processes from all users" option - your service, probably running under the SYSTEM account, should appear in the process list and you would be able to attach debugger to it. Andrej ...Show All
Windows Forms Selection problem!!
Hi, I'm trying to create a selection script and running into a problem. I need to have four selections; E = encrypt; D = decrypt; Q = quit; and one for if something else was picked. This is what I got so far and I'm lost on how to add the selection menu using System; using System.Collections.Generic; using System.Text; namespace week4 { public class Crypto { public static void Main( string [] args) { Crypto crypt = new Crypto (); crypt.displayMessage(crypt.convertData(crypt.getInput())); } public string getInput() { string getInput; Console .Write( "Please enter a single Character >" ); getInput = Console .ReadLine(); return getInput; ...Show All
Visual Studio Team System Prefast: Bogus C6001, hiding _VC_NODEFAULTLIB
I've run cl /analyze over a fairly small project (just some 30Kloc) and seeing all kinds of issues. That's the Vista Beta2 Platform SDK compiler, but it looks like it's just the VS8 gold version. Anyway, would someone care to explain why C6001 complains on some very trivial code like struct X {char x[2];}; X foo() { X x_; x_.x[0]=1;x_.x[1]=1; return x_; } c:\scratch\u.cpp(7) : warning C6001: Using uninitialized memory 'x_': Lines: 5, 6, 7 or # include <algorithm> # include <cstdio> int main() { const char some_string[] = { 'S', 'n', 'o', 'o', 'p', 'y' }; std::for_each( some_string, 1[&some_string], putchar); // index out of range std::for_each( some_string, some_string + sizeof(some_string), putchar); / ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Duplicate DLLs when building application (C#)
Trying to bulid the following code with C# 2005 Express Edition, i'm taking the next error message: CODE using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace DXTriangle { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private Device device = null ; public void InitializeGraphics() { PresentParameters presentParams = new PresentParameters (); presentParams.IsWindowed = true ; presentParams.SwapEffect = SwapEffect ...Show All
Windows Search Technologies Add category to deskbar results
Since I installed WDS 3 the program category is not shown in the windows deskbar results. In the main results window I still can search for programs from the start menu. How can I change that Thanks for this hint. With the preceding star it works for me. It seems to be a new "feature" in wds 3. Although it would be nice to have the possibility to customize this. ...Show All
SQL Server SQL Execution Error: "clr Enabled"
I've Created a DLL Library and added it as an assembly in a database when I make a select statement from SQLCmd using my functions it runs fine but when I try to Create View from the VB 2005 Express Development Environment it Gives me the Error SQL Execution Error Error Message: Execution of user code in the .net Framework is disabled. Enable "clr Enabled" configurartion option note that CLR Integration Option of the SQL server is ON and I've Tried sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'clr enabled', 1; GO RECONFIGURE form SQLCMD in vain when I execute the select statement from the SQLcmd it runs fine but when I try to make a View from the Developmet Environment i gives me that ...Show All
Windows Forms I want open a specfic powerpoint doc from vb.net
Ok I know how to open another Process.Start("MyOtherApp.exe") I want to have the user click a button and open the following c:\\myapp\mypowerpoint.ppt You are probably installing your application using ClickOnce deployment, so try locating your application directory using Deployment namespace: Dim filePath As String = Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory + "\doc\myfile.ppt" Also make sure that powerpoint file is deployed with the application as a "Data File" [this is a file setting you'll find under the Application files in Publish settings dialog] Let me know if you need further assistance. Andrej ...Show All
Visual Studio Express Editions Adding a settings file.
Hello, I am new to visual C++. Years ago I wrote apps in C++, but haven't used it since '95. Just getting started & so far so good but I have hit a snag. I am trying to add application settings. When adding I get the error message "No settings file can be found in the project. Add a settings file & try again" . The only info I can find is how to edit. Nothing that I can find shows how to add a settings file. I would appreciate any info. Thanks Please refer to the following URL within your Visual Studio Express help files: ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vssoln/html/a233965c-126d-46ab-add4-efb758f576f4.htm ...Show All
Visual C# new Modifier behaviour in interfaces
Example: public interface B { string Name { get ; } } internal interface AB : B { // new - hides a member inherited from a base class (!) new string Name { get ; set ; } } internal class MyClass : AB { public string _name; // implementation of the AB.Name property public string Name { get { return _name; } set { _name = value ; } } } then: AB ab = new MyClass (); ab.Name = "!" ; ... B b = (B) ab; Debug.Assert (b.Name == "!" ); //true! Why when I call method get_Name () form interface B - the AB.get_Name () is called I don't get it because in AB interface Name property is declared with ...Show All
Visual Studio Team System Problems with Source Control
Hi guys, we try to use SC and we are no real experienced team. Hopefully somebody can help us with following problem. Everybody uses SC in our dev-team. But from time to time we get the following message from SC when we download latest version: The solution <My Solution> has been modified outside the environment Press Reload to load the updated Solution from disk Press Ignore to ignore the external changes The changes will be used the next time you open the solution. Another Problem: SC seems to have problems to recognize that there are new versions avail. We right click on a folder in SC and select get latest version. We get the "All files are up to date" message. But when I check the files in the SC-direct ...Show All
.NET Development Dataset control of row events
I have a dataset which contains data and summary data. i.e. orders and orderlines. order has the following columns: orderid ordertotal - this is the total of all of the amounts for the orderlines associated with this order orderlines has these columns: orderlineid orderid productid amount percentoforder - percent of order that this line is If I update and orderline, I don't want to raise any events regarding the change until I can "commit" the change to the order. Once the data is actually updated in the dataset for bot the orderline and the order, then and only then do I want the RowChanged event to fire. It should first fire for the orderline and then for the order itself. The reason I don't want the editing of the orderline t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3D model is incorrect after adding a Sprite in 2D
I took the example of drawing a 3D model(tutorial 1 and 2(spaceship)) and then pasted the code from the tutorial of the "Drawing a Sprite" When It renders the ship doesn't have volume. In that I can see right through it. Does anyone know what is wrong. Is there some thickness setting for the graphic devicer that I need to set The complete code is pasted here: #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion namespace ...Show All
Visual Basic Not Checking and What is this Error?
I'm pulling my hair out on these 2 problems! How Come this does not get ticked I have as a menu None White Black ------ Custom For the transparency color of a form. When the form loads it loads each one of these (wether it's ticked or not and sets it's property accordingly). When it loads... it does nothing! The transparency gets set correctly but these do not get ticked! I also have more menus for forecolor and back color and they work fine and they use the same type of code. This does not make sense, i know the If is following through because a msgbox comes up when the form loads. If GetSetting("My_Program", "Program_Options", "Trans_Col-None", True) = True Then UnTickAll_TransCol() "Untick ...Show All
