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

Software Development Network >> Tom25's Q&A profile

Tom25

Member List

thukralz
Freddo
FedorSteeman
James Cornell
William Watts
mruniqueid
etang
Jamie Clayton
Suneel VLN
MrOctree
Frances83
ec
TBotnik
siyou
swathi_challa
sticksnap
SaurabhJain
PaulDev
Peter Freeman
Nordy
Only Title

Tom25's Q&A profile

  • .NET Development Data Access Layer with SQL Server 2005 and ASP.NET 2.0

    I have a web site with a main area for all users and two subwebs (virtual directories) for user groups. My question is: When creating a data set should I duplicate the .xsd file in each of the subwebs Is there another way to use the same .xsd file for the entire web and each of the subwebs Should the data set be pulled out of the home web and moved to a seperate class library Am I trying to kill a fly with a hammer Thanks for your replies. I recommend you to read these tutorials about three-tiered architectures with ASP.NET at http://asp.net/learn/dataaccess/default.aspx tabid=63 They are very high quality articles written by the Scott Mitchell. ...Show All

  • Windows Forms Listview Column Widths

    Hi, I have inherited a program with a listview with various columns, only some of which are visible to the user. Problem is that the user is able to resize the columns of the 4 columns they can see, but what is happening is that they occasionally get to see the data of the columns with width set to zero. Know I haven't explained that well, but basically what I am after is a way to "lock" the column width of certain columns but not others. Any ideas gratefully received, or confirmation that it cannot be done , if that is the case... but then I will have to bash my head against the wall!!! Thanks       You can do it by handling the ColumnWidthChanging event: Pr ...Show All

  • Visual C++ Why doesn't PDH work?

    Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All

  • Visual Studio 2008 (Pre-release) Table per type (subclass) inheritance

    Hello! First of all I would like to congratulate you guys for the great job. Having this database configuration, how can I create a table per type (subclass) mapping without discriminators Employee and Customer "IS A" Person, and Person have a FK (SomeTableId). Employee and Customer entities inherits from Person. I've looked at another post but don't fit with my needs. CREATE TABLE Persons (     PersonId INT NOT NULL ,     SomeTableId INT NOT NULL ,     [ Name] NVARCHAR ( 50 ) NOT NULL, ) CREATE TABLE Employees (     PersonId INT PRIMARY KEY NOT NULL,     Sa ...Show All

  • SQL Server Overlay of textboxes are not rendering properly

    In the page header I have a rectangle that has 2 textboxes on the same line and both are the full length of the page. One textbox has text centered and the other has text right justified. When I render report in Studio or print it, the text appears on the same line and justified like I want, but when the report is rendered when I call the report by URL, the textboxes wrap, like it's taking the width of each textbox in account. Has anyone seen this Any suggestions on how to overlay text on the same line and the text keep their own individual characteristics I am having this problem too. I have a template with a standard heading including one image and 4 textboxes. The template includes a boolean parameter ...Show All

  • Software Development for Windows Vista Workflow Instances persisted by different hosts

    Hi, For example, I have 3 Winform Workflow host applications (with 3 different workflows also). They all using the SqlPersistenceService. Now I want to add a function to each of them to check the persisted workflow with the routine like this Dim instances As IEnumerable(Of SqlPersistenceWorkflowInstanceDescription) instances = PersistenceService.GetAllWorkflows Dim instance As SqlPersistenceWorkflowInstanceDescription For Each instance In instances System.Windows.Forms.MessageBox.Show(instance.WorkflowInstanceId.ToString) Next Everything work fine. But if I added the the to check the Status of the workflow (with StateMachineInstance) or try to load the workflow with : Dim Wfi As WorkflowInstance ...Show All

  • Visual C++ Help with twister

    I have been looking on the net for random number generators and found something called "Mersenne Twister" on this page: http://en.wikipedia.org/wiki/Mersenne_twister . And there you find som pseudocode that I don't fully understand. For example, how do I write this line in C++ : MT[ i ] := last_32bits_of((69069 * MT[i-1]) + 1) And from the second function, how do I write the following code in C++ y := 32nd_bit_of(MT[ i ]) + last_31bits_of(MT[i+1]) Is this the most efficient way of checking if a number is even : if(x % 2 == 0){do something...;} The most confusing parts here are "last_32bits_of", "32nd_bit_of" and "last_31bits_of". I don't really understand what that mean at all. I a ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. what comes with XNA

    Is XNA a complete set of tools physics enigine, graphics eningine, coding software, all put together or just a compiller From the FAQ : Q: What is XNA Game Studio Express A: XNA Game Studio Express is a new offering, targeted at students and hobbyists for game development. XNA Game Studio is based on Visual C# Express 2005 and lets developers target both Windows and Xbox 360. XNA Game Studio Express contains the following: The XNA Framework, a set of managed code development libraries which will allow game developers to be more productive when creating games for Windows and the Xbox 360. The XNA Framework Content Pipeline which is a set of tools that allow developers to more easily incorporate 3D content into their ...Show All

  • Windows Live Developer Forums Set scalebar to KM in 3D mode

    It doesn't look like: VEMap.SetScaleBarDistanceUnit( distanceUnit ); works in 3D mode Any work arounds known at this stage John. I can confirm it. If my VEMap.SetScaleBarDistanceUnit( distanceUnit ) where distanceUnit is in km.... this must persist when I change to 3D mode and viceversa. Thanks ...Show All

  • Visual Studio Express Editions checkedlistbox wont single select

    i have a checkedlistbox with five items, at run time i can select all. the selectionmode property is set to single. Paul it will let you "CHECK" more than one....however if you click on the string next to the check box only one line at a time will be highlighted....that is what the selection mode will do for you.... ...Show All

  • Visual Studio 2008 (Pre-release) how to access visuals created by streamGeometry in visualCollections

    How can we reference a visual/dependencyobject(created using streamGeometry) stored in visualCollection after the hittest ...Show All

  • Visual C# Listboxes - drag drop & reorder

    Hi, I'm new to C#. Edit: Nobugz helped me get this worked out in VB2005 and need to convert to C#. Maybe it can benefit everyone on this forum. Listbox1 is source & is filled with items. Listbox2 is target where items can be dragdropped from Listbox1. Listbox2 item selected can be reordered within Listbox2 by dragdrop. Here is the VB2005 code. Appreciate any help... Thanks.   Imports System.Drawing.Text Public Class Form1   Dim textcursor As Cursor   Dim dix As Integer = -1   Sub drawcursor(ByVal text As String, ByVal fnt As Font)     Dim bmp As New Bitmap(1, 1)     Dim g As Graphics = Graphics.FromImage(bmp)     Dim sz As SizeF = g.MeasureString(text, f ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering To Textures in Beta2

    I used Texture2D's heavily with the usage RenderTarget, however in Beta 2 its like a whole new API. I understand that Surface no longer exists and RenderTarget/2D should be used. The problem is, the whole mentality is backwards compared to what im used to. From what I see I should create a RenderTarget2D and set that as a render target, then do rendertarget.GetTexture() if I want to set it. Thats fine. However, how do I copy between render targets There is no StretchRect or equivelent function I can see, which I used alot before. Surely I dont have to go about getting a texture, setting it, creating a 'copy' effect, setting a new render target, resolving the new render target just to copy from one to another Is there no alte ...Show All

  • .NET Development Dtatgridview

    Is there a way to get the current selected row and swap with the row - 1. So just swap the current row with the row right above it. please provide a code sampile Thank you! Cisco The correct forum for such questions is Data Presentation Controls at http://forums.asp.net/ . Best regards, Anton ...Show All

  • Connected Services Framework CSF 3.0 installation problem, Create DB fails

    Hi, I'm trying to install CSF Server but the installation program run into a problem during the database creation part, and I get an error message saying: " Error 26201. Error -2147217900: failed to create SQL database: CSFProfileIntegrator, error detail: CREATE DATABASE failed. Some file names listed could not be created. Check related errors..." CSF and MS SQL 2005 are installed on different servers. When I manually try to create a database from the CSF server this works fine. I have downloaded the most recent CSF server software from MSDN. Any ideas what I'm doing wrong, or where I can find logfiles with more detailed error descriptions... Geir-Ove Provide th ...Show All

©2008 Software Development Network