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

Software Development Network >> BJ Custard's Q&A profile

BJ Custard

Member List

noob2vb
ruckuss
nhaas
baso
Alessandro Moacyr Duarte
old mpipe
Vladimir Pilich
Ash_
AnandSamant
Pascal Bourque
darkwarrior0404
Loki1982
MGreen324079
mszlazak
Jimmy_fingers
ManjuVijay
andris11
dimx
kevin D. white
João Cunha Lopes
Only Title

BJ Custard's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. World to screen conversion.

    Hi. Something weird when trying to covert world to screen coordinates. Vector3 res = Vector3.Transform(worldPoint, Camera.View * Projection); I get the result vector with values greater than 1. Aren't the values post projection supposed to be clamped Both the view and projection matrices are valid (and are used to display on screen). Cheers Using the model's world transformation, the position you provide should be in the model's object space. The model.Position actually provides the position of the model in world space, so you could just use Vector3.Zero instead, or keep model.Position and change the world transformation to the identity matrix. ...Show All

  • Visual Studio OutputDir has different behavior with msbee

    I want to build 1.1 and 2.0 projects with msbuild and I don't want them treated differently during the build process. I want my 2.0 build results to be put into the same outputdir as my 1.1 build results, however, in MSBuildExtras.Fx1_1.Common.targets there is logic in there which changes the value of the OutputDir to include a [debug|release] subdirectory which I cant seem to get rid of. I don't want this. Is there a simple work around that won't have me modifying this file Help please. Thanks. You need to modify the file: MSBuildExtras.Fx1_1.Common.targets There are several lines that define the OutputPath(and IntermediateOutputPath). Just remove the $(Release) property fro ...Show All

  • SQL Server Updating Database User SID in SQL 2005

    Hi all We're currently undertaking the development of our first SQL Server 2005 database and we've stumbled across a problem with our method of deployment from Development through System Test, UAT and, finally, to Production. Under SQL Server 2000 we would build a new database in Development and assign permissions to a specific database user which was linked to an appropriate Windows Login - the whole build process was scripted. We would then hand the mdf and ldf files over to the Operations team who would attach the database to the System Test server, create a new Windows Login (appropriate for the environment), then run a script which would update the SID stored against the database user to the SID of the appropriate login. e.g ...Show All

  • Visual Basic Tab Control Question

    I am very new at this, so my method may be very odd. Anyways, I have a tab control that occupies the main portion of my program, with various icons on the left to open different aspects of the program. Each item on the left creates a new tabpage in the tab control. The actual design of the tab pages is held in seperate vb forms and I add the tab pages to the maintabcontrol during run time. I did this because I may untimately have 20+ tab pages with different aspects of the program, and designing them all on the main tab control was just a mess to work with. When someone clicks the close button it disposes the tab page they are currently working in, but then I cannot get it to recreate the tab page (if the user reopens that section of the p ...Show All

  • Software Development for Windows Vista DIrectShowNet: How to set videoWindow to be display on a panel?

    **Coding GetInterfaces() 'attach the filter graph to the capture graph hr = captureGraphBuilder.SetFiltergraph(graphBuilder) DsError.ThrowExceptionForHR(hr) 'use the system device enumerator and class enumerator to find 'avideo capture/preview device, such as a desktop USB video camera. sourceFilter = FindCaptureDevice() 'Add Capture filter to our graph hr = graphBuilder.AddFilter(sourceFilter, "Video Capture" ) DsError.ThrowExceptionForHR(hr) 'Render the preview pin on the video capture filter 'use this instead of graphbuilder.renderfile hr = captureGraphBuilder.RenderStream(PinCategory.Preview, MediaType.Video, sourceFilter, Nothing , Nothing ) DsError.ThrowExceptionFo ...Show All

  • Visual C# How do I get the application directory

    hi there, how do I get the application directory. that is, the directory of the running application as a string Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingPath()) ...Show All

  • Visual Basic error in HasMorePages

    Hi How can I Print 4 pages using PrintDocument Control I use this code but i have one page only Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim I As Byte Dim M As Byte = 0 While I <= 200 e.Graphics.DrawLine(Pens.Black, e.MarginBounds.Left + 10, e.MarginBounds.Top + 30 * I, e.MarginBounds.Right, e.MarginBounds.Top + 30 * I) I += 1 M = M + 1 If M = 50 Then e.HasMorePages = True M = 0 Else e.HasMorePages = False End If End While End Sub Help me please. ...Show All

  • Visual Studio 2008 (Pre-release) Frame.Content`s DataContext is not inheritted from the Frame

    I have a Frame in a DataTemplate and load its content through Source property from external XAML which has a StackPanel as a root element. DataContext of the StackPanel is null and not set to Frame.DataContext. Should not the DataContext be inherited from parent Is it by design or a bug of ContentControl Anyway this is a workaround: public class FrameEx : Frame { protected override void OnContentChanged( object oldContent, object newContent) { if (newContent is FrameworkElement ) { (newContent as FrameworkElement ).DataContext = this .DataContext; } base .OnContentChanged(oldContent, newContent); } } To answer your question, the defaul ...Show All

  • Visual C++ Problem with CFileDialog::OnTypeChange()

    Hi, We have recently migrated our code base from VS 2003 to VS 2005 and we seem to have a problem with OnTypeChange() method of CFileDialog. We have sub classed from this class and have overridden the method OnTypeChange(). The problem here is when the "Open Save As" dialog appears, and we change the extension type from the "Save As Type" combo box, the file name is not getting updated properly. So I debugged this OnTypeChange() of our class method and found that this method is getting called twice when the "Save As Type" is changed. Inside this function we are using the function call GetFileName() and this method is not returining the correct file name when OnTypeChange() is called for the second time. Can ...Show All

  • Visual Basic What is Sub New() for ?

    Hello, What is Sub New() for I haven't found anything about it on the documentation. Thank you. Okay I understand, Shall I be worried about this for my VB program running (not a service running everytime) which eats about 40/70Mb of memory   Thank you all for your answering. ...Show All

  • Visual C# Visal Studio Professional and Team Project Template

    I have a VS2005 Professional Edition and am not able to get a Test Project Template installed on my machine. In this link it states that Test Project is available for VS2005 Professional edition and above (this is the unclear part for me) http://msdn2.microsoft.com/en-us/library/ms236405(vs.80).aspx It should not be this unclear as to what edition has what rights on templates. And there should be an easy to find the web site with downloadable templates for all editions. My question remains: does VS2005 Professional support Test Project Templates ...Show All

  • SQL Server SQL Server Service Pack 2 Released

    Everything including Readme, updates books online etc can be found here: http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/servicepacks/sp2.mspx Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- The readme for SQL 2005 SP2 lists Windows 2003 SP1 as supported OS. Does this mean that SQL 2005 SP2 will not run on Windows 2003 SP2 ...Show All

  • Visual Basic Form object resizing

    Hi there everyone, Something is baffling me here.  I'm trying to code a resize event to ensure correct placement of my controls whenever the form is resized.  I have a picturebox control that I wish to fill the screen but leaving a gap, of around 3, either side.  At the bottom of the form I have a textbox control (txtCallsign) that I intend to keep fixed to the bottom of the form.  I've tried the following code: Private Sub frmMain_Resize( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Resize ' Resize the picture box control as the form ' resizes. PictureBox1.Left = 3 PictureBox1.Top = MenuStrip.Height + 1 PictureBox1.Width = Me .Width - 6 PictureBox1.Height ...Show All

  • Visual Studio CHM files in Unicode path

    I want to be able to install my application in a directory with Unicode characters in the filename. I am, however, unable to open any compiled html files (.chm) when I do this. The error message I get is: Cannot open the file: mk:@MSITStore:C\Program Files\Uni \myhelp.chm. The same .chm-file works fine a directory without Unicode characters. Has anyone figured out how to do this Regards Bengt Hi Frank! Do you mean it is possible to escape characters in a shortcut Your answer got me thinking in another direction and that is to use short-names as these do not contain any Unicode characters. If I "cd" to the directory (with the help file) using the short directory name I can actu ...Show All

  • Software Development for Windows Vista InstallLocation in registry uninstall information is not being written when using VS2005 Deployment Project

    Per Vista test case 19 of Vista Logo Certifications, HKLM\Software\Windows\CurrentVersion\Uninstall\{ProductCode}\InstallLocation can not be null. I am using a simple Setup and Deployment project in VS 2005, and I dont see any option to make that happen. I would have suspected that it would do it by itself. Use msitran.exe (from the Windows SDK) to apply the transform. So, the whole process is: - Open your msi in Orca. - Select Transform/New Transform - Create new row in CustomAction table: (Action) (Type) (Source) (Target) SetLocation 51 ARPINSTALLLOCATION [TARGETDIR] then add a new row to the InstallExecuteSequence table: (Action) (Condi ...Show All

©2008 Software Development Network