kamil nowicki's Q&A profile
Visual Basic Embedded MP3 (in resource file) playback
Hi! I want to embed a MP3 as a resource in VB05 and play it with DirectX. I don't want to use any coms (e.g. Media Player ActiveX control). Any suggestions Alternatively, how do I playback a embedded (in the resource file) MP3 file with the Media Player ActiveX to playback media files in WMP, you can include the WMP 9/10 in your application if you want to playback media files, this can be achieved by installing the WMP SDK and adding the AX control on your form. Alternatively, have you looked at the Managed DirectX SDK Alot of cool stuff in there and I believe there are examples on how to play back audio. you may want to check out this article: http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A problem drawing lines with color
I'm working on a project where I do a lot of drawing with LineLists. I'm drawing from an array of VertexPositionColor format vertices with a BasicEffect, but no matter what color I set each vertex in the array to, they always draw as white if I don't change any of the BasicEffect defaults. If I change the DiffuseColor property of the BasicEffect, the lines will draw whatever color I set that to, but I need to be able to set the color on a per vertex basis. Am I missing something ...Show All
Visual Basic Any easy way to print a "large" form?
I've got a VB application that has a number of 1280x1024 forms. I'd like to be able to implement a "print screen" function. I tried the PrintForm Power Pack, (Form.Print), but I only get about 80% of the form, so the form must be too big for a single page (other threads say this is all PrintForm can handle). If I capture the form (via Print Screen), and suck it into Paint, it also is 2 pages, but there is a print option to scale it to 1 page, which worked. So, is there any simple way to make this work And, no, the printer won't take 11x17 paper! thanks... Hi, I was going to suggest the PrintScreen & MS_Paint method so if you find a way to automate those actions then let m ...Show All
Visual Studio Express Editions Registry PW
I was wondering is there is a simpla way to save a PW to the registry and keep it there.So the next time the program is used it will only start with that PW from the registry, Also to set the default PW when its first run on the PC. Any particular reason why you want to write to the registry and not to the application configuration file - suitably encrypted. You'd be wise to encrypt it even if you write to the registry and with security becoming a major issue - machines now often prevent users other than admin's writing to registry or specific locations - writing to the application configuration files which go with you application are almost certainly guaranteed. So using the registry to do anything may be more problematic when ...Show All
SQL Server Where is Query Analyzer in SQL Express?
I know that SQL Express includes a similar tool like Query Analyzer in the SQL Management Tool but I just can't find it. Would anyone kindly point it out please When you open Management Studio Express you can create a New Query a number of different ways. New Query is akin to Query Analyzer. Regards, Mike Wachal SQL Express team ---- Mark the best posts as Answers! ...Show All
SQL Server Raw File Destination Access Mode Filename from Variable Problem
I have a raw file destination and am using a variable to store the filename. In an earlier task, I create the value in the variable. User:Filename ... set to C:\Test.txt. When I run the package, I get the "Error: 0xC0202070 at DFT Tekelec Call Events, RFD Tekelec [1365]: The file name property is not valid. The file name is a device or contains invalid characters". error. I then set a breakpoint to examine my variables on the DataFlow pre-execute event and found my variable showing the value "C:\\Text.txt" ... so apparently XMLA is adding the \ escape character when it stores the value in the variable but not retracting it when it uses the value as the filename. What am I missing Can I not use pathing in the var ...Show All
Visual Studio 2008 (Pre-release) ToArray() / sub query / DLINQ possible bug.
Hi Guys, I'm using DLINQ to access my test Database. I get this error when evaluating the following query; Cannot assign sequence of LINQTest.MarineLocationKills to type LINQTest.MarineLocationKills[] var query = from m in marines select new { m.ID, m.Name, m.Age, m.Sex, Kills = ( from k in marineLocationKills where k.MarineID == m.ID select k). ToArray() }; var temp = query.ToList(); If I change .ToArray() ...Show All
Visual Studio 2008 (Pre-release) Disabling Edits/Selections on FlowDocument elements in RichTextBox
Is there a simple way to disable editing on FlowDocument elements hosted within a RichTextBox What I want to do is to mark off certain portions of the document as being non-editable and non-selectable. I've tried using IsEnabled="false" and Focusable="false" but the RTB seems to ignore these attributes. Any help welcomed! That's so utterly disappointing. The editable flowdocument (aka RichTextEditor) with the ability to house Controls as well was huge for us. Any idea if and when it'll happen in the future ...Show All
Visual Studio Tools for Office GAC version of Microsoft.ApplicationBlocks.ExceptionManagement
Hi, We are using Microsoft.ApplicationBlocks.ExceptionManagement.dll and Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll in our VSTO project. Since these two assemblies are not public assembly ( not having public key token) we are not able to make our assemblies as public assemblies. Do you know whether we can make these two assemblies as public assembly or is there any assembly same as these with public assemblies. Thanks Hello Manash, The Enterprise LIbrary v1.0 and Enterprise Library v2.0 downloads provide complete source for the ExceptionManagement application block. So, it would certainly be possible to compile and sign them for distribution with your application. Cheers, TC ...Show All
SQL Server SQL Server is waiting for an internal operation to complete
When saving a database diagram, SQL Server 2005 frequently "hangs" for an indeteminate amount of time and displays the message "Microsoft SQL Server Management Studio is waiting for an internal operation to complete. If you regularly encounter this delay during normal usage, pelase report this problem to Microsoft." For one thing, this is an extremely lame and unhelpful message, as it gives no clue as to specifically *who* to report the problem to (Microsoft is pretty big, after all), and an "internal operation" is sufficiently ambiguous to mean anything. I cannot find any references to this problem, and it happens frequently enough that I'm finding it very difficult to use Management Studio for editing ...Show All
Windows Live Developer Forums Nearbys from my own geocoded address list
I have alis tof 1500 shops/stores in a GeoCode.xml file. I have been able to take a single store, put it into a xml and then run VE and get the shop to show with a pushpin!! Woot! Anyway, what I need to do is take the address entered by a consumer and then get the 5-10 nearbies of my 1500 and pushpin them. The pushpinnning is easy, the nearbies is not. The MSDN site for Virutal Earth mentions "proximity search capabilities" but then the next page has 10ish demos/wlakthroughs and none are "proximity searches" Any thoughts out there Hi I am also having similar problem Shall i ask you how you had depicted all the details of that stores. Have you noted all the latitude and longitude of all the st ...Show All
SQL Server transform Active X script to what?
HI I'm totally new to integration services, I was savy with DTS but now having been told to get on with it in SQL 2005 I'm a bit stuck. I've got an ActiveX task which basically does the following:- Function Main() DTSDestination("Title") = DTSSource("Title") DTSDestination("Surname") = DTSSource("LastName") DTSDestination("FirstName") = DTSSource("FirstName") DTSDestination("OtherNames") = DTSSource("PersonCode") IF (IsNull( DTSSource("LastName") ) ) and (IsNull( DTSSource("FirstName") ) ) THEN IF Not (IsNull( DTSSource("PersonCode") ) ) then DTSDestination("Surname") = DTSSource("PersonCode") El ...Show All
SQL Server Measure values for Invalid hierarchy memebers
Scenario ------------- A measure group is related to Time dimension at the Month level, has only the month_id column. The Time dimension also has levels defined below 'Month' like 'Week'. In the cube browser, when the measures of this measure group are viewed with the Time hierarchy below the Month level, values for week are copies of the Month values. How can this incorrect representation be avoided Can zero or n/a values be shown when we drill down to week values. It is like Sales Plan amounts are only defined at month level, the same amount being shown at the week level is incorrect. Regards mat There is a property associated with "Measure Groups" called "IgnoreUnrelatedDimensions". By default this ...Show All
Visual Studio 2008 (Pre-release) Bug Fixes
Hi, Being a developer I know that writing software is a tedious business. I would just like to know how much time is spent by the WPF team going through bugs at the official bug logging site ( connect.microsoft.com) The reason why I am asking is because I logged a few bugs that are really critical for the application we are developing, and I would like a "timeline" as how long the whole process would take before the changes is added in a next CTP (which already to long to wait) or maybe a patch Thank you very much, Jaco Hi, Thank you very much! I don't know why anyone has posted that bit of code before! It works! It even solves the issue with the BlockUIContain ...Show All
Visual Studio VS 2005 - can't float code nor design windows!!!?
I'm getting pretty sick of tabbing back and forth, especially when I have a 3 monitor setup with plenty of screen space to display my aspx form/design on one monitor and .vb code on the other monitor. One truely time saving feature doesn't make it into VS 2005 ! Come on Redmond, this is IDE basics 101 -- I can float my solution explorer but I can't float my code window nor my design window -- freakin' brilliant. Someone needs to let the MS design team out of the vacuum they seem to live in - hello, planet earth, useful features please. Argh, just more frustration with an already horrible dev tool. Rob. Hello- There is a "part way" solution to this problem. If you open the Options ...Show All
