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

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

drinkwater

Member List

galbox20
AshiTenshi
jschroeder
Dirk Junghanns
Nickeay
CLearlyDotNet
lawrieg
rajesh_batchu
moGun
Cefa68000
LORDTEK
Jon Braganza
http200
Matt Stum
FassaBortolo
Jesús López
mblas
Phil D.
Steven Galione
Cyberjunkie
Only Title

drinkwater's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. 3D model is incorrect after adding a Sprite in 2D

    I took the example of drawing a 3D model(tutorial 1 and 2(spaceship)) and then pasted the code from the tutorial of the "Drawing a Sprite" When It renders the ship doesn't have volume. In that I can see right through it. Does anyone know what is wrong. Is there some thickness setting for the graphic devicer that I need to set The complete code is pasted here: #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion namespace ...Show All

  • Visual C++ Adding a window within a window.

    Hi all, I have created a window(without title bar) class with image manipulating functionalities. Just I want to show this window as part of another window, that is with in a window just like controls. I know to display as a separate window. But I just want to show as part of parent window, like a control. I hope my question is clear. I am using Visual Studio 2005. :) Purusothaman A child CWnd, got shown in dialog box as a child control. myCWnd.h file: ============ #pragma once // myCWnd class myCWnd : public CWnd { HBITMAP hBmp; CBitmap ObjBmp; DECLARE_DYNAMIC(myCWnd) public: myCWnd(); virtual ~myCWnd(); afx_msg void OnPaint(); protected: DECLARE_MESSAGE_MAP() }; myCWnd.cpp file ========= ...Show All

  • Visual Basic FileUpload - How do I trap maxfilesize problems

    The fileupload control works well for files < 4MB (maxrequestlength), but if the file is larger than this the program fails with: - the page cannot be displayed, or Server error in '/xxxxx' application Maximum request length exceeded How do I trap this so that I can return a better error message The failure occurs before the Page Load from any callback, so I can't see any way of trapping the error, and I haven't seen any event or property of the Fileupload control that I can set to say "Do this when Max Request Length is exceeded" I don't want to accept larger files, I'm happy to live with the limit. Regards, Robert Barnes why donot you increase the maxRequest ...Show All

  • SQL Server Not enough storage is available to complete this operation

    I get this exception after awhile of browsing thru my application, i dunno what causes this because it never happens in the same place. I would like to know if anyone else is experiencing this situation and if there is a solution. SqlCeException Not enough storage is available to complete this operation. em System.Data.SqlServerCe.SqlCeConnection.ProcessResults() em System.Data.SqlServerCe.SqlCeConnection.Open() em System.Data.SqlServerCe.SqlCeConnection.Open() em System.Data.Common.DbDataAdapter.QuietOpen() em System.Data.Common.DbDataAdapter.FillInternal() em System.Data.Common.DbDataAdapter.Fill() em System.Data.Common.DbDataAdapter.Fill() The problem is actually because of DLL Squeeze. To get around th ...Show All

  • Visual C# Drag drop copy files using backgroundworker

    I'd like to offer users the ability to copy files to relevant hardcoded app folder by dragging & dropping on my form with the following conditions : How can I test for the shift or ctrl key to trigger the filecopy action If copy filecount > 5 then copy using a backgroundworker rather than locking up the app Thanks for any help ! I found this sample code elsewhere. Can someone help me doctor this code to make it suitable for background filecopy with progressbar & cancel http://www.codeproject.com/cs/miscctrl/progressdialog.asp http://www.codeproject.com/cs/files/xdirectorycopy.asp ...Show All

  • Visual Studio Team System Testing Policy Metadata

    Hello, I am just looking for information about testing policy, I was to create that policy but it asks me a metadata file, where is that file How can I create those files what does that file contains ...Show All

  • .NET Development Error Serializing a class with System.Uri as a method parameter

    I was trying to serialize a class that has a Serializable Attribute and it is giving me the following error: Unable to generate a temporary class (result=1). error CS0012: The type 'System.Uri' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. When I comment out the following method in the class, it serializes fine. Is there a way to work around this error Public Shadows Sub Add( _ ByVal MessageUrn As Uri) If MessageUrn Is Nothing Then Throw New ArgumentNullException( "MessageUrn" ) End If Add(MessageUrn.ToString(), BrokenRuleDC.GLOBAL_BROKEN_RULE) End Sub An ...Show All

  • SQL Server Quorum & MSDTC Cluster Questions

    We are trying to setup a Windows Server 2003 Cluster with 2 systems and a DAV. We intend to install SQL 2005 on this Cluster. We purchased a DAV with 3 physical disk arrays as follows. 73GB RAID 1 (our plan is to use this to store sql transaction logs) 146GB RAID 1 (sql backups, temp database & other temp files) 420GB RAID 10 (sql databases) Now as we are setting all this up we find out we need a shared physical drive on the DAV to store the Quorom. It is my understanding we cannot partition the physical drives and use one of the partitions to store the Quorum because when you create the resource for the Quorum the resource is the phsyical disk not the partition. So my question is, is it in our best interest to buy a seperate ...Show All

  • Visual Basic How to open PDF documents in a RichtextBox ?

    I know that the only way to open pdf documents in rtb is the use COM .. but few questions I shud add reference to my project .. but with which dll file .. and do i need Acrobat Reader or Acrobat Professional A few lines code wud help. Right-click the toolbar and select Choose Items. Click on the COM components tab and click Browse. Navigate to C:\Program Files\Adobe\Acrobat 7.0\ActiveX\AcroPDF.dll The interface is documented here... I hope it works for you, it was a bit flakey when I played with it. As an alternative, consider displaying the PDF in a WebBrowser control. ...Show All

  • Visual Basic Web Browser project

    I am working on a very simple browser, mainly for quick web surfing without the need of menus, favorites, and other fancy features seen in other browsers. The problem is, im quite new to this programming language, and i barely got anything out of what little time i had in Introduction to Computer Programming (using Visual Basic 6.0) before being pulled out of that class to make up a required credit. Im clueless as to how to get the WebBrowser object to respond to the input in the AddressBar, and display the site the user types. Any help on this would be really greatful. Thanks Sorry, I forgot to ask, which version of visual basic are you using If you are using VB 2005 then it will be in: Project > (Project Name) Properties & ...Show All

  • SQL Server real time progress bar

    The ETL processing for my project will be deployed as part of a larger application which is operated by non-technical users. Therefore I want to provide real-time feedback to the user on progress, errors, etc., using windows standard GUI interface objects and style- for example a progress bar. The "designer" of course does some of this but there won't be any designer in our deployed application (and SSIS designer is neither intended to be used by, nor appropriate for, non-technical users anyway). Now that I have the ETL logic working, it's time to tackle this UI requirement. I am thinking one way to do this is to start a script task to run in parallel with the main ETL processing, open a winform in that task that has various ...Show All

  • Visual C++ 3rd party HTTP GET/POST class for MFC

    I haven't received any solutions to my earlier query about doing GET and POST from within an MFC application. I'm looking at: http://www.codeproject.com/internet/httpget-post.asp and when I try to download the ZIP file containing their source code, I get a corrupt ZIP file. Could somebody else please try downloading this guy's code and check it out I'd prefer to just use stuff from Microsoft, but because of time pressures, I'm starting to get desperate. longwood ...Show All

  • Smart Device Development ASSERT when clicking on link in notification

    Hi, in my MFC/WM2003 application I create a notification using the following code (Visual Studio 2005 SP1, WM2003 SDK): SHNOTIFICATIONDATA sn = {0}; sn.cbStruct = sizeof(sn); sn.dwID = 1; sn.npPriority = SHNP_INFORM; sn.csDuration = 0xFFFF; sn.hicon = LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(IDI_MAINICON)); sn.clsid = myCLSID; sn.grfFlags = 0; sn.hwndSink = GetSafeHwnd(); sn.pszTitle = L"Notification"; sn.pszHTML = ConstructNotificationMessage(type, data); SHNotificationAdd(&sn); The HTML contains a '<input type=button name='cmd:45000' value='test'>"' button to click. When the user clicks this button, my application receives a message with wParam=45000 and I can react to ...Show All

  • Visual Studio Express Editions Event procedure changes name when I cut and paste control to different area

    If I cut and paste the control I get a number added to the event procedure: First it was: Private Sub btnGetList_Click( ByVal sender.. If I cut and paste once, it is: Private Sub btnGetList_Click_1( ByVal sender... And again: Private Sub btnGetList_Click_2( ByVal sender... But all my code remains in the first instance of the procedure. Is this normal It sure seems annoying. Actually it's a good thing. The control you paste is a new control. If you desire the same code for each control: There will be a handles clause at the end Handles ControlName.Click This can be extended thusly: Handles ControlName.Click, ControlName2.Click, ControlName3.Click ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play - partner in crime

    I'm still hard at work on a new game I'm working on, but it's more for fun than anything I would submit for a contest.  But I really want to enter the dream, build, play contest too, I just don't think I'll have the time to do it all on my own. Does anyone out there want to partner up   I'm no programming guru, but I've got a few skillz.  I've been messing with XNA since beta 1, I got one (and a half) xna game(s) under my belt, and I'd say my biggest assets are creativity, thinking outside the box, analytical problem solving, writing, story, plot, characters, and high fives (not necessarily in that order) ...only reply if you plan on winning!  Do you hav ...Show All

©2008 Software Development Network