CodePfo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. ... TRIDEX VB.NET dimistified Can it be done YES YES YES YES .............
ok guys and girls a lot of people think you cannot use vb.net with XA, well either I am crazy or I am a wizard, it can be done the same way you do with c#, I have code for all the vb.net users who wold like to try it on my website, http://www.tridexconsultants.co.uk/pages/DirectxClasses.htm I am just waiting for the conetent pipe line stuff to get some animation into the models!!!! Every thing can be done including creating game components e.t.c, No secret to refrence an Assembly!!!! ... Tridex... If what you say is true then excellent stuff !! However - someone posted something similair in that they started a vb.net project and just referenced the XNA, which worked. BUT somew ...Show All
Visual Studio 2008 (Pre-release) ContextMenu propagation using HierarchicalDataTemplate?
Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects Best regards, Henrik Dahl Henrik, For a comprehensive overview of what to return/throw from ConvertBack, I suggest you read the second section of this: http://www.beacosta.com/2006/07/how-do-i-encode-xaml-using-value.html ...Show All
Visual Studio Team System Showing project portal in internal web browser
Does anyone know if there's a way to modify the "Show Project Portal..." function (from right-click menu in the Team Explorer side-bar), so that it displays the WSS site in the internal browser instead of opening IE Hi, Unfortunately this is hard-coded behavior and cannot be changed externally. I'm guessing that the reasoning behind this is that it would be easier to see the doc's side-by-side with VS and the work item form that way, but I don't know for sure. -Dennis ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mouse.IsCaptured
When running in windowed mode, this doesn't seem to do anything. When set to true, the mouse state coords do not update when the mouse is outside the window. Am I misinterpreting what it's supposed to do It seems like to do scrolling where your mouse is outside the window bounds, you'd need to know that fact. There is another big problem, for example: device.GraphicsDevice.SetCursorPosition(1,1,false) does not work, so i cant create normal camera model :((( or may be i do something wrong.... ...Show All
Windows Forms How can i draw graphics on a different form
When i wan't to draw some graphics on a different form than the one the code is written in, the graphics dont show If a call the other form form2 it would like like this Private sub Something Dim g as system.drawing.graphics =form2.creategraphics G.drawline(Pens.black,0,0,200,200) form2.show End sub But if i write the code in form2, the graphics will show. Is there a command i need to put in form2 shown event be sure you are not accessing the default instance of form 2 but create a proper instance of it and use that and show it. Example: Dim theSecondForm as new Form2() Dim g as System.Drawing.Graphics = theSecondForm.CreateGraphics() g.DrawLine(Pens.Black, 0, 0, 200, ...Show All
Software Development for Windows Vista SqlDatabaseActivity can't handle output parameters when calling a stored procedure
Dear all, I have just run into a problem with SqlDatabaseActivity which I downloaded from Microsoft. It doesn't understand output parameters in stored procedures, so it never returns any values for them. It assumes that all parameters are input only. I had previously discovered that it didn't handle @RETURN_VALUE, but fixed it myself. The failure to handle output parameters looks more fundamental, so I am reluctant to embark on trying to fix it. Is there a version of the activity which resolves this issue I do not yet have a blog appropriate for this, but am working on setting one up. Meanwhile, am I missing something Is there a place to upload things to this technical forum I have asked this before, but never go ...Show All
SQL Server how to set column name dynamically?
HI chaps my scenario is that, i have a table in which i have column such as col01,col02,col03....col31 i want to retrieve the records related to that column by specifying the name dynamically (by using loop) as fist three character are same ( 'col ' ) and i have to do integer increment in last two character ( 01... 31). Is it possible that I can use variable for column name , if yes how or is there any other way to achieve this task waiting for your reply regards fafnir wrote: Something like the following will work for you: create table DynCols (col01 int, col02 int, col11 int, col12 int) -- and so on, fo all 30 columns declare @query varchar(255) set @query = 'select ' declare @counter int ...Show All
.NET Development Pre-creating directory structure as per entries in .config XML file
Hi, I have developed a standalone tool using C# and .NET and built the .EXE of the tool. I also have the correspondig .exe.config file of the tool which looks like this: < xml version ="1.0" encoding ="utf-8" > < configuration > < appSettings > < add key = "rules" value = "C:\\DataScrubber\\Rules\\rules.xml"/> < add key = "lmpafile" value = "C:\\DataScrubber\\Data\\LMPA\\lmpa_data.txt"/> < add key = "lmpareport" value = "C:\\DataScrubber\\Reports\\LMPA\\lmpa_validation_report.txt"/> </ appSettings > </ configuration > My qu ...Show All
SQL Server How to script Role Memebers
Is there any way to script Databse Role(s) and Role Memeber(s) using SQL-SMO The workaround i am using here is, set the server connection execution mode to CaptureSQL and and use AddMemeber method while looping through Server.Database.Roles.EnumMemebers. This creates a string collection of sp_addrolemembers. (let me know if someone wants to have a look at this code) I couldn't even figureout how to do this using SQL Server Management Studion. When i script the entire database using SQL Server Mangement Studio, i dont see sp_addrolemember statements. Am I missing something Allen, Thanks for replying on this! However, this code only genrates sp_addrole statements. What I am looking for is to script rolememebers (sp_addrolem ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to display chinese character
I have already read http://blogs.msdn.com/garykac/articles/732007.aspx .But that solution is useless to display chinese character because there are 6000 more characters in GB2312 character set,far more than A-Z in english.We can not create a texture to hold all characters.It's too large. Is there a easy way to display chinese character I use the following approach: 1. Create a System.Drawing.Bitmap and System.Drawing.Font 2. Draw the string on the bitmap. Therefore, it can be chinese words 3. Create the texture by using the bitmap. (Read the thread "Generating Universe with System.Drawing.Bitmap before Xna.Texture" if necessary) 4. Dispose bitmap and font resource Maybe there are other better m ...Show All
Internet Explorer Development "IWebBrowser2::ToolBar Property" broken in IE7 RC1 ?
If some java script hide my toolbar i use the following code to show it : STDMETHODIMP CSMBar::DocumentComplete(IDispatch* pDisp, VARIANT* URL) { CComPtr<IWebBrowser2> pWebBrowser(m_pReflectWnd->GetToolBar().GetBrowser()); if(pWebBrowser != NULL) { BOOL bIsFeature; VARIANT_BOOL vbIsFeature = true; if( pWebBrowser->get_ToolBar(&bIsFeature) == S_OK && bIsFeature == FALSE ) { pWebBrowser->put_ToolBar(VARIANT_TRUE); } } return S_OK; } This worked fine in IE6 and IE7 beta2 but since IE7 beta 3 the code is not working. I am seeing similar behavior. My web application installs a client-side control that uses IWebBrowser2::ToolBar to enable / ...Show All
SharePoint Products and Technologies Can not creat Site collection in wss 3 release version
hi all... My installation of WSS 3 was successful.. My config Windows 2003 SP1 (Part of Domain "testwss") Framework 3 (Release) Wss 3.0 (Release) Sql 2005 ( On other machine which is part of Domain "testwss") IIS 6.0 office 2003 pro after creating application successful i am not able to create site collection i get the following page. The Windows SharePoint Services Web application has been created. If this is the first time that you have used this application pool with a SharePoint Web application, you must wait until the Internet Information Services (IIS) Web site has been created on all servers. By default, no new SharePoint site collections are created with the Web application. To create a new sit ...Show All
Visual C++ Video Tutorials: Question
I noticed they have video tutorials on the Microsoft site for every language except C++, as far as I know, or am I just missing them If they dont have them there could someone please tell me where they are, or a good absolute beginner guide. Hmm, I found those, but they dont look anything like all the other programming language videos Microsoft put out, all the "Absolute beginner" guides. ...Show All
Visual Studio Team System Moving labels
If a label has already been applied to earlier versions of files in a project. How can I move this label to the latest versions to any versions Thanks! Maggie How to do this using the TF client api I know there is a method VersionControlServer.CreateLabel(), but i need a DetachLabel() method to remove the label from a single (file,version), and an ApplyLabel method to apply the label to a single (file,version). Is there a way to achieve this ...Show All
Visual Studio Express Editions Richtextbox: changing string(s) into pictures
Hi Is it possible to change a word (string) into a picture (I know it's possible to change a certain string into another string with the replace command.) (for exemple: the use of emoticons. when entering a certain string that changes into the corresponding emoticon.) If this is possible, how do I need to do this. Thanks in advance. Shoot, didn't think that the forum bug was going to mess up my post. Giggle. The lamp icon in the post replaces "[ i ]" (without the spaces). ...Show All
