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

Software Development Network >> sam-pan's Q&A profile

sam-pan

Member List

Jeremy Lew
P Willy
Microsoft Visual
aabukar
Sébastien Nunes
Bumper
FloDEM
NeW2VB
LastHope
Dietz
davros51
Kea
Bulldog.NET
The Naked Programmer
Brett Shearer
RyanB88
weaasd
Gordon Bell
BhuttCrackSpackle
Furqanms
Only Title

sam-pan's Q&A profile

  • Visual Studio Express Editions Help Needed

    Hi folks, I need to locate a tutorial for a craps dice game for learning purposes can someone help with a link or something any other information will be helpful. Thank you for your support.   DKB   Hi Spotty, Well I am logically having trouble thinking of a way to dermine a win on a second or any other roll attempt for that matter. For instance a random number or .gif  on a first roll and then have it match with any other subsequent roll to determine a winner. I can determine on first roll if it's a 7 or 11 or if it is a bad number 2,3  or 12 then it is a crapout roll. Any ideas ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirectX CustomVertex.PositionTextured problem?

    Hey everyone, Is there some sort of problem that I may be un-aware of when using new VertexBuffer(typeof(CustomVertex.PositionTexture), m_vertNmber, m_graphicDevice, 0, CustomVertex.PositionTextured.Format, Pool.Default); For some reason, when I'm alinging my texture onto the vertices the final product is not displaying correctly. Here is some code: My texture is an image 128 width x 32 height. This is so i can have 4 different images all equally spaced to work out as 32x32 tiles. First attempt trying with this code always renders the 2nd frame wrong "seems like its getting clipped" VertexBuffer vb = ( VertexBuffer )sender; CustomVertex . PositionTextured [] m_verts = new CustomVertex . PositionTextured [m_vertNum ...Show All

  • SQL Server Reporting Services Configuration - Database Setup

    I have trouble to configure the Report Server. The error message I got when trying to setup database : Verifying Dabase Version The Current Connection string is not valid and cann't be used to connect to SQL Server and it also failed to assign Reporting Services Right to user Any idea Thanks Hi Louis, I ran into the same problem. Could you share the fix with me if you have resovled this Thanks much, Beijun ...Show All

  • Visual Studio 2008 (Pre-release) Change the image dynamically from the Style

    Hi all, I've just started a dive from the "learning cliff" into the WPF, so bear with me. I am creating a style for the TabItem to display icons with the text by modifying template from SDK samples. It looks like this: <Style TargetType="{x:Type TabItem}">       <Setter Property="Template">         <Setter.Value>           <ControlTemplate TargetType="{x:Type TabItem}">                        <Grid>           &n ...Show All

  • .NET Development How to handle a integer null value in a (.xsd) dataset

    Hi. I want to pass a null value to an integer in a (stored) dataset. The column in the database allows null values, but the dataset throws an error. (VS2005) Goos van Beek In a case of binding, I do not think you have much control, but I believe application should not freeze in this case anyway. Do you get any exception Do you trap any exceptons but do not handle them In a case of unbound controls, you could assign value using next code, but you have to know index of the row that require the change MyDataTable.Rows(IndexOfTheRowHere).Items("MyColumn)=DBNull.Value ...Show All

  • SQL Server SSIS Send Mail Task - Failure Sending Mail

    Hi Everyone, Hopefully someone out there will have an idea as this is driving me nuts. I've setup a task to email on success/failure and keep receiving the following message when executed: Progress: The SendMail task is initiated. - 0 percent complete [Send Mail Task] Error: An error occurred with the following error message: "Failure sending mail.". Progress: The SendMail task is completed. - 100 percent complete Task Send Mail Task failed When I configure Outlook Express on the same machine with the same settings it works. On the SMTP Connection Manager I have left the default name, tested with both an IP address and Server Name, and no authentication or SSL. On the Send Mail Task, it uses the above connection ...Show All

  • Visual Studio 2008 (Pre-release) svcutil errors on wsdl name attribute

    Hello, I am trying to generate WCF client and service code from a WSDL file provided by a third party. The wsdl file passes validation in several verification tools. However, svcutil generates an error when run as such: svcutil importedfile.xsd thirdparty.wsdl The error is this: Error: Cannot import wsdl:binding Detail: The WSDL binding named ReferApplicationSOAP is not valid because no match for operation ReferApplication was found in the corresponding portType definition. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.fake.org/schemas/referApplication_1_3_1.wsdl']/wsdl:binding[@name='ReferApplicationSOAP'] If I remove the "name" attributes from the wsdl:input and wsdl:output elements under the wsdl ...Show All

  • Visual Studio Can't unbind or disconnect ClearCase from VS 2005

    I want to disconnect or unbind my source code in VS 2005, but the IDE always forces the association. I tried setting Tools|Options|Source Control|Plug-in Selection: to None. The IDE then closes the solution and when I reopen it, the Plug-in is set back to Rational ClearCase. There is no File|Source Control menu option. In VS2003, the first method worked and the IDE merely gave a warning that the source control binding was lost and could be overwritten. I also tried using a 3rd party SCC Switcher, but it had no affect ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=197720&SiteID=1 ) How do I get disconnected Ed0, You should be able to open the controlled solution and do the followin ...Show All

  • Visual C# How to write Registry key value for logged in user thru Windows services?

    Hi, I am developing one windows service, which takes the file from network server, copied to the local folder and that file name and path should be updated in current user's registry. By doing this in windows services its giving file not found exception. What Account to use for this and how to set the registry for the current user who logged in Can we run windows service that run under the current user and update his registry settings Thanks in advance, Jagad You can either run the Windows Service under the Local System Account or under the security context of a specified user. You can retrieve the name of the logged on user from your service by for example getting the owner of the explo ...Show All

  • Visual Studio 2008 (Pre-release) [OperationContract] and properties,

    Hi, Why is the below interface definition not possible Surely the fact that properties are just methods anyway mean that this should be possible. Why should it be necessary to change the perfectly reasonable Length property into a GetLength() method Is there any way to expose a property value /// <summary> /// Service contract definition. /// </summary> [ ServiceContract ] public interface IWorkContract { [OperationContract ] int Length { get ; } } You're right about sessions, they do exist and you can use them. But I wouldn't compare sessions state to properties. Transactions aren't there mainly so you can do 5 method calls and ...Show All

  • SQL Server I am not able to connect to SqlServer 2005

    Hi All, I am trying to connect to SqlServer 2005 whihc is running on another machine. But it is giving error. ie. " An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) " this si my connection string information //SqlConnection cn = new SqlConnection("Server=id03;uid=sa;pwd=infokall;database=TestDB"); SqlConnection cn = new SqlConnection (conn); SqlCommand cmd = new SqlCommand (); string Value; string query = sqlInfo.SQL; ...Show All

  • Visual Studio 2008 (Pre-release) svcutil.exe datacontract only is not generating minOccus='1'

    Call "C:\Program Files\Microsoft SDKs\Windows\v1.0\Bin\svcutil.exe" /dconly /out:..\..\DataContractXSD.cs /t:code "$(ProjectDir)Data.xsd" Data.xsd file has < xsd:complexType name =" AccessInfo "> < xsd:sequence > < xsd:element name =" User " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" Password " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ApplicationID " type =" xsd:string " minOccurs =" 1 " maxOccurs =" 1 "/> < xsd:element name =" ClientIPAddress &quo ...Show All

  • Windows Forms Flicker using doublebuffer

    I created a UserControl which contains a Panel. I created an eventhandler for this Panel's Paint event. In this handler I draw a grid for the background and the a line which links to squares the user can move. Every time the squares are moved the panel is invalidated, in order to redraw the link. Repainting gives a lot of flicker. As in other controls I made, I tried to use doublebuffering in both ways, through SetStyle and the DoubleBufferd property. Flicker remains. I also tried to use one transparent panel over the panel with the grid. The grid needs to be painted only once, while the links are often repainted. So I tried to put squares and links in the transparent panel, but the grid panel is still repainted every time the transparent ...Show All

  • SQL Server SSIS and multi-Instance

    I have figured out that SSIS installs once for as many instances of SQL Server 2005 as there are on the machine. I also figured out that even if there is only a named instance on the machine, it will always install under the "Default" machine named instance. I also figured out that you can change the instance viewed by modifying C:\Program Files\Microsoft SQL Server\90\DTS\Binn\MsDtsSrvr.ini.xml What I am unclear about is that in SQL Server 2000, each Instance had an MSDB db which stored all of the jobs. In SQL Server 2005, each instance still has an MSDB DB but theSSIS also has a MSDB DB or is this pointing to the MSDB for the instance specified in the xml file There is not much info out on this at all and would be ...Show All

  • Visual C# error CS0016

    I'm trying to run the csc command on a server. One user works, but I can't get any other user to work. I've tried giving the other users admistrative rights, but still no luck. The user that does work logs in against the machine and not against the company domain. I can not find any other differences. Why can't any user run this The command is like csc.exe /target:library /out:D:\DEVTEST\cc_keys.dll /reference:D:\DEVTEST\library.dll cc\src\Class1.cs Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved. error CS0016: Could not write to output 'd:\devtest\cc_keys.dll' -- 'The direct ...Show All

©2008 Software Development Network