GiovanniFreda's Q&A profile
Visual Studio 2008 (Pre-release) Glyphs.FontUri and installed font files
Hi, Is there an easy way to retrieve the font file for a particular font, so it can be passed to Glyphs.FontUri Specifying the filename (e.g. "c:\windows\fonts\arial.ttf") is works but doesn't seem very future-proof. Thx Hi Chris, Thanks for the reply. The application is a 3D surface chart using ViewPort3D. I want to paint the axis numbering on the axis-planes of the graph. The best way I could see to do text like this was create a GlyphRunDrawing, wrap it in a DrawingBrush and apply that to a material. The GlyphRunDrawing object requires a System.Windows.Documents.Glyphs object to supply the font definition and text, with the font face specified by Glyphs.FontUri. Specifying the fo ...Show All
Visual Basic restarting aborted threads.
is there any way to restart a thread that has been aborted I've coded all my work to be done in a thread in the background to keep my gui responsive so basicly a button click starts the thread with thread.start() and another button click cancels it with thread.abort() however when I try to run the thread a second time I get an exception stating that I can't restart an aborted thread is there any way around this Abort is not for logic flow, it is for exceptional circumstances. See http://msmvps.com/blogs/peterritchie/archive/2006/10/13/_2700_System.Threading.Thread.Suspend_280029002700_-is-obsolete_3A00_-_2700_Thread.Suspend-has-been-deprecated_2E002E002E00_.aspx if you're looking for a "suspendable" thread. ...Show All
Visual Studio Building error: Type or namespace name 'Reporting' does not exist in the namespace 'Microsoft'
Hi! I get the following error when trying to build my project: " Error 2: The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) " I use VS 2005 Pro and I have installed (and re-installed) the ReportViewer package found in "Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer". I have checked that the web.config file contains the http-handler: <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=XXXXXXXX" validate="true" /> & ...Show All
Visual Studio 2008 (Pre-release) Distort VisualBrush
I want to distort a VisualBrush by manipulating each corner of its definining rectangle independently. I've tried doing the following: VisualBrush vb = new VisualBrush; vb.Visual = MainGrid.Children[0]; PathSegmentCollection psc = new PathSegmentCollection(3); psc.Add(new LineSegment(new System.Windows.Point(Top + Width, Top), true)); psc.Add(new LineSegment(new System.Windows.Point(Top + Width, Top + Height), true)); psc.Add(new LineSegment(new System.Windows.Point(Top, Top + Height), true)); PathFigure pf = new PathFigure(new System.Windows.Point(Top, Left), psc, true); PathFigureCollection pfc = new PathFigureCollection(1); pfc.Add(pf); PathGeometry pg = new PathGeometry(pfc); Path p = new Path(); p.Data = pg; p.Fill = vb; ...Show All
Visual C++ where the vtable memory will be sotred?
hello , where the vtable memory will be created . Virtual functions callings are resolved at runtime . but when i write the class which has a virtual functions iam getting the size of the class = data + vptr but where the vtable memory is stored ya, everyone knows it should be in the memory. My doubt is in which area it will be allocated i.e how to address it . are they stored in my process address or any other address space . One more is if suppose my dll contains classes , what about these classes vtables . where the vtables of those classes are allocated please answer me ...Show All
SQL Server Table join problem
Hi CREATE TABLE [dbo].[Users]( [Id] [int] IDENTITY(1,1) NOT NULL, [UserName] [nvarchar](50) NULL ) ON [PRIMARY] INSERT INTO [dbo].[Users] VALUES('Unal') INSERT INTO [dbo].[Users] VALUES('Volkan') INSERT INTO [dbo].[Users] VALUES('Duygu') INSERT INTO [dbo].[Users] VALUES('Elif') INSERT INTO [dbo].[Users] VALUES('Mehmet') INSERT INTO [dbo].[Users] VALUES('Demir') CREATE TABLE [dbo].[Agenda]( [Id] [int] IDENTITY(1,1) NOT NULL, [ActivityName] [nvarchar](50) NULL, [UserId] [nvarchar](50) NULL ) ON [PRIMARY] INSERT INTO [dbo].[Agenda] VALUES('school excursion','1,3,4') INSERT INTO [dbo].[Agenda] VALUES('party','6,2,3,1') Table Name : Users Id UserName 1 Unal 2 Volkan 3 Duygu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Depth Testing (Z Buffer) not working, tried everything.. HELP !
Reading pages and pages of documentation, and the only info i can find on getting depth testing to work correctly is not working ! I've tried everything, and am almost ready to give up, please oh please someone tell me / give me a decent link on how to work this. i have set the D3Dpp ( D3D present properties up as shown on msdn. [code] d3dpp.Windowed = TRUE; d3dpp.SwapEffect = D3DSWAPEFFECT_COPY; d3dpp.BackBufferFormat = displayMode.Format; d3dpp.EnableAutoDepthStencil = TRUE; d3dpp.AutoDepthStencilFormat = D3DFMT_D16; [/code] I have set the render states as descibed on MSDN [code] g_D3DDevice->SetRenderState(D3DRS_ZENABLE, TRUE); g_D3DDevice->SetRenderState(D3DRS_ZWRITEENABLE, TRUE); g_D3DDevice->SetRenderState( ...Show All
Visual Studio Invalid argument for database
Hi, I have a report that is connecting to two different databases and retrieving data from a stored procedure in each. My problem is that when I try and set the destination of the database at runtime, I get the following error: Invalid Argument provided. Failed to open a rowset. Error in File C:\DOCUME~1\JAMES\LOCALS~1\Temp\temp_{5E8F9D66-6EFF-47E9-96F7-65D32A761DCC}.rpt: Invalid argument for database I have other reports connecting to the two databases and I am setting their destination at runtime with no problems. The only difference in this report is the fact that it is using stored procedures rather than tables directly. Strangely enough, when I set the designtime location of the database to be the location that i am sett ...Show All
Visual Studio 2008 (Pre-release) Cascading Deletes
Folks, I've read elsewhere in this forum that retrievals of associated objects must be done explicitly by invoking Load() on the association. Is the same true for deletes Are deletes cascaded If they're not, I would expect to be able to override the implementation of an Entity's Delete() method. I'm using the August CTP. Entity.Delete() is a concrete method. I would have to shadow the implementation of Delete() with a new implementation of Delete() in my entity classes in order to cascade the invocation of Delete() on an aggregate root to members of the aggregate. If cascading deletes is already there, how does it work If cascading deletes is going to be done explicitly as the retrieves are, will the Delete() method on Entity be made vi ...Show All
Visual Basic Where is refactor?
Where do I download the free version of Refactor I followed the link in the msdn video, but the download is not available. Jeremy Same behavior here. Is the partnership over between Ms and DevExpress.... If anyonw as a working link, it would be nice to post it. Ciao ...Show All
Windows Forms Best way to prevent event proc from running multiple times.
Hi all, What is the best way to prevent for example a button click event procedure from executing multiple times. Sometimes, users sit there clicking the button multiple times while the procedure is running. Then the procedure wants to run for each time the user clicked the button. Before I implement something, I want to make sure that the way I do it is the simplest yet most effective way. Thanks in advance, -Andy you could just disable the button then reenable it once the procedure has finished executing or display a "please wait...." message also. It depends on what you mean by procedure. If you mean running a process outside your application (calling 3rd party app) then you can wait for the exit of that p ...Show All
Architecture DOM Reference
Where can I find a complete reference to the DOM with all of the details about controls and their associated events. Is there an existing reference book Thanks In terms of the .NET framework, I got some interesting links: XML Document Object Model (DOM): http://msdn2.microsoft.com/en-us/library/hf9hbf87.aspx Accessing Attributes in the DOM: http://msdn2.microsoft.com/en-us/library/hk61a712.aspx Reading an XML Document into the DOM: http://msdn2.microsoft.com/en-us/library/azsy1tw2.aspx Hope it helps ...Show All
Visual Studio Tools for Office Managing documents from Custom Task Pane
I have been experimenting with VSTO 2005 SE and Office 2007 and would appreciate if someone could help me with the following: I would like to open different documents using a custom task pane and switch between these documents. I can create and open the first document. When it comes to the second document, it gets created on a different window (where my custom task pane is not visible). From the immediate window in the document VBA I can easily switch to another windows via Application.WIndows(index).Activate command. However I can't achieve the same result through the Add-In. Furthermore, the second document does not respond to the Ribbon button that toggles its display. How can I programmatically switch to the sec ...Show All
Windows Forms Removing Clickonce from a Project
Is there a way to remove Clickonce from a project that has already been published Ummm... what do you mean You can go to the Security page and uncheck "enable ClickOnce security settings" and the manifests won't be built until you go to the "Publish" command. ...Show All
SQL Server Log MDX en AS 2000
I'm wondering if there Is any way to log the mdx queries in AS 2000, I would like to know how to register the query that I am making when drill down in OLAP or when I use a Pivot Table. I have seen in the Analysis Server properties there is an option called 'Log queries sent to server', but register no MDX queries in the 'txt file'. I have heard about editing the repository connection string and add a log file but I am not sure how to set it and how does it works. Could anybody help me please Here are two links that might help: http://www.databasejournal.com/features/mssql/article.php/3080511 http://www.databasejournal.com/features/mssql/article.php/3091021 HTH Thomas Ivarsson ...Show All
