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

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

SDH2007

Member List

Vassilux
StarsFire
Tigerwood2006
software tester
FWX
REspawn
ggsubscribe
David N.4117
Steve Olson
Prince17
KimberlyL
Kim Madsen
Darren Baldwin
Joe0532
RayPowers
tshah21
Mainiac007
Javier Martinez
xpyrofuryx
Derek Nedelman
Only Title

SDH2007's Q&A profile

  • Software Development for Windows Vista Inconsistent File System Enumeration with FindFirstFile / FineNextFile

    I'm working to get a commercial application to run on Vista. Among the many broken things, the first one I encounter is a crash due to a stack overflow due to a recursive function that goes bad. The app enumerates files in various places using FindFirstFile | FineNextFile in a recursive function (C++). I'm using retail Vista Ultimate with VS 2005 sp1 plus the VS Vista update beta. What I see in the debugger is that when I start out enumerating drive "c:", I come to the "Documents and Settings" folder and recurse into it. When I get to "c:\Documents and Settings\All Users\Application Data", FindNextFile then returns "Application Data" over and over again and I recurse into "Application Data&qu ...Show All

  • .NET Development EXE (client PC) don’t show null values

    I'm developing a c#.net application using AdabasD ODBC. I've installed the exe in 4 PCs and is all right ... except in one that doesn’t obtain rows from row tables that contains 1 or more null values. Any idea THANKS !! I suspect you are using some sort of a DSN (user/system/file) to make the ODBC connection. It’s possible that the DSN on the problematic machine is different from the others. For instance the SQL Server driver has a setting ANSI_NULLS that configures that exact behavior. I’m not familiar with the Adabas driver but it may have a similar setting. Zlatko Use ANSI nulls, paddings, and warnings check box Specifies that the ANSI_NULLS, ANSI_WARNINGS, an ...Show All

  • Visual C# How do I round a decimal to 2 decimal places?

    Hello I have this code: while (rdr.Read()) { gotPrice = (rdr.GetDecimal(0)); } rdr.Close();     ....but I can't work out how to properly round the result to 2 decimal places before assigning the variable gotPrice I get this as example: 54.9700 and I'd like gotPrice = 54.97 Thanks for your time RizwanSharp , I was testing the sample and it seems that String .Format( "{0:F2}" , will round too. not just trim. would you please review, I could be wrong , just trying to make sure I understand this right thank you for your help ...Show All

  • SQL Server The first axis of the query should not reference any dimension other than the Measures dimension?

    Hi, The first axis of the query should not reference any dimension other than the Measures dimension I am writing a MDX Query in reporting services and I cannot use any dimension other than the Measures dimension in the first axis. When I run this query in SQL Server management studio it runs well . Why not in Reporting Services Note that I'm using the SQL Server Standard .The error is : ------------------------------ ADDITIONAL INFORMATION: The query cannot be prepared: The query must have at least one axis. The first axis of the query should not have multiple hierarchies, nor should it reference any dimension other than the Measures dimension.. Parameter name: mdx (MDXQueryGenerator) ------------------------- ...Show All

  • .NET Development socket receive question

    Hi, I need to build a client-server tcp socket program, the client needs to send some commands to the server and needs to wait there for the response from the server. I am thinking of using sendto&receivefrom to do this synchronized call. But the server side will send some data to client irregularly, so I need to have something listerning, I think I must use BeginReceive to receive the data from this socket. So the problem is how to mix synchronize and asynchronize during receiving. I am a socket newbie and am confused with this case. Would you please to clarify it to me and give me some hints how to implement it Thanks a lot. Thanks, Frank & Rizwan, After reading your posts, I got ...Show All

  • Windows Forms Possible to remove "SKIP" option from ClickOnceUpgrade?

    Hello Is it possible to remove the ship button in the click once upgrade dialog We cannot let the users run with an old version. We have a buildin versioncheck that display an errormessage and exit the program, but the next time the user start the program he will not get an upgrade dialog at all. Hi, you're probably referring to the Skip button Set the minimum required version for your application, before publishing it [you'll find this setting under Project properties, Publish tab, Updates... button]. Andrej ...Show All

  • Windows Forms Nested events

    I have an win forms application that contains three user controls. There is a one to many relation between control B and A, a one to many relation between control B and C, and a one to many relation between control C and the form. Control A contains an event that needs to be raised up to the form. To accomplish this, I created an event in both control B and C. For example, There are 2 "C" controls with 7 "B" controls, and 0 to many "A" controls within B. All controls are being dynamically created. Controls A, B, and C are instantiated at run time, so my event handlers all wire up to a single delegate b_onchange, rather than b1_onchange, b2_onchange etc.. What appears to happen in this case, is when the event ...Show All

  • Visual C++ Errors in Standard Header files while compiling the OpenH323 pwlib v1_11_0 in Visual Studio 2005 development environment

    Hi all, I am trying to compile the open source h323 stacks in Visual Studio 2005 environment. But i am gettting the following errors in the standard header files. Can someone please help me in overcoming this problem 1>------ Build started: Project: pwlibce, Configuration: Release STANDARDSDK_500 (x86) ------ 1>Compiling... 1>assert.cxx 1>E:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\include\x86\winver.h(157) : error C2146: syntax error : missing ';' before identifier 'DWORD' 1>E:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\include\x86\winver.h(157) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>E:\Program Files\Windows CE Tools\wc ...Show All

  • Software Development for Windows Vista Inheritance from custom activity

    I wish to make a custom activity that inherits from another custom activity. My first activity "Activity1" inherits from System.Workflow.ComponentModel.Activity. My second activity "Activity2" should inherit from "Activity1". In the designer I attempt to change the "base class" attribute of "Activity2", but for some reason I cannot choose "Activity1" to be my base class. In other words, the <Current project> folder is empty and I can only choose from Referenced Assemblies. If I put "Activity1" in another Workflow Activity Library and reference that library from my other project it seems to work just fine. I do not however understand why I can't inherit from activities in my current project, and I would be very happy if ...Show All

  • SQL Server Internal error: An unexpected error occurred (file 'pfstore.cpp', line 794, function 'PFSto:CopyRecords').

    Analysis Services 2005 throws this error when I try to run a MDX query on a session cube: Internal error: An unexpected error occurred (file 'pfstore.cpp', line 794, function 'PFStore::CopyRecords'). Does anyone knows something about this error Is this error fixed in a released service pack Thanks Could you please install Service Pack 1 for SQL Server 2005 and try running the scenario again --Artur ...Show All

  • Visual Studio 2008 (Pre-release) Quick question, XAML to C#

    How do i write this in C# < Control Template = " {DynamicResource extrastuff} " /> You may need to register the Name of your Control. Application.Current.MainWindow.RegisterName(Control.Name, Control);   ...Show All

  • Visual Studio 2008 (Pre-release) AJAX-like Data update in Loose XAML

    I am wondering if I can do this in loose XAML. I have a simple XAML file that implements a number of text displays, which are data bound to an XmlDataProvider. The XmlDataProvider points to an aspx file, that, when requested returnes some data in XML form. Both the XAML file and the aspx page are sitting on a website, say http://localhost/test The XAML File: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Page.Resources> <XmlDataProvider x:Key="DataUpdates" Source="http://localhost/test/GetSomeData.aspx"/> </Page.Resources> <Canvas> <Rectangle Fill="Red&q ...Show All

  • Visual C# get key from hashtable

      How to get hashtable's key and index  if I know the value if (hashtable.ContainsValue("default"))   Thanks, Hi, if you want to go from a value to a key, I believe the only way you can do it is to loop through the Keys collection, accessing each value of the hashtable until you get the value you want, at which point you then know the associated key. Mark. ...Show All

  • Windows Forms The DateTimePicker is Ridiculous!

    Why doesn't the DTP allow you to select a Date AND a Time at the same time Instead, (from what I see) you have to create 2 DTP controls: One to select the date and another to select the time of day. Why can't they be on the same popup similar to how MS Access would let you select both Please somebody tell me I'm wrong and just missing something. I've been Googling around to try and find a custom one, but they are few and far between. Aren't there other people with this problem I thought this was basic stuff... If anyone knows of any custom controls that do this, I'd be greatful if you let me know. Thanks! Hello All. Igore99: You can have the DateTimePicker control select both the dat ...Show All

  • Visual Studio 2008 (Pre-release) How is localization supposed to work in a big XAML application?

    I have followed the instructions in "Localize an Application", and have as an example a csv-file with 14903 elements, where I guess about 100 is supposed to be translated. The rest is Gradients, Pens, etc, etc. Here is an example of one of the many source files, and its LocBaml output: <ResourceDictionary x:Uid="ResourceDictionary_1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "> <LinearGradientBrush x:Uid="LinearGradientBrush_1" x:Key="WindowBorder" StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStop x:Uid="Gradie ...Show All

©2008 Software Development Network