Art Hill's Q&A profile
.NET Development 'FromObject' is not a member of 'System.Nullable'
I tried to build a project that ran flawlessly in vs 2005 beta2. I did two searches before I submitted this post. However the compiler generated 6 errors in the dataset designer. All were of the type error BC30456: 'FromObject' is not a member of 'System.Nullable' in similar if blocks: If ((returnValue Is Nothing) _ OrElse (returnValue.GetType Is GetType(System.DBNull))) Then ...Show All
Visual C# Comparing table data in a dataset
I have two tables in a typed dataset. Table A is populated from an LDAP query (names of computers in our enterprise). Table B is populated via a tableadapter from an SQL database that contains the results of a prevoius LDAP query. I need to compair Table B to Table A, remove records from B that no longer exits and add records to B that have been 'discovered'. Can I compair these tables inside the dataset or do I need to do something else with the data first I am just cutting my teeth on ADO.NET so any direction would be greatly appreicated... Thanks! The DataSet.Merge should do what you wan ...Show All
Visual Studio Team System TF 30177 Team Project Creation failed
Hi, I have installed Visual Studio Team Foundation Server (Dual server deployment). When I try to create a project team, I get the following error TF 30177 Team Project Creation failed Message: Unable to connect to Windows SharePoint Services at VCORDEVTFS01. The reason for the failed connection cannot be determined at this time. The error log is as follows: .1/5/2006 11:30:35 AM | Module: Work Item Tracking | Thread: 11 | WorkItem Field Found: Name = 'Microsoft.VSTS.Common.Issue', Value = 'No' 1/5/2006 11:30:35 AM | Module: Work Item Tracking | Thread: 11 | WorkItem Field Found: Name = 'Microsoft.VSTS.Common.ExitCriteria' ...Show All
Visual Basic Best way to have a class have a value of "Nothing" if the constructor passed in is not valid
Using .net 2.0 how do I create a class that has a constructor like this simple example: Public Sub New (DriveLetter as string) ' Code to determine if DriveLetter is valid. 'If not class should return nothing. End Sub PJ's response is often refered to as a Factory Pattern for a class. In this case, you often hide the public constructor and require users to get a version of your class using the factory. To elaborate on PJ's code, you would have: Public Class MyClass Private Sub New (DriveLetter as string) ' Code to determine if DriveLetter is valid. 'If not class ...Show All
Visual C++ warning C4514 unreferenced inline function has been removed
I have an application that I'm attempting to port from VC++ 6.0 to VC++ 2005. In the part of the app that uses DAO, I keep getting hundreds of warning C4514 and cannot disable them with #pragma warning(disable: 4514) They just show up anyway. The part that does not use DAO works fine. The culprit seems to be #include <afxdao.h> Not only does it complain about hundreds of unused inlines in the DAO classes, it complains about my own unused ones. Other parts of the code work fine. Apparently, afxdao.h is somehow turning on the warning and not allowing it to be turned off. I have tried to put the #pragma before, after, and both to no ava ...Show All
.NET Development How Can I test if an object is serialized and how can i avoid a chatty Object
Guys,Trying to get to grasp with passing data between tiers using objects is proving very difficult with my knowledge and I tend to think that maybe I could just use "Dataset" I need an example of how to create an object and serialize it on DataTier and recreate the same object on a BizTier avoiding network trips "chatty" object. My attempts led to this .Which still create a chatty layer .Could you improve,suggest or advice A pratical example would be ideal rather then theory. my failed attempt: Public Interface IEmployee (of T) Function GetEmployeeByID( byval EmpID as integer ) as Bindinglist (of T) end interfac ...Show All
Visual C# Reading integers from a file
How would I read integers from a file and store them into an array I have tried numerous ways and so far no luck. There has to be a simple solution to this problem. Hi. This maybe is a way for doing such as thing. Maybe it is not the best way but you can use it as start. static void Main( string [] args) { StreamReader srNbrs = null ; List < int > lsNumbers = null ; Regex rxNumbers = null ; string [] saAux; int readedInt; try { srNbrs = new StreamReader ( "numbers.txt" ); } catch ( FileNotFoundException fnfe) { Console .Writ ...Show All
Visual FoxPro Need help adding a new auto increment integer field to a table
Hi I have a table that I want to add a auto increment integer field. I go into the database designer, Right click on the table I want to add the field to then select modify. Then I insert a field and give it the name client_id set the type to Integer (autoinc) it defaults to a width of 4. Then I tell it to index it accending. This works but on all the existing records it sets the field to 0. If I add a new record it does increment. My programmer added these fields to some other tables and they added a number and incremented it to all the existing records. What do I need to do to add the number to ex ...Show All
Visual C++ [setup-project] How to copy external Files (*.jpg)
Hi ! My Application needs besides the executable file a huge amount of images (about 1500, 3 GB). Ok. Since these images change quiet often, I do not want to embed them into my setup project statically. What I would prefer is to make the installer copy a directory into the target directory. Something like "copy .\images\*.jpg [TARGET_DIR]\" where "." points to the location where setup.msi lies. How can this be realized BIG THANKS FOR YOUR HELP IN ADVANCE!!! Oliver Demetz This is OT to this forum. It depends on the program you use to create your MSI. I use InstallShield and there I just create a new com ...Show All
Visual Studio Oracle with Crystal: "Failed to Load Database Information"
I've already deployed the Crystal .msi and installed the Oracle Client on the server, and still getting this message: Temp\temp_294ca6ef-60f1-4511-b5a5-c6986817b96d.rpt: Failed to load database information. I gave permission to the ASP.NET user in all the folders it needs, Oracle, Ora92 and Ora92/bin, Temp... In the development computer it runs OK, but in Production server its crashs! Someone can help me Any ideas will be quite welcome! Thanks in advance! Fernando Ruano. I can confirm that. Giving my IIS user read access to c:\oracle solved this problem. ...Show All
SQL Server Fuzzy Lookup problems
Hi everyone, Ive just started looking at the Fuzzy Lookup feature and i think i must be getting something fundamentally wrong. I have two tables - each contain different meta data representations for a set of potentially similar documents. The only chance i have of matching a document in table A to a document in table B is a common title field. However, manual input means that the titles may differ in both tables although they are potentially quite similar in most cases. In the lookup i get to specify the output columns from table B (Reference) which is fine, but i don't seem to get to choose the columns from table A that i would also ...Show All
Visual C++ .Net Framework
Hi, I have an application which I did not originally create. I develop it using Visual Studio 2003 - Visual C++.net. When I click on the configuration manager for my solution I can see that this platform, for said application is "Win32". I didnt think this was the case since my work (code) is developed compiled and run correctly using visual studio.net. Then i created a completely new project, visual c++ and chose the option "Windows Forms Application". Once this had set itself up I checked the configuration manager and it also told me "Win 32". Then I added a new project but this time in C# call ...Show All
Visual Studio Express Editions How to Access Child Methods from Mdi Parent at Runtime
I am trying to write an Mdi application where the user picks a layout option from a Parent menu. This selection displays the required number of Child forms in the required layout. Then the user picks from a number of feeds to populate the active child form. This Sub is one of a number of similar ones attached to menu items, in this case a single docked window is displayed (I have similar code for various numbers of forms and layouts). ...Show All
Smart Device Development CToolBar::_GetButton link error for ARMV4
I'm porting code developed for the PPC ARMV4 platform from eVC++4.0 to Visual Studio 2005. While trying to port a class that derives from CToolBar, I ran into a link problem involving the CToolBar::_GetButton function. The problem I'm having can be demonstrated using the simple class defined below: class __declspec(dllexport) CToolBarDummy : public CToolBar { public: void GetButtonTest() { TBBUTTON button; &nb ...Show All
.NET Development DataTable Constraints (why "DM2" = "DM²" ?)
MSSQL let me insert 2 rows, one with a PK = "DM2" and other with a PK = "DM2". For MSSQL those are two different primary keys. But when I try to fill a DataTable with those records of my Database I get a pk constraint exception saying that the value already exists Is there a way it can be fixed Thanks in advance, Sanyo. Sanyo, I can not repro this issue with framework v2.0. Which version of .Net framework are you using Is the PK column a Unicode column or a column with collation Thanks, Kevin ...Show All
