Software Development Network Logo
  • .NET Development
  • Game Technologies
  • Smart Devicet
  • Microsoft ISV
  • Audio and Video
  • Visual C#
  • Visual FoxPro
  • Visual C++
  • SQL Server
  • Windows Forms
  • IE Development
  • Windows Vista
  • VS Team System
  • Visual Basic
  • SharePoint Products

Software Development Network >> Thomas S. Andersen's Q&A profile

Thomas S. Andersen

Member List

RayCan
GS80
MelAnne
Carl Janssen
JR-J
waheyluggage
S.Mark
bigshiny90
Ace Card-Man
Cezary
Fahad349
Milzit
Uncle K
bernb
sph3ra
Caolan ODomhnaill
maina
hazz
Enkht
DamsDev2007
Only Title

Thomas S. Andersen's Q&A profile

  • Visual Studio 2008 (Pre-release) Free WPF Library

    I have compiled all of my reusable WPF controls and classes into one DLL and wrote a brief article about it on CodeProject. You can download the code (plus demo apps) from the article. If you're interested in having some free WPF goodies to play with: http://www.codeproject.com/useritems/WPFJoshSmith.asp Enjoy! ...Show All

  • Visual Studio Team System Database Validation Rules

    I see built-in database validation rules that can be used with webtests. My quick try to use them the way I use the other validation rules failed, I get an error "DatabaseFieldValidation Validation Object reference not set to an instance of an object. Column=TestColumn, ExpectedValue=Test, WaitTime=15, Retries=1, DatabaseServer=servername". I could not find any document which explains them, can anyone direct me to the documentation or any idea on why I get this error Can these be used with Webtests that test webservices No, I dont have any third party validation rules that I am using. I only validation rules I am using are the inbuilt Visual studio validation rules and a couple of the custom valida ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Intersection test problems

    Hello, I am trying to get our hierarchical BV culling working properly and I'm experiencing some odd behavior with the BoundingFrustum intersection test. The problem is that when I test my BV's against the frustum the test is not accurate. I am testing spheres and AABB's against the frustum but let's just talk about spheres as I have the same problem with every primitive. What I have found is that the accuracy depends heavily on the setting I use for the FarPlane when we call Matrix.CreatePerspectiveFieldOfView. When I set the FarPlane to a big number (like 4700 for example) the camera has to be almost looking in the opposite direction to the sphere in order to get the sphere to fail the test. If I set it to a very small numb ...Show All

  • Visual C# project namespace issues

    I have a project that was working fine. I made some significant changes to the project, and then started getting an error saying some objects don't belong to the namespace, even though they are in the same project and have the namespace at the top of the class. It appears some pointer got messed up and now only newly added objects appear in the autolist members for the namespace. In fact, some objects required that I preceed things (such as Settings) with the namespace, others don't like it. They are supposed to all be in the same namespace. Any idea how I can fix this Hi, You can do the following steps: Right click the project and set the default namespace Perform a Replace by setting the fol ...Show All

  • Software Development for Windows Vista Questions and comments about the DirectShow BaseClasses

    Hello everyone, I have 3 comments about possible bugs in the DirectShow BaseClasses. It is entirely possible that these are not bugs, and in that case, I would be grateful if anyone would correct my misunderstanding. The first bug: when a source stream derived from CSourceStream fails in OnThreadCreate, it is not called on any subsequent attempts to play the graph. This occurs because the thread handle remains open. Proposed solution: in CSourceStream::Active() replace the error check following the call to Init() with: if (FAILED(hr)) { Close(); return hr; } The second bug: when deriving from CBaseReferenceClock, you are expected to override GetPrivateTime() to return the current actual time. This function needs to keep track ...Show All

  • Visual C# How do I import a variable that is exported from unmanaged dll?

    I am interfacing an unmanaged dll and its has a couple of constant variables I need to import. I am trying to use DllImport but i get an error saying its for methods only. By far the easiest way to do this is to write a wrapper function that just returns the variable value. In case that is not possible, you can do something like this: in C++: extern "C" const int __declspec(dllexport) Variable = 10; in C#: [DllImport("kernel32.dll", SetLastError = true)] internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName); [DllImport("kernel32.dll", SetLastError = true)] internal static extern IntPtr LoadLibrary(string lpsz ...Show All

  • Visual Studio Express Editions how to select all textbox in the form?

    hello im making a simple registration form and i want to clear all the text in the textbox after the information is added foreach ( TextBox t in Form1 ){ t.text=null; } Error 1 'WindowsApplication1.Form1' is a 'type' but is used like a 'variable' thanks for the help should be: foreach(Control curControl in this.Controls) { if (curControl.GetType() == typeof(TextBox)) { ((TextBox)curControl).Text = ""; } } ...Show All

  • Smart Device Development Printing Documents from a Windows Mobile Application

    Dear ppl, Is it possible to print a text file in .NET Compact Framework from a windows mobile application HP offers this: http://www.hpdevelopersolutions.com/apdk.cfm - this is an SDK for native C/C++. If you want a managed SDK, go with Field Software's PrinterCE.NetCF SDK . ...Show All

  • .NET Development Serial I/O Problem

    I have an issue regarding the following code extract:- string s = string .Empty; if (_Port.BytesToRead > 0) { byte [] read = new byte [_Port.BytesToRead]; int bytesRead = _Port.Read(read, 0, _Port.BytesToRead); // Sometimes get an exception s = System.Text. ASCIIEncoding .ASCII.GetString(read, 0, bytesRead); } The above code is taken from a real-time application that interacts with a GSM Modem. The application uses the Serial Port class in .NET 2.0. Occassionally though I get an exception on the second line in the if block. The problem is that between that statement and the previous one, the value of BytesToRead changes, so the size of the byte array reserved is no longer adequate. ...Show All

  • .NET Development How to create AppDomains when assemblies reside in IsolatedStorage?

    The project entails a server that hosts the running of user code in sub AppDomains. A specific directory in a non-roaming IsolatedStorageFile contains the assemblies the user code references. For file system security reasons, it is desirable to be able to point the new sub AppDomain's base directory to a sub directory of the isolated storage file. Is there someway of doing this - without copying files to the actual FS For example, by refering to the actual ISF directly via:<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\<ISFName> How would the ISF's file name be determined in this case More generally, a furture requirement for the server is to allow cabinets or zip archives to be us ...Show All

  • Software Development for Windows Vista Fault Handler and Bindable Properties

    I'm using the June CTP of WF. After I promote Bindable Properties on my FaultHandler I'm getting a weird popup in the VS environment. DependencyProperty 'Fault:System.Workflow.ComponentModel.FaultHandlerActivity' does not have an associated CLR property. All non-attached Dependency Properties should have a corresponding CLR property. Any ideas I'm trying to log Exceptions that happen in an EventHandler.  I was trying to put an faulterHandler that caught all generic System.Exception and then write to the EventLog and set the state back to the current state.  I figured that the only way I could see the exception from my EventLogWrite activity was to promote the faulthandler as a ...Show All

  • Visual Studio Express Editions LAN Chat Server

    Friends, I want to make a chat server using VC++. Please help me out. Give me some kind of link for tutorials on network programming in VC++. esp socket programming Ronak hi Ronak, I found one in MSDN: windows sockets for network programming I believe there are much much more materials available on the internet, search it in msdn/google and hopefully you will get everything you need to know to get started. good luck rico ...Show All

  • Windows Forms Help! "Concurrency violation: the UpdateCommand affected 0 of the expected 1 records"

    Help! I have a Access 2003 Database that holds info like "customer name" "phone number" etc. When I enter that info and then click new record then go back to the previously created record and add some more information in the other text boxes ("address", "age", etc) I get the following error: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records and when I click on details then row, I get this: '((Help_Desk_Center.HDC_DataDataSet.Table1Row)(((System.Data.DBConcurrencyException)($exception)).Row)).Customer_called_on' threw an exception of type 'System.Data.StrongTypingException' What is all that and how do I fix it, get around it, ignore it, or what ever I need to do Thanks for ...Show All

  • Windows Forms Docking fails or Win32Exception occurs with too many nested controls

    I had a problem with one of my C# applications when moving it to a 64-bit machine. A button which was dock filled and nested within a few controls would not resize correctly. I have narrowed down the problem and the following code will reproduce the issue on a 64-bit machine, changing the NestedPanels constant to 32 will reproduce the issue on a 32-bit machine, and changing the NestedPanels constant to 47 will cause a Win32Exception on both 32 and 64 bit machines: using System.Windows.Forms; namespace WindowsApplication10 { class Form1 : Form { private const int NestedPanels = 13; public Form1() { Button btn = new Button (); btn.Dock = DockStyle .Fill; Control child = btn; ...Show All

  • Visual Studio Tools for Office InnerObject property is not available any more

    In one of the PlugIns I made for Office2007 Word AddIn and Office2007 Outlook AddIn I used to make following a check: If TypeOf OfficeAppObject.InnerObject Is Microsoft.Office.Interop.Word.Application Here OfficeAppObject was variable ThisApplication passed from one of the Office Add-ins created using VSTO v3. Now if I pass ThisAddIn.Application to PlugIn I can not make this check as InnerObject i s not available. Should I use straight check on Application now It is not mentioned anywhere that InnerObject property is not available so I am not sure that this is correct approach. ...Show All

©2008 Software Development Network