Richard Warlow's Q&A profile
Visual Studio Express Editions Location of a Picturebox
Thanks, I didn't ask the Question but you and google have saved me a big headache. trying to find this info has been a needle in a haystack, and with my assignment time limitations i'm glad i found it here rather than post somewhere and hope for a Reply!!! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ogg support in XNA?
Hi I just wondered if and when there will be support for Ogg Vorbis (or wma, or something) in XNA (Xact ). Anyone know Having to use wave files for music is really not that great. I think ryan was talking about real time decoding mp3 >> streams >> Pcm - Wav >> Xact. And as I was long time looking for even teoretical solution for MP3 on 360. There is only that way. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Implications of Keyboard.GetState() returning a KeyboardState structure.
The KeyboardState object is a C# structure - meaning that it's a value type not a reference type. Calling Keyboard.GetState() returns a copy of the KeyboardState structure. This KeyboardState structure appears to be about 32 bytes in size - determined via a call to System.Runtime.InteropServices.Mashal.SizeOf(). Is there a particular reason why KeyboardState is a structure rather than a class type Correct me if I'm wrong but I would have thought returning a class reference would be much more efficient than returning a 32 byte structure. Another reason for using a structure is so that KeyboardStates can be saved. (i.e. old and new ones can be compared, which is very useful). Previously there was no way to d ...Show All
Visual C++ bitblt Cpu issues
Hi, I am trying to implement a win32 screen capture application similar to VNC. Bitblt() function which i am using to capture the screen uses 100% cpu when the hardware acceleration is set to FULL. I tried Bitblt on HDC selected from CreateCompatibleBitmap & CreateDIBSection, but the results are same. Is there any way, that i can minimise the Cpu utilisation when hardware hardware accleration is set to FULL. Please help.. Thanks, --P V V R. Hi, Please find the below code part that does the Screen capture, for 8 bit mode. m_screenDC = ::GetDC(NULL); if (m_screenDC) m_dibDC = ::CreateCompatibleDC(m_screenDC); if (m_screenDC == NULL){ pr ...Show All
Visual C++ Why doesn't strncpy(strDest,strSource,-1) generate an unhandled exception instead of instantly ending the application?
We've encountered a problem with calls to strncpy in our business application. When a invalid negative value is passed in as a count paramater the application abruptly ends, poof! gone like a puff of smoke, without throwing the usual unhandled exception. This means that our exception handler that is set using SetUnhandledExceptionFilter() gets bypassed and we cannot retrieve dump information to aid our debugging efforts. We have recently moved to Visual Studio 2005 so perhaps the internal implementation of some of the string functions have changed I know we should be using strncpy_s however given the size of our source and the number of places where the size of a string buffer is not passed around this would be a larger task than we have r ...Show All
Software Development for Windows Vista To pass "Works with Vista" - REALLY only MSI or ClickOnce deployment package necessary??
Hi all, I've a question here regarding the need to pass the tests in Application Verifier 3.3 in order to get the "Works with Vista" logo. In Application Verifier 3.3, it has several tests: - Basic - Compatibility - Low Resource Simulation - LuaPriv - Miscellaneous - Printing Which of the tests above do I need to go through in order to get the Works logo What if I get Error or Warnings in any of the above tests, does it mean that I will fail to get the Works logo One more question, to get the Works Logo, is it a must that my installer has to be packaged in MSI Thank you in advance! Cindy Hello, I am wondering about this sentence (because of the specific term: certification t ...Show All
Visual Basic how to use the events of runtime define control
hi i m using code in my vb.net programe which is listed below for i=0 to 10 dim flt as new label me.control.add(flt) flt.visible=true: flt.left=128*i :flt.top=22*i next i want to use the mouseclick event of the all 10 label controls. any body know the code please give me. thanks regard Shahzad thanks for your kind to give me answer. But i like to handle all run time created label control mouse click event seperatly. How it was possible. please give me the code. regard Shahzad ...Show All
Visual Studio MSBuild beginner questions
I used MSBuild 2 years ago whilst I was at Microsoft - but its been a while remembering this and how to use it and so on. So kind of going back to the basics.... where and how do we obtain MS Build how does it work how do we configure/set it up any links to documentation etc... Much appreciated for your responses :-) Where and how do we obtain MS Build - MsBuild ships with the .net 2.0 clr How Does it Work , How do we set it up Documentation -A good place to get the rest of the questions answered would be the MSDN pages for msbuild - Also the MSBuild Wikki is a good place for information ...Show All
SQL Server Loop in SSRS Expression
Hi guys, I got a multi value parameter which displays all my 'companies'. On my report header, I wish to display all the companies selected by the user. Parameters!Company.Label(0) only shows the first on selected Please, any help will be greatly appreciated W Wilmot Thanx Hammer It worked fine if i use the 'Join( Parameters!Company.label," ,")' instead of 'Join( Parameters!Company.value," ,")' Thank you, again!!! ...Show All
Visual Studio Express Editions DateTimePicker needs "two goes" ....
Recipe : 1) Open a new 'Windows Application' 2) Add a DateTimePicker, set the following minimal code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler DateTimePicker1.DropDown, AddressOf GenericDTPFormatSetter End Sub Private Sub GenericDTPFormatSetter(ByVal sender As System.Object, ByVal e As System.EventArgs) sender.Format = DateTimePickerFormat.Long sender.CustomFormat = "yyyy-MMM-dd" End Sub End Class Set these design time properties of the DTP: .Format = DateTimePickerFormat.Custom .CustomFormat = " " This code allows the DTP to initially display as a blank, without any date showing at all. This is ...Show All
Visual C++ where is my Modeless Dialog?
hi, I just begin to learn MFC with VC6.0. today when I read the <programming visual C++ >5th and try to learn the Modeless Dialog ,I come across a problem, when I get the exe and double click it, i run ,but i can`t find my modeless dialog , is there any thing different between Modal Dialog and Modeless Dialog when they are created or displayed,for example , the create() ,OnInitdialog() any reply will be appreciated the term is not "modelless" but "modeless". thanks for correcting. Why Why does it have to be on the heap To avoid problem, possibly faced by OP. You've given suggestion to OP to make it member variable, that could be one solution. But why you wanted an object in memory , when its o ...Show All
SQL Server Connection failed: 18456 error
When one of my users creates an ODBC connection to a SQL database using Windows authentication, he gets this error: Connection failed: SQLState: '28000' SQL Server Error: 18456 [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'Domain\username' The thing is, the 'Domain\username' is not his username and I have no idea where or why it is trying to use that username. Ideas Sure did, and this is the only person having this issue. It is just so strange that it is trying to use some other username. I wouldnt' be suprised if not very many people have run into this. Bizzare. ...Show All
SQL Server Query in dataview/update form
Question related to Visual Basic Video Lesson 09 (Databinding.wmv) by Bob Tabor. Made a table and a UI form according to this lesson (table colums: CustomerID, FirstName, LastName). Is it possible to use the same or an identical looking query form to find "Bob" by typing Bob in the Fist Name textbox or "Tabor" by typing Tabor in the Last Name textbox as in FileMaker Thanks, Yes, it is possible, and quite often done. However, you will have to engage a different 'technique' than the one used to just display all the data. You may find one of the Visual Studio forums a better source of assistance on this task. ...Show All
SQL Server Autorefresh in Microsoft Excel 2003 Cubeanalysis
Hi, I play around with the Cubeanalysis Addin for Excel 2003. My Question: Every time, I drag a dimension, measure, etc. to an excelsheet, all data will be refreshed. This refreshment lasts often up to 1-2 minutes. I didn't need an refreshment at design-time. Is it possible to deactivate it for report design, and activate it when the report is ready for use Thanks Hans Hello Edward, Thanks for your Information, but I didn't find any Office Forum here at MSDN Forums ( ). And Cubanalysis is one of the Analysis Services 2005 Frontends, so I thought, thats the right forum. Hans ...Show All
Visual C# doubt in FOR loop urgent .
DateTime sdate=Convert.ToDateTime(amcsdate.Text); DateTime edate=Convert.ToDateTime(amcedate.Text); DateTime i; for(i=sdate;i<=edate;i=i.AddMonths(1)) { Response.Write(i); } above coding works fine . how to store the values of i in different variable like d1,d2,d3 etc. Example : sdate = jul 03 2006 edate = jul 03 2007 now i want to store the value of i in d1,d2,d3,d4.........etc till i <= edate . after getting the values of d1,d2 etc i will be storing in database . my table format : d1 d2 d3 d4 etc ............ jul 03 2006 Aug 03 2006 Sep 03 2006 Oct 03 2006 I do not have an answer for your issue, however, I think i would be easier for ppl to resolve if they k ...Show All
