ChocolateBob's Q&A profile
Visual Studio Express Editions Help, its not loading or doing anything usefull.
I downloaded the program fine and it appears to be ok but when ever i save something, it says it saves but then when i try to retreave it i get 1 ) the start page 2 ) A run into an error and this system cant load box can you help me out Thanks rilm This is a problem I had also, I just took me some time to figure it out. Here's what needs to happen... 1) When you have your project, you need to go to the "File" menu and select "Save All", then save the ENTIRE project in the "Projects folder of the program, which it does by default. [You might have clicked just SAVE and it saves the .cs code file. You need to save the entire project in the "Projects Folder"] 2) When t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 3d perlin noise on pixel shader
I have a mesh which wraps in such a way that I can not get continous texture coordinates all over, so I thought that I would generate the pixel color with a noise function. I want to generate 3d perlin noise on a per pixel basis, where I calculate for example 5 octaves for each pixel and pertubs its default color somewhat with the noise. The thing is.. I feel that this should not be that dificult, but still I have not seen example of this. Some generate 2d textures with perlin noise and then use that texture, but that is not what I want. I want to tage a pixels 3d world position and use that as my noise sample point. I already have a noise function running in the main application, where I hash a 3d position into a float in the interv ...Show All
Windows Forms custom shaped forms
Hi I want to use an image as a mask to shape the forms. I have found some methods but they are not usable because they are slow. Does anyone know some faster methods Yeah, you may set the form's region property directly when the form is loaded. Here's an example, void Form1_SizeChanged(object sender, EventArgs e) { SetEllipseRegion(); // .... } void Form1_Load(object sender, EventArgs e) { SetEllipseRegion(); } void SetEllipseRegion() { // Assume: this.FormBorderStyle = FormBorderStyle.None Rectangle rect = this.ClientRectangle; using (GraphicsPath path = new GraphicsPath()) { path.AddEllipse(rect); th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting Direct3D 10 Samples (April SDK) running
Hi! I'm using the Vista Beta 2 and I'm trying to run the Direct3D 10 samples in the April SDK. Unfortunately they all don't work on my computer. They should work in a Direct3D 10 software emulation mode, right Do I have to change any (DX) settings Or do I need extra software Thanks Nico Hi, When I run Direct3D 10 samples i get a message that says This program needs to use the Direct3D 10 reference device. This device implements the entire Direct3D 10 feature set, but runs very slowly. Do you wish to continue Can someone tell me why does it do that Thanks ...Show All
SQL Server SSIS + SSAS => Fairly consistent hanging?
I have an SSIS package that reprocesses part of my cube. I've tested that it works, and deployed it as a SQL Job to run regularly. Strangely, it seems that the SSAS server hangs fairly regularly and when the SSIS job starts to run, it'll be stuck for hours. Is this expected Should I be bumping our SSAS service nightly Are there tools available to monitor SSAS service health I may have run into this with a client. (It's a hard one to troubleshoot.) We attributed it to the fact that several of our fact tables were built on top of a really, really expensive named query. We guessed it was just overloading the database with too much parallelism. And switching MaxParallel to 1 seemed to fix the problem. (Tha ...Show All
Software Development for Windows Vista Vista X64 RTM and network printer
I can't share a network printer on a Windows Server 2003 machine with my Vista X64 RTM. I prompts me to install driver by locating a "(unknow) inf" starting from a local home directory. Never figured it out. Has the Microsoft folks lost track of the I386 directory on Vista installation disk Hello weiqj, This is a technical configuration issue, I would suggest reposting your question in the TechNet Printing Forums at: http://forums.microsoft.com/TechNet/ShowForum.aspx ForumID=717&SiteID=17 to receive the best response as this forum is geared more towards developers. Thanks! Matthew Braun ...Show All
Visual C++ inconsistent DLL linkage
My code is producing this: "d:\...\createsampleproject.cpp(11) : warning C4273: 'CreateSampleProject::CreateSampleProject' : inconsistent dll linkage" When I look at the line of source referred to, I see: #ifdef CREATEPRJ_EXPORTS #define CREATEPRJ_API __declspec ( dllexport ) #else #define CREATEPRJ_API __declspec ( dllimport ) #endif How can I solve that problem Thank you, I changed it to #define DllExport __declspec ( dllexport ) #define DllImport __declspec ( dllimport ) and now it works. ...Show All
Visual Studio Team System How to automatically create workitem when Team build fails?
Hi, How to automatically create workitem when the unit test fails/ incomplete code coverage during Team build Thanks... Steven St. Jean wrote a bit about this in http://sstjean.blogspot.com/2006/10/tfs-team-build-on-failed-build-assign.html . Buck ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing points
Hi - new to C# and XNA, but an experienced C/C++ coder. Maybe I'm being an idiot, but having gone through the XNA Game Studio Express (beta) docs I can't see any convenient way to draw 2D primitives such as rectangles, lines or points (ie. things other than sprites). Is there any equivalent in XNA for a Direct3D point list for example I just want to plot some raw pixels in 2D, and right now the only way I can see to do that is to create a big Surface or Texture2D and then use the setData method, which seems a little wasteful to me. Is there a better practise for this kind of thing, a more efficient way to just set pixel values If you look at this older post, it might help: http://forums.microsoft.com ...Show All
.NET Development Connection String
Nooby here Yes, you may remmeber me Anywho I am trying to set up a connection to the MSQL db SO far I have using Sysem.Data.SqlClient; at the top of the page Now I am trying to make the connection string, But I dont want to use the SQL useername and password I want to use the connection string Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\db1.mdf;Integrated Security=True;User Instance=True How would I anitiate this If I do System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\db1.mdf;Integrated Security=True;User Instance=True"); I get the following error on this code ...Show All
Game Technologies: DirectX, XNA, XACT, etc. In the final release of XNA i would like to see this!!!
There are many different types of games. I would like to see when you select the new product tab and then select game tab. to have a genre tool come up where you can select Action, RPG, Stragety, so on. So the tab would help guide you towards a specific game genre instead of one huge slate to work with. I know its alot of work, but this would be a huge bonus to people who are just starting programing. hell it would help crush cost and time! please add this inthe future Starter kits are a feature of Visual Studio, not just XNA GS. See the Visual Studio docs for how to create starter kits . Yes, they are basically vs templates. Cheers, Leaf. ...Show All
Smart Device Development celogdata confusion
Hello all some confusion about function: void CeLogData(BOOL fTimeStamp, // Should timestamp be used WORD wID, // ID of event/data. PVOID pData, // pointer to data buffer WORD wLen, // Len of data (in bytes) DWORD dwZoneUser, // User-defined zone DWORD dwZoneCE, // Predefined zone WORD wFlag, // data flag BOOL fFlagged); // Is data flag being used 1) i guess, we cannot use dwZoneUser 2) also what is wID ::::: i mean i am paasing one string to this,,, so in place of 'wID' i need to use 'CELID_RAW_WCHAR' if i am using my own ID thatt is CELID_MY_EVENT (CELID_USER+1)...than it is not logging my string in that celog.clg file as i am not able to see my string in txt file using ...Show All
.NET Development Compatibility of serialization between .Net v2.0 and .Net v1.1
I have a remote v1.1 client accessing a v2.0 server using HTTP remoting with binary formatting. The call succeeds but on the client I get this error message (presumably during deserialization of returned parameters) : Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks - Source: mscorlib - Stack: Server stack trace: at System.DateTime..ctor(Int64 ticks) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadDateTime() at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadValue(InternalPrimitiveTypeE code) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadMemberPrimitiveTyped() at System.Runtime.Serialization.Formatters.Binary.__BinaryPars ...Show All
Visual Studio Team System MetaData.xml & MethodologyTemplate.xml
Hi How can I find these files where are they located exactly and how can I have access to them thnx Hello The files you are referring to are old TFS process template files that have since then been replaced or removed from the template.The main xml file in TFS V1 is called processtemplate.xml and that is probably what you want to look at. To get the process template files, connect to the Team Foundation Server using Team Explorer, then use the Process Template Manager to download the required process template on to client machine. Do let me know if there are any additional questions! Thanks! Yogita ...Show All
Visual C# How to create the pop up on the button click event in WPF
Hi, I am developing an application where in, i require that the popup canvas or panel should be displayed above the button which is clicked by the user. The canvas should appear when the user clicks on that button. I am developing this application in wpf.Can anyone provide me the tutorials or links from which i could find the reference.Any help would be appreciated. Regards, spshah Hi, You can repost this issue on http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=117&SiteID=1 As there you wil find developers using WPF. Best regards ...Show All
