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

Software Development Network >> Christian Sparre's Q&A profile

Christian Sparre

Member List

LOTG
Ben Taylor
Madhu Gandhi
Tobias Boehler
Kris Nye
narend
Martinp23
A Bodnar
NoEgo
ananta
Gladiola
idos
SimonS_
simon burgess
Cathie 64
alex77
Snyper_Vash
JWill
Kanhaiya
Joanne Sobryan
Only Title

Christian Sparre's Q&A profile

  • Visual Studio Team System Should I use Windows Server 2003 R2?

    I'm aboiut to install Windows Server 2003 in order to install TFS on top of it. I'm just using the "standard" edition of Windows Server 2003, but should I install the "R2" edition I think it's "Release 2" and just the successor to plain ol' Windows Server 2003. Any reason why I don't want it I'm just looking for simplicity since the install is to a Virtual PC for my use only anyway. Thanks, Ron We've tested with both, but if you're trying to keep things simpler, I'd use the "regular" (non-R2) version of Windows 2003. It's not that R2 won't work, but the pre-R2 version has gotten more testing (naturally, it was what we had available during our development). Now, since there are some ne ...Show All

  • Visual C++ Trying to change the menu fonts and dialog box to Arial in MFC

    Hi, We are trying to change the menu fonts to Arial in MFC i.e. changing the fonts of File, Edit etc options to Arial from the font set by default. I tried to do this in the OnCreate function by doing it this way NONCLIENTMETRICS ncm = { sizeof(NONCLIENTMETRICS) }; bool x = ::SystemParametersInfo ( SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, false ); if(x == false) DWORD d = GetLastError(); strcpy(ncm.lfCaptionFont.lfFaceName, "Arial"); strcpy(ncm.lfSmCaptionFont.lfFaceName, "Arial"); strcpy(ncm.lfMenuFont.lfFaceName, "Arial"); strcpy(ncm.lfStatusFont.lfFaceName, "Arial"); strcpy(ncm.lfMessageFont.lfFaceName, "Arial"); ::SystemParametersInfo ( SPI_SETN ...Show All

  • Visual Basic Go to next record in a form

    Hi I have a form where i get some data from a sql DB I have made the connection and so on in code I see one record in my form, now i want to make one(two) button with Next record , is theres some one there can just show me some of the code i have made this in vbscript on a internet page, now i shall cout the records an son on but how to make this button to work i don't know Regards Alvin If you are using a binding source on your form then: Me . TestBindingSource . MoveNext () An easy way to implement data navigation is by dropping a BindingNavigator control on your form...this will give you a menustrip with position, first, next, previous, last and new buttons already configured ...Show All

  • Visual Studio Team System Download Links for coming Updates to Documentation

    would it be possible to get download links to the current documentation (chm files) for VSTS4DBP as they are updated before RTM Both for VSTS4DBP and API's. I'm on the road quite a bit in the next week(s) and will not have online access much of the time. Since you have indicated there will be several updates before RTM I would like to have access to them offline. Thanks, Alle Alle - Just to be clear what you are asking: you'd like us to provide a download of the updated versions of the CHM files I presume you mean the updates that occur after the version of the CHM files that shipped in CTP7 (which I think match the online MSDN version at the moment). Our next updates won't ...Show All

  • Software Development for Windows Vista Missing Windows component

    Hello, On Vista RC2 without Flash, after I close my app, I get this message titled "Program Compatibility Assistant": ... "This program requires flash.ocx, which is no longer included in this version of Windows." I don't want this message to appear. My app detects whether Flash is installed or not. BOOL IsFlashInstalled() { SafeOleInit(); // return AfxGetThreadState()->m_bNeedTerm || AfxOleInit(); CLSID clsid = CFlashActiveXControlBase().GetClsid(); CComPtr<IClassFactory> pFactory; return SUCCEEDED(CoGetClassObject(clsid, CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, NULL, IID_IClassFactory, (void**)&pFactory)); } If Flash is not installed, the function above properly returns FALSE, and Vis ...Show All

  • SQL Server filter one one dataset with values in another dataset?

    Hi, I have two datasets in my report, D1 and D2. D1 is a list of classes with classid and title D2 is a list of data. each row in D2 has a classid. D2 may or may not have all the classids in D1. all classids in D2 must be in D1. I want to show fields in D2 and group the data with classids in D1 and show every group as a seperate table. If no data in D2 is available for a classid, It shows a empty table. Is there any way to do this in RS2005 Put everything together in one single dataset, group by classid. Use a left inner joing for the dataset. It's a little technical but it can be done. ...Show All

  • Visual C# What is the maximum literal address for a local file?

    I thort it was 255 but when tried I found it only == 248 CHAR full LITERAL filename & path string length!!! How do I determine what the user can enter before submitting it to the OS as the intended filename Well Gabriel and Peter I find myself back to square one! Here's a straightforward catagorical question for you both. How do I translate userDatalength = systemMaxFilename.length-currentFilename.length; Basically I just need the jargon to convert my logical idea into GeekSpeak! A sad lacking in the Visual Studio 2005 Express edition me thinks. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering based on distance and subsets

    Hi, Im trying to find out two things about rendering based on distance. As i understand it the best way to render a scene is draw the objects closeset to the camera last and the same with the objects subsets. 1) Is the best way to check the distance of a subset from the camera to send a ray from the cameras position to the subsets position and use the intersect information for the distance 2) Is the best way to render the scene to build the list of objects inside the view frustum, sort based on distance and then render. Thanks for any help, -Dave A ray will be too expensive as you need only sort by the Z/depth distance. A sorting based on the “real” distance between the eye point and the object ...Show All

  • .NET Development Object reference not set to an instance of an object.

    I have now got my xml reader working but only when i remove one of the lines from my resultant xml file < xml version="1.0" encoding="utf-8" > If I manually remove this line and then save my file it works ok. the scenerio: A user enters a reg no eg "D1ger" this is then passed to a string and converted into a Url. The information that comes back from the server then gets saved as an xml file. (3rd party subscription service). This then gets read through and placed into text boxes once the user agrees with the data is update to SQL Server. the following is an abstract of the code used: 'declare varibles Dim regno1 As String regno1 = RegNoTxt.Text Dim VRM1(1) As Str ...Show All

  • .NET Development How about constructors that are selfaware?

    I ran into a solvable problem that led to the following consideration: why not allow a return null from a constructor There maybe times when the state of a system may not allow the instantiation of an object. I posted the following on the Code Project: http://www.codeproject.com/script/comments/forums.asp msg=1591017&forumid=1650#xx1591017xx What do you think Hi Giancarlo Yes, there are imporant side effects to using partially constructed objects. You cannot assume any member variables have been initialized yet, you cannot assume the security state or culture. Consider the Dispose pattern. Inside your Dispose method, you should be freeing any unmanaged resources. You cannot assume they have been initialized, so you'll ...Show All

  • SQL Server How to select all columns except one column from a table ?

    Hi I can't figure out how to do this and hope you guys can give me a hint.... I want to select all columns from a table except one column: For example, A table has 20 columns : {1,2,3.....20} To select all of columns in a table, i could use select * from table; However, I want to select only column {1....19} I do not want to type the column names in one by one in the SQL query, is there a way to achieve this in a short form of Select Thanks, Naming the columns one by one in the select list should be the prefered way to select data. It makes reading as well as error searching much more easier. There is no eay to exclude one column from the * selection. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • SQL Server MDX : WHERE Greater than year 2004

    I have an MDX dataset auto-created by SQL 2005, I want to restrict it to anything greater than year 2004. I could get the single year 2004 by replacing ALLMEMEBERS with &[2004] : (i.e. [Incident Date].[Year].&[2004]) but don't know how to do GREATER THAN in MDX. WITH MEMBER [Measures].[ParameterCaption] AS '[Incident Date].[Year].CURRENTMEMBER.MEMBER_CAPTION' MEMBER [Measures].[ParameterValue] AS '[Incident Date].[Year].CURRENTMEMBER.UNIQUENAME' MEMBER [Measures].[ParameterLevel] AS '[Incident Date].[Year].CURRENTMEMBER.LEVEL.ORDINAL' SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Incident Date].[Year]. ALLMEMBERS ON ROWS FROM [Incid ...Show All

  • Windows Forms Progress Bar Redraw With New Value

    I am trying to write a program which calls a new thread to do the bulk of the processing. I have set it up so that the main class has a progress bar which updates as the program runs. The only problem is that the progressbar stops working once the program loses focus on my computer. Also, rather then updating the progressbar on a timer, I would prefer if the new thread could update it every time it updates 100 records. Is there any way to fix this problem, and is there any way for the new thread to tell the original when to do the update A snippet of the code I am using is below: Thanks, Russ Original Thread: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ private void button1_Click(object sender, ...Show All

  • Visual Studio srssafe.ini on server

    Hi, I have installed sourceSafe on a win XP machine that I use as my sourcesafe server, then I created a database in c:\vssdb. I've shared the folder (c:\vssdb) and I wrote a c# app to access the repository from a different host, but the problem I'm having is that I need to give the user who connects from a different host the right to modify the database folder . could you tell me if this is the way it should be or may be I'm missing somthing Thanks Nobl Also see these articles for setting share permissions and locking down the scc database. http://msdn2.microsoft.com/en-us/library/ms181068(VS.80).aspx http://msdn2.microsoft.com/en-us/library/ms181061(VS.80).aspx Alin ...Show All

  • SQL Server MDX to get member names?

    I want to get a list of member name for an attribute, without accessing the fact table, for speed. I can write a statement like "select {Measures.SalesAmount} on columns, {CostCenter.Members} on rows from MyCube", which will give me a list of Cost Centers going down. Is there a way to get this same list, but without accessing the fact table, with the hopes that the query will execute faster Thanks for any assistance, Ernie Assume the CostCenter attribute belongs to the dimension [CCDim] select CostCenter.members on rows from [$CCDim] ...Show All

©2008 Software Development Network