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

Software Development Network >> Jef Patat's Q&A profile

Jef Patat

Member List

Eduardo D
popit
MaggieChan
dvidal
KevinBurton
Gabriel_M
Allan-Nielsen
Tom Regan
Eva Pierce Monsen
Ross B.
Yustme
Brian_W
Romantic_touch
sectorFive
comiv
rkslatha
JacksonJones
dba_sql
Azriel Cross
Lerxst193952
Only Title

Jef Patat's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Editing Vector3s in the designer

    I have a component with a public accessor for a Vector3 eg: public Vector3 Position { get { return mPosition; } set { mPosition = value; } } When I add the component to my Game derived class using the designer, this property shows up in the Properties window but the value is grey and I cannot change the values. I noticed the same thing happening with the FreeLookCamera class in the components demo video. Is this by design Is there a way around it Hi, I have made a Vector2 Type Convert so you could take the code out of that and make a Vector3 Type Convert. [ http://www.kinlan.co.uk/2006/09/xna-vector2-type-converter.html ] Kind Regards, Paul Kinlan ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. draw dds

    how do i draw a dds in c# There are tutorial projects in the Feb 07 DX SDK that will show you how. Download it here . ...Show All

  • SQL Server SQL Server 2005 SP 2 December CTP authentication fails

    Hi, if I try to install SP 2 using SQL Server authentification (sa) it fails. The following lines appear in the file "Hotfix.log": 01/03/2007 14:08:23.859 Authenticating user using SAPWD 01/03/2007 14:08:23.875 Validating database connections using Windows Authentication 01/03/2007 14:08:24.171 Pre-script database connection failed - continuing to wait for SQL service to become responsive to connection requests ... repeated 60 times ... 01/03/2007 14:13:33.625 The following exception occurred: SQL Server reagiert nicht vor der Skriptausfuhrung Date: 01/03/2007 14:13:33.609 File: \depot\sqlvault\stable\setupmainl1\setup\sqlse\sqlsedll\instance.cpp Line: 1411 Why does it try to use Windows Authentification although I have tol ...Show All

  • Windows Forms DataViewManager, DataGrid & DataDridView

    I am encountering certain problems with the DataViewManager, DataGrid & DataDridView controls. 1) How can I filter the rows in a DataViewManager. Like, I want to search books that contain exactly 'Food' (and not 'Foods') in their title. My query criteria would is: Where Title Like '[ *.]Food[ *.]' Those brackets contain all the delimiters for a word. Now the problem is that filtering the records in DataViewManager by settings its RowFilter property to the above clause lists all the Title Names !!!! 2) I want to include a field like S.No. that's not part of the database, but that's included whenever something is shown in the DataGrid or the DataGridView, for numbering. How can I do that 3) How can I know the number of fields curr ...Show All

  • Software Development for Windows Vista Proper use of IAMStreamConfig to Change Resolution

    I'm working on modifying Marcus Perryman's TimedCameraCapture system for Windows Mobile: http://blogs.msdn.com/marcpe/archive/2006/05/23/604771.aspx. I need to be able to change the resolution of something being captured. All my research has told me that I need to use IAMStreamConfig to essentially enumerate the supported resolutions and then use SetFormat on them. However I have not been able to get this to work at all. After adding a Still Image Filter I then try and change the resolution and then call RenderStream. Here's what I'm trying: IAMStreamConfig *pConfig; CHK( m_pCaptureGraphBuilder->FindInterface(&PIN_CATEGORY_CAPTURE,&MEDIATYPE_Video,m_pVideoCaptureFilter, IID_IAMStreamConfig, (void**)&pConfig)); int iCou ...Show All

  • Visual C++ primary numbers finding

    how I find one number if it is the primary number or not by recursion method in C++ language Hi, Use the following function bool IsPrime( int num) { for ( int index = 2;index < =num/2;index++) if (num%index == 0) return false ; return true ; }   Thanx, Ch.T.Gopi Kumar. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Crashing Saleen, early XNA demo?

    I remember when I first heard of XNA at Microsoft's press conference at GDC 2004. They showed off a really stunning demo of a Saleen crashing into a concrete wall. Go to Gamespot and have a look for yourself, if you haven't already, http://www.gamespot.com/news/6092125.html q=XNA. Will that demo and source code ever be available Cheers Alfons I just watched it for the first time, and it was impresive. I wonder how they did all that without the content pipeline. And with that background music, the demo must of been 500MB. All kidding aside, it would be cool to see this source code come out. ...Show All

  • Gadgets location.reload(true) kills the System object?

    I stuck a reload button in my gadget so I could easily refresh it to see the effects of changing something in the code. The onclick handler for the button is onclick="window.location.reload(true)". This does in fact reload the HTML and JS. But it seems to also kill the System object hierarchy. The code "Display.innerText = System.Gadget.name;" works the first time the gadget is added to the sidebar. Then I click my reload button and I get an error trying to access the System object. If I wrap the call in a try/catch and look at the error, it says "'System' is undefined". If I then close the gadget and re-add it to the sidebar, the System object comes back. I'm running the final version of Vista Ultimate ...Show All

  • .NET Development emailing from vb.net application

    i would like to add an email to customers option in my point of sale application. which sends html mails or greetings to customers automatically based on the information from database.it should also have an option to edit the html template which i have designed. if anyone can help me out the steps i should follow will be helpful Durgaprasad, this is good. the next question of mine is to send mails automatically based on the data in tha database, ie, birth day wishes. i have template store in a folder, what is the best method to use mailing automation. is there articles or sample available. thanks ...Show All

  • Visual Studio 2008 (Pre-release) Binding to a service from xaml

    I'm having trouble figuring out how to bind to an object retrieved from a custom service locator where the key of the service is indicated in the xaml. For example, imagine I've exposed an object "ServiceLocator" to the namescope. I'd expect to be able to call: < UserControl x:Class = " UserControl1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < StackPanel > < TextBox Text = " {Binding ElementName=ServiceLocator, Path=GetService[CurrentUser].CompanyName} " /> </ StackPanel > </ UserControl > My ServiceLocator class has: Public ...Show All

  • .NET Development How to place the Tray Icon for Windows Service using C#

    I need the tray icon for windows service. In that service i am checking for certain timing, at that time i want to load the application. Is it possible using C# in .net 1.1. Writing a service that interacts with the desktop is hard. It is much easier to write a Windows application that creates a tray icon and communicates with the Windows Service via some interprocess communication mechnism such as Named Pipes, Shared Memory Files, or TCP (i prefer TCP). Does this help Curtis ...Show All

  • Visual Studio Express Editions problems with getsystemmenu and removemenu from user32.dll

    Hi, I'm trying to edit the items in the system menu for my project, and have read all the previous posts on this, but it doesn't seem to be working for me - I found that previous posts all had an attribute list for GetSystemMenu Lib "User32" ( ByVal hWnd As Long, ByVal bRevert As Boolean ) As Long which didn't work for me, but I found out that GetSystemMenu Lib "User32" ( ByVal hWnd As Long ) As Long does work. Now I'm having the same problems with Removemenu and can't figure out what arguments it wants. Is there any way of finding this out Here's the code and the error: Private Declare Function RemoveMenu Lib "User32" ( ByVal hMenu As Long , ...Show All

  • Visual C++ VC++ 2005 Win32 redistributable

    I would like to make a single file, redistributable "Hello World" program. Is there a way of compiling any depenent files/DLLs into the helloWorld.exe program #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("Hello World!!!\n"); return 0; } OR #include "stdafx.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Hello Object World!!!\n"; return 0; } *** please test (must run on a computer other than the one used to compile) I am not sure I understand. I think you are asking how to create an executable that does not need any other files and therefore does not ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. BoundingBox

    Thanks to XNA, my fragile vision of 3D space is completely mangled. This -1 forward thing has really whacked my ability to determine coords in 3D space. I'm making a bounding box for a ray test, and I want my minimum to be (-1, -1, -1) and max to be (1, 1, 1). In MDX 1.0, that would have been fine. Do I have to reverse the z coords for this to work in XNA I was setting up for a ray cast then discovered that XNA doesn't support bounding boxes ... (I seem to recall reading this before but it never sank in) I have found the thread (and Andy's blog) regarding modifying the content pipeline to include it in the Tag property though. I guess I should have a go at the content pipeline, though maths is no ...Show All

  • Windows Forms 'System.Windows.Forms.DataGridViewComboBoxCell'

    S = CType ( CType (sender, DataGridView)(indexC, indexR), DataGridViewComboBoxCell).EditedFormattedValue.ToString() I get this error mesage. Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxCell' to type 'System.Windows.Forms.DataGridViewComboBoxCell'. What does it mean Pwint wrote: S = CType ( CType (sender, DataGridView)(indexC, indexR), DataGridViewComboBoxCell).EditedFormattedValue.ToString() I get this error mesage. Unable to cast object of type 'System.Windows.Forms.DataGridViewTextBoxCell' to type 'System.Windows.Forms.DataGridViewComboBoxCell'. What does it mean I think it means that in the designer your column data type is defined a ...Show All

©2008 Software Development Network