Oleg Kalenbet's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Day 1 - Where you at?
So day 1 of the XNA madness has come to a close, with many more to follow. How far has everyone gotten on their first game projects I haven't spent nearly as much time as I wanted to on this, but I managed to get my head to bounce around the screen. I think the next step would be to add another head (i.e. angelina jolie) to bounce around. Maybe I'll even add collision detection so that if the heads hit, she says something like "I want you so much!" and I go "Yeah, whatever" and bounce. ...not sure if I should have mentioned the idea for this game...now everyone's going to steal it and make millions. But enough about my awesome game in the works. If anyone has anything worth checking out, upload it somewhere and post the link in this th ...Show All
SQL Server what s the equivalenet of object_definition in sql 2000 pls
This is not working for me in sql 2000. It works well in sql 2005 use mosaikdb741 select object_definition(o.object_id),o.name from sys.objects as o thanks a lot how d this translate using sp_helptext then exec sp_msforeachdb ' select '' '', o.name, object_definition(o.object_id) from [ ].sys.objects as o where object_definition(o.object_id) like ''%mykeyword%'' and o.type=''P''' Thanks a lot ...Show All
Windows Forms Custom Form Control (Label)??
Hi: I'm trying to create a TYPE that is a Label but with the Font and margins changed. I've learned that the font size, etc. are not available to write at run time. So, I need to be able to create a new Label at run time but with slightly different property values than the stock Label. I can't figure out for the life of me how to do that. I can create a User Control and put a Label on it but I really just want a slightly different Label. Can I do that in VS 2005 C# If so, how Yes that helps. I can probably make that work for me. I need to figure out how to tighten up the margin too but I can probably find that. Is there no way to create a reusable 'custom label' ...Show All
Smart Device Development Custom Control doesn't invalidate original drawing area when resized
Hello, I'm having a problem anchoring and resizing custom controls on Windows CE 5.0. For testing purposes I created a simple custom control that overrides OnPaint and draws a border. The issue is that when I resize the control, either programmatically or by using anchoring, the original region of the control isn't updated. If the control is docked, the entire drawing region updates correctly. Does anyone know why this is happening I'm using CF 2.0 SP1. Chris That did the trick! I'm still curious why resizing a custom control at runtime doesn't invalidate it automatically. It does force a call to OnPaint, so what extra actions are taken by calling Invalidate Thanks for the help. Chris ...Show All
Visual Basic array of controls..
is it possible to create array of controls in UI.. i need to create array of buttons (as similar to VB6) is there any way to do this Irrespective of if you want to create you own collection of buttons - you still need to add the controls to the form controls collection. So in some respect your duplicating you efforts of having it in the form controls collection as well as another array. Once the highlighted line is added they will appear on the form. So the code will be Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim theButtons(5) As Button ...Show All
Visual Studio Express Editions Data grid view controls
How do i get the data grid view box to work in my application. For instance save data to a file and open data from a file, and get the copy, cut and paste controls to work in my application. e.g. the copy control in a RTB = rtb.Copy and the copy control for a html editor is HTMLDoc2.exeCommand("Copy"), what is this command in the data grid view box Can any one help im trying to make several different applications and am now trying to make a spreadsheet application that is what i need the datagrid control for, can u help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skeletal Bone Animation And Skinning With Collada Demo
I thought that other XNAers would find the news that Benjamin Nitschke has posted a demo and source code showing how to perform Skeletal Bone Animation And Skinning With Collada over at http://exdream.no-ip.info/blog/2007/02/25/SkeletalBoneAnimationAndSkinningWithColladaModelsInXNA.aspx I found it most interesting, maybe others will as well. It is very cool. Too advanced for me. I need to sit down and study the code. I am sure there are lots of goodies inside. :) If Benjamin is reading this, maybe he should just combine the source and binary into one package. The source compiles, but throws some exceptions (missing texture and a shader I think) at runtime. I think most people are going to end up downlo ...Show All
Visual Studio VS 2005 and Microsoft.Office.Interop
Hello. I am new to VS. I try to make my custom Ribbon. I fallow MS instroction how to do it but my VS is Missing all Microsoft.Office.Interop references. I installed Office 2007 PIA but still VS cant finde Microsoft.Office.Interop Could you give me Tips how to configure VS to use Microsoft.Office.Interop Thanks in advance. can you tell me: what reference are you trying to add which article/link you are trying to follow from what I have just tried, it does not exist in the Microsoft Office reference but the Excel/Access reference ...Show All
Visual C# Is possible to use .NET 2.0 in VS 2003?
Is possible to use .NET 2.0 in VS 2003 yup..i agree with them, u cant do like this. because there are 2 difference version of framework. there got many new components in 2.0 that don have in vs2003 or 1.1 so vs2003 can't support it.... :) ...Show All
Visual Studio Batching and meta data
Hi guys, i used to think batching was stupid, but now i think it is rather useful :) I have a bunch of WiX project files that need to be built into MSIs, and i am trying to achieve this with batching. My problem is how to access the custom metadata of each item. Here is an example: <ItemGroup> <WiXProjectFile Include="MyProduct.wxs" > <TargetObjectFile>MyProduct.wixobj</TargetObjectFile> <LinkableObjectFile>wixui_mondo.wixlib</LinkableObjectFile> <LinkableObjectFile>another_lib.wixlib</LinkableObjectFile> <LanguageFile>WixUI_en-us.wxl</LanguageFile> <MsiName>MyProduct.msi</MsiName> </WiXProjectFile> </ItemGr ...Show All
Visual Basic Unknown ThreadCallbackMessage message from vb.net app as logged by Spy++
Where does the 'Registered:"WindowsForms12_ThreadCallbackMessage' message come from as listed below in in this extract from Spy++ The MOUSEWHEEL is system generated and the WM_USER's are generated from a C++ dll's PostMessage function. But the last message, teh ThreadCallbackMessage is puzzling me. Thanks for any ideas. -greg S WM_MOUSEWHEEL fwKeys:0000 zDelta:120 xPos:646 yPos:577 0005072A R WM_MOUSEWHEEL 0005072A P message:0x0409 [User-defined :WM_USER +9] wParam:00000003 lParam:00000000 0005072A P message:0x040A [User-defined :WM_USER +10] wParam:00000003 lParam:00000000 0005072A P message:0xC239 [Registered:"WindowsForms12_ThreadCallbackMessage"] wParam:00000000 lParam:00000000 By ...Show All
Visual Studio 2008 (Pre-release) Creating Animated GIF files in WPF
Hi, I just posted a short article on my blog describing how to create an animated GIF file from snapshots of WPF FrameworkElement objects. I have to add that the code isn't complete, and that's partly why I post here. I'm using RenderTargetBitmap and GifBitmapEncoder objects to get this to work, but the final .gif file has a flaw. When displayed (at least in IE7), the prior frame isn't erased before the next frame is rendered. The concept I present is very useful (in my opinion ). For instance, this approach can be used for showcasing WPF animations to viewers who don't have .NET 3.0 runtime installed. It would be great if anyone has suggestions for how to improve on the code, and solve the animation flaw. Thanks, ...Show All
Visual C++ Wizard problem
I tried to use VC++ 2005 Express, and when trying to start a new Win32 console application a wizard appears, but it doesnt do anything. I modified the thing in line 441 to 445 in the sdk file, but nothing happens. Uh oh. There are two major causes for this. The first is caused by a corrupted Visual Studio installation (this could be a hand edit gone awry, a virus initiating its payload, one of your children becoming too curious, a hard disk fault, ...). Unless you can figure out what's causing the problem (are you sure AppSettings.htm is unaltered ), you may have to perform a repair install of Visual C++. That's done via the Add/Remove Programs Control Panel. The second major cause is an underlying ...Show All
.NET Development MSXML 6.0
I was using MSXML 4.0. Today I discovered MSXML 6.0 and downloaded and installed it. However, the documentation for XMLHTTPRequest examples all are as follows: var xmlhttp = new ActiveXObject("MSXML2.XMLHTTP. 3.0 "); xmlhttp.open("GET", "http://localhost/sample.xml", false); xmlhttp.send(); WScript.Echo(xmlhttp.getResponseHeader("Server")); I would like to know if the version number is correct. Thanks. kk It is not correct, looks like the manual was copy and pasted from an earlier version . This and other mistakes in the version 6.0 documentation have been brought to the attention of Microsoft and they have vowed to fix them. ...Show All
Visual Studio 2008 (Pre-release) Setting Window.Icon to Vista 256x256 PNG icon causes a FileFormatException
If I set the Icon property to a Vista icon, I get a FileFormatException stating that the image format is unrecognized. If I try the same thing with an old Windows XP icon (without PNG compressed images) it works correctly. I simply cannot believe that WPF doesn't support Vista icons. Asbjorn When you save the icon file with a 256x256x32 size picture without PNG-compressing the picture, WPF seems to be able to cope with it. For example in Axialis Icon Studio you can rightclick the icon and disable the PNG-compression. I reckon there are other tools to do the same thing out there somewhere. ...Show All
