er824's Q&A profile
Visual Basic Converting Julian Time Values
I am a VB6 newbie trying to convert a Julian (1970) value to a standard date and time format. The value I am trying to convert is the number of seconds since Jan 1, 1970. Any help would be greatly appriciated. Sorry, I misunderstood. In VB.Net use the following: The example uses two TextBoxes: tbJulian and tbGregorian and two Buttons: btnConvert and btnExit I've combined the buttons in one click event using the button's tag property to select the proper button when clicked. Public Class frmJulToGreg Inherits System.Windows.Forms.Form Private Sub m ...Show All
Visual C# How to stop or end the execution of a C# code?
Hello, Question: if I have the following Console code and I want to end the execution at the CheckDirectories Method instead of in the last curly braket of the Main Method How I do that See below, I have identified where I want to stop \ end execution. static void Main( string [] args) { string [] strDirectories = new string [1]; CheckDirectories(strDirectories); } *********** I don't want to end the execution here. *********** public static void CheckDirectories( string [] TargetDirectories) { try { bool blExcist = true ; foreach ( string strDirectoryPath in TargetDir ...Show All
Windows Forms VB.NET Combobox.SelectedValue
Has anyone heard of a problem where you can't set the Combobox.SelectedValue to 1 I have a VB.NET 2005 data entry form with a Combobox on it. This Combobox is populated from a lookup table in Access. I've already verified that the Combobox has the appropriate ValueMembers and DisplayMembers, and they match up with the data in the lookup table. I can set the Combobox.SelectedValue property for every value in the table except for 1. I even tried hardcoding it... Combobox.SelectedValue = 1 ...that didn't work. Combobox.SelectedValue = 2 works fine. And yes, I do have records in the lookup table corresponding to both 1 and 2. I used the ...Show All
Software Development for Windows Vista Package Load Failure
Hi, I have the VS.Net 2005 Beta 2 August 2005 CTP installed. I then downloaded and installed the WWF Beta 1. Now whenever I open the VS IDE, I get the following msgbox: Package Load Failure Package 'Microsoft.Workflow.VSDesigner.DesignerPackage, Microsoft.Workflow.VSDesigner, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has failed to load properly (GUID = {FD526733-BD72-4F81-BEEC-BEB06E2AF59F}). Please contact package vendor for assistance. Application restart is recommended .... I have tried the suggestions in an earlier post of the same nature. Both suggestions do not work for me. Please help. Dev. ...Show All
Windows Forms VS2005 anchor problems on inherited form with a tab control
Anchors of controls, other than Top-Left, on a form that inherits from a form that has a tab control on it creates unpredictable results. This applies to controls placed on tab pages. When the solution runs and the derived form displays the controls may not be in the position where you last placed them. Likewise, when the solution is closed and re-opened the controls may not be in the position where you last placed them. I confirmed this by testing all scenarios using, and not using form inheritance, tab controls, and anchoring as variables. I get the same experience in a simple 3 form pr ...Show All
Visual C++ Disabling Exception Handling
VC++ 6.0 I can't seem to disable exception handling. I have a try / catch block and whenever I hit my exception control goes to my catch(...) handler. I do not have /GX set. I am building using the IDE. (When I set /GX- in Project Settings the IDE just removes the switch...supposedly GX- is the default.) Oh, and yes; as expected, when I compile with E.H. disabled I get a warning that my unwind semantics are not enabled. My program should simply crash with E.H. turned off. QUESTION: How do I get VC++ E.H. to really turn off Thanks. (Legitamate email, not spam, welcome at les.h.clark@baesystems.c ...Show All
SQL Server Ready for Production?
I must release a new Db on 4/1 into an isolated small network (pier workgroup) and my choices are MSDE or Express. I'm new to both (MSDE yesterday, Express today). I am familiar with SQL Server and prefer using the tools with Express, but i s it stable enough to use in this type of production environment I hope so. I also am going live with SQL Express 05 around April or May and it will be ran on 1-15 computer systems at a time. Also, just to make it fun... we are still running a VB6 front end so we are using ADO 2.8. I think it is ready. One way to find out. I'll post here if i come across somethin ...Show All
Visual C++ Mixing Templates and Generics
I think I've raised this questions a couple of times and the first time some three years ago - and have never got a real answer. Why does the language disallow mixing templates and generics. What's wrong with: template < typename T > value struct outer { generic < typename U > void foo(); }; or generic < typename T > ref struct outer { template < typename U > void foo(); }; And in case you wonder, yes I really wrote some code which exactly does that and I don't think it's hard to think of examples. -hg What would the IL representation ...Show All
Visual C++ Flaw in C++ 2005 compiler?
After setting a ref type = nullptr, I should not be able to reference the object, but this is not the case. Even after GC::Collect, the object is still there. What on earth is going on #pragma once using namespace System; ref class Managed { public: Managed(); ~Managed(); !Managed(); void Write(); }; #include "stdafx.h" #include "Managed.h" Managed::Managed() { } Managed::~Managed() { Console::WriteLine("Managed destructor has been called."); this->!Managed(); } Managed::!Managed() { Console::WriteLine("Managed finalizer has been called."); } void Mana ...Show All
Visual Studio Team System What happens when the trial expires? Where is Team Suite? How do I upgrade? Partners?
Some frequently asked questions... Q: I am an MSDN Universal Subscriber; why can't I see any of the role-based products or Team Suite in the MSDN Subscriber Downloads Center A: You have not yet submitted a transition request. You must transition from MSDNU to one of the role-based products or upgrade to the Suite. See http://msdn.microsoft.com/subscriptions for more information. Q: How long does the transition request take A: For a retail subscriber it will take 24-48 hours from transition choice to access the new level/role. For a Volume Licensing admin to assign a role choice and then the user to get download access should be nea ...Show All
Visual Studio Express Editions Help Please on Visual Express Database Saving
I just recently downloaded visual basic express and i've found it to be a very powerful tool despite being free. I've been moving right along through the tutorial and ran into a simple problem..... I got to this page on the "How Do I" help training: "Adding or Modifying Your Records: Updating Data" I created a project and connected it to a database. When I run the form and "update" the database on the form(and save it) it doesnt save. When I reopen it, it has the original data and not what I added. Please, could someone give me some insight into what I'm doing wrong This is the code they provide to save ...Show All
Visual C++ How do you define windows version for compiling? & run from VS?
How do I say what version of Windows I want to use when I make a build Is it possible to have it work for multiple versions (98SE, 2000, ME, xp) Secondly, how do I launch an executable from within the VS IDE Thanks! Code built with VS2005 should work on all the versions of windows you mentioned unless you are using a specific Windows API (in your code) that exists in one version but not the other. As for launching an executable through the IDE, just press F5. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Express Editions TreeView question #3
Hi Making progress, but slowly. Current problem is trying to use a property as shown in the system help (shown below). When I try to use this to get the collection of checked nodes I get an error that says: CheckedNodes is not a member of 'System.Windows.Forms.TreeView'. Everything I have read points to this as being the way to get the collection, but yet, in the final analysis it doesn't do it! I suppose this problem is related to the fact that it says Namespace is something to do with Web controls. Question is: how do I get a collection of Checked checkboxes from my form based TreeView Do I need to iterate through and collect them ...Show All
SQL Server Reusing package configuration file across all packages in a solution?
I have 5 packages in a solution. For 1st package, I add a package configuration file (xml) named common.dtsConfig containing only Database Connection configurations. For the same package, I add another package configuration file names first.dtsConfig containing configurations specific to 1st package. Now for 2nd package, when I reuse from existing package configuration (common.dtsConfg) with same name, it allows me to do that. I also create a package specific configuration file for 2nd package. And so on for all 5 packages. This works fine for development. If my database user/password changes, I edit onyl one file i.e. common.dtsCo ...Show All
Visual Studio ClearCase Integration with VS.NET 2003
I installed Visual Studio .NET after I installed ClearCase. Therefore, ClearCase hasn't properly integrated into VS .NET. VS only recognizes Visual SourceSafe, which I don't use. I heard that uninstalling then re-installing ClearCase with VS .NET already installed will allow ClearCase to properly integrate into .NET. But, the ClearCase installation takes a lot of time, and then there are all of the development views to download!!! Does anyone know of another way to get VS .NET to recongnize ClearCase Thank you! Hi Laurent, Can you check whether you have an entry for Clear ...Show All
