N B's Q&A profile
Windows Forms Draw a set of lines to a Bitmap
Hi Suppose you have a set of lines: (20; 20) - ( 20,30) ( 2; 45) - (342,40) (20; 20) - ( 20,33) ( 0;240) - (-60,65) To draw this, you have to translate the points to the origin. I do this by calculating the bounding rectangle, rec . The result is: (80; 0) - ( 80,10) (62; 25) - (402,20) (80; 0) - ( 80,13) (60;220) - ( 0,45) I now want to draw these lines to a Bitmap with a given resolution and line thickness. Hi again Another part of the team Im working with, work with drawings. These are in 600x600 dpi. My image-output they use as an "overlap"-image (to verify that their drawing is correct), and thus needs to be in the same resolution. That's why I need this resolution. Kind regards ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No templates? help please
Hi! I'm extremely new to this, and have little to no experience in these type of things. I installed Microsoft Visual C# Express Edition and registered it. I installed Microsoft XNA Game Studio Express. I installed Microsoft DirectX SDK October. Everything seems fine.... I tried to follow a tutorial on XNASpot.com. Everytime I click "New Project", I get an error. "No Visual Studio template found. See the application log in the Event Viewer for more details." Then, a blank window labeled "New Project" opens, and reads Templates: There is nothing here, no templates to select from. I've tried uninstalling, reinstalling, repairing....I cannot figure it out. Please ...Show All
Game Technologies: DirectX, XNA, XACT, etc. When to stop a Quaternion.Slerp?
What methods exist to tell when to stop performing a Quaternion.Slerp When does the slerped quaternion match the desired quaternion close enough I can try a brute force method and compare individual parameters (X, Y, Z, W) but I'm wondering of there is another way. Thanks. I don't know how you are storing position or orientations. But lets say you have the forward vector of ship A and the foward vector of ship B, and lets say both vectors are normalized already, then you could find the axis and angle to rotate A to B by: angle = acos(A dot B) axis = norm(A cross B) rot = new quaternion(axis,angle) multiply ship orientation by slerp (indentity, rot, step) It's late at night and ...Show All
SQL Server Cross assembly or cross domain calls not supported
If I compile a simple .NET DLL with the following function and register it as an assembly in Analysis Services: public static int MyFunction(object o) { return 99; } When I run the following query I get an error which reads " Execution of the managed stored procedure failed with the following error: Cross assembly or cross domain calls not supported!. Execution of the managed stored procedure failed with the following error: Cross assembly or cross domain calls not supported!. Execution of the managed stored procedure CSng failed with the following error: Microsoft::AnalysisServices::AdomdServer::AdomdException. " with member test as MyAssembly.MyFunction(CSng("2.5555")) select test on 0 from ...Show All
SQL Server Error on Named Calculation
When I creat a Named Calculation with the following code: case when [Sales]<1000 then 'Below' when [Sales]<2000 then 'O.K.' when [Sales]>=2000 then 'Good' else 'None' end I get error on save: IErrorInfo.GetDescription failed with E_FAIL(0x80004005). Thanks. Joe. ...Show All
Software Development for Windows Vista Windows SDK Integration with VS 2005 -- now on Vista 5600
I don't know what I'm doing wrong. I have Visual Studio 2005 installed and running. I am able to compile most of the WPF samples (that I've tried) like WPFSamples/Demos/15Puzzle, CubeAnimation, etc. This is all running on Windows Vista build 5536. Now I would like to create my own xbap projects. So I download the Windows SDK from http://www.microsoft.com/downloads/details.aspx FamilyID=117ecfd3-98ad-4d67-87d2-e95a8407fa86&DisplayLang=en which specifically says that it works with build 5536 (and 5600) and installed it. Items show up in the Windows start menu. But no new project types show up in Visual Studio 2005. Am I supposed to download anything else According to http://windowssdk.msdn.microsoft.com/en-us/library/ms752087.aspx ...Show All
SQL Server Creating a report from analysis server: Report Execution Error
It seems like a simple enough task: I have an analysis server cube with a transactional table which, of many fields, stores a datetime field called DateAdded. If I go into Report Manager and create a new column report and drag DateAdded over, it shows all date added results in the recordset. If I right-click on the field value in Design Report view and change the expression to state: DATEONLY(DateAdded) (I want to just get the dates from the recordset grouped together) I get a dialog box stating: Report Execution Error The report might not be valid or the server could not process the data. A grouping expression must be either a scalar field or an entity. ---------------------------- Semantic query execution fa ...Show All
Windows Search Technologies "Unable to display preview." on network share results
I'm using Desktop Search 3.0 RTW along with the UNC/FAT add-in, and I'm getting an "Unable to display preview" message on every result that's not on my local machine (e.g., my R: or Z: drive over the network). Is there a problem or am I doing something wrong Thanks, Tim Tim, Unfortunately, previews are not currently supported with the UNC/FAT protocol handler. We are working on fixing this in future releases of the add-in. Paul Nystrom - MSFT ...Show All
SQL Server sql rs 2005 hosting in canada
Could anyone recommend a good canadian hosting company that provides reporting services I would prefer 2005, but would settle for 2000. Cost is less important than good developer support. Thanks ...Show All
SQL Server Changing FormatString for attribute of a dimension
i can't change the value of a format string for attributes of dimensions. For Cubes is easy, right-click on the measure -> Proprieties -> FormatString but for the attributes of a dimension I cannot find where I can change this proprieties.. Someone can help me thank you Riccardo i can't do what i want to do :) my problem is: I have an attribute in a dimension which assumes values from 0.0001 to 0.0099 I don't know why but this attribute when I browse the dimension is visualized as ".0001" (without the zero) I want this zero!! :) ho can I to make it appear with CustomRollupOptions property! ! ...Show All
Visual C++ VC++ 2005 Win32 redistributable
I would like to make a single file, redistributable "Hello World" program. Is there a way of compiling any depenent files/DLLs into the helloWorld.exe program #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { printf("Hello World!!!\n"); return 0; } OR #include "stdafx.h" #include "iostream" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Hello Object World!!!\n"; return 0; } *** please test (must run on a computer other than the one used to compile) I am not sure I understand. I think you are asking how to create an executable that does not need any other files and therefore does not ...Show All
Visual Studio 2008 (Pre-release) Create style for a rectangle in Resources.xaml
I have a rectangle in a custom control: < Rectangle Name = " myBorder " ></ Rectangle > And I want to programicaly apply styles to it using c#. These styles will be in Resources.xaml. I’ve found exmples on how to create styles for textboxes and other controls, but not a rectangle. I need to set these properties: Stroke StrokeThickness RadiousX RadiousY Fill Can someone please show me what a the style for this would look like in Resources.xaml Thanks <Style x:Key="MyRectangleStyle"> <Setter Property="Stroke" Value="Black"/> <Setter Property="StrokeThickness" Value="1.0"/> ...Show All
Software Development for Windows Vista Application Verifier LUA PRIV/WRP error during install
I am performing the following steps for the Certified for Windows Vista Test Case 20 1. Open AppVerifier 3.2 2 . 2. Attach application install executable to AppVerifier including msiexe.exe. a. Enable the LuaPriv check 3. Install application 4. Once install is complete, view AppVerifier Install Logs. a. Search logs for LuaPriv 5. For each LuaPriv Error: a. Check Error to ensure the application did not attempt to write to or replace any WRP Registry Key or Windows System File. Make note of any WRP Registry Key or Windows System File that the application attempted to write to or replace. From the generated XML file you are suppos ...Show All
.NET Development call variable from HTML
Hi, I have the following code in code behind of vb.net. Dim _mode as string Protected Sub Page_Load() Dim sb As New StringBuilder Dim scriptStr As String sb.Append( "<script language='javascript' type ='text/javascript'>" ) sb.Append( "var text;" ) sb.Append( "var itemID = document.getElementById('" & txtID.ClientID & "');" ) sb.Append( "text = window.showModalDialog('DialogPage.htm');" ) sb.Append( "alert(text);" ) sb.Append( "itemID .value = text;" ) sb.Append( "alert(itemID.value);" ) sb.Append( "</script>" ) scriptStr = sb.ToString() RegisterStartupScript ...Show All
Visual C++ Every combination help
Hey guys i am making a pq therom program. I am to the part where i have a[20]/b[20]. I need to do every possible combination like a[1]/b[1] and a[1]/b[2] and so on. What can i do so i get this. I need all the answers in another array. Hello Re question: Every combination help Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
