jorijo's Q&A profile
Visual Studio Tools for Office Read Application Manifest Without Using ServerDocument
Does anyone know how to read the application manifest from the currently opened document without using the ServerDocument class I know you can loop over all the Shapes in the document and until you encounter the shape with the ProgID "VSTO.RuntimeStorage.1". But then what do you do with that shape How can I extract the XML for the embedded application manifest Thanks in advance for any advice... I'm intrigued by this answer - I've been looking for a managed class to deal with IStorage - I had a feeling there would be something in VSTO - but the documentation is rather obscure - can I use the ServerDocument class to load any structured storage or is it specific to Office ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Out of video memory when I have plenty (128Mb)
I've had several computers fail to create the DirectX device in full screen mode because of an "out of video memory" error. In two cases, the cards have 128Mb, and I'm sure it's not using even close to that much video memory (front buffer + 2 back buffers = 3*1440*900*4 = 14.8Mb (not even close to 128Mb). On one computer, I was able to solve the problem by lowering the DirectX quality settings from the control panel. On the other computer, that didn't solve the problem. I'm sure my program isn't requesting high quality settings (MultiSample = none, MultiSampleQuality = 0). Does anyone have any idea of why this would happen, or what I can do to fix the problem Thank you, Jeremy Blanc - The debug ...Show All
Software Development for Windows Vista Question about custom State Activity
I have a custom activity which inherits from StateActivity. It contains EventDriven activity with HandleExternalEvent and SetState child activities. I implemented my own FreeFormActivityDesigner and overrode the OnPaint and IsVisible methods. In design mode, when I put two of my created actyvities into StateMachineWorkflowActivity, and link one to another by using TargetStateActivity property of SetState activity, the line which should link activities doesn't apear code of activity,fragment: [ToolboxItem(typeof(MyToolboxItem))] [Designer(typeof( activity1Designer ), typeof(IDesigner))] public partial class Activity1 : StateActivity { .... when remove line: [Designer(typeof( activity1Designer ), typeof(IDes ...Show All
Visual C++ Multithreading in C++
Hi, I am learning multithreaded programming. I have a question with a hope someone can answer. I want to find distances between points using thread (Win MFC) Here are just an example of some points that I want to find the distance between them. For instance, p1 to p2, p3, p4, p5 p2 to p1, p3, p4, p5 p3 to p1, p2, p4, p5 p4 to p1, p2, p3, p5 p5 to p1, p2, p3, p4 with p1(x1, y1) = p1(42.67,73.75) p2(x2, y2) = p2 (61.22, 149.9) p3(x3, y3) = p3(30.27, 97.73) p4(x4, y4) = p4(35.18,101.83) p5(x5, y5) = p5(41.15, 104.87) using formular distance = square root (square (x2 - x1) + square (y2 - y1)) If I have many many more points than those five listed above, how can I do it using multithreaded and what is the best w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing a simple rectangle
Hello - I'm trying to use XNA to draw a simple rectangle at the moment, using DrawIndexedPrimitives. I've tried tweaking and adding many different things but I can't even get anything to show, just the plain black screen (and yes, everything else like textures are rendering fine). Here's my code: Declarations: Protected vb As VertexBuffer, ib As IndexBuffer Protected vertexData As VertexPositionColor(), indexData As Integer() DeviceCreated event: vb = New VertexBuffer( _ graphics.GraphicsDevice, _ GetType(VertexPositionColor), _ 4, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed) ib = New IndexBuffer( _ graphics.GraphicsDevice, _ GetType(Integer), _ 6, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed ...Show All
SQL Server Is it true?
Microsoft E-Learning products are currently available for purchase only within North America at this time Jezz, bad luck I am currently living in Spain... ...Show All
SQL Server SSIS Related Questions
0) We are migrating data from SQL Server 2000 OLTP design to SQL Server 2005 OLAP design. 1) We have an data flow task SSIS package. 2) We managed to send a mail with various variables & their values in subject or body of mail. 3) How do we send mail with details of Error/Warning using OnError/OnWarning events 4) Can we have bad tables i.e where records which failed to migrate get inserted into. If yes, what are the steps to implement this. 5) Can we have a mix of in-built & custom logging. Is logging provider necessary to do logging. What logging provider to use 6) Where are the errors that come during build, deploy, install and execute stored Is there a log file(s) & what it their location 7) Please post ...Show All
.NET Development .Net Framework 3.0 hangs during setup
I've tried both the web and full dowloads (dotnetfx3). Both fail at exactly the same point: the screen show "Setup is loading installation components. This may take a minute or two". The status bar gets to about the 100% point, but then remains that way. The last few lines of the log show: [02/25/07,11:35:08] WapUI: Entering CFeaturePage Create [02/25/07,11:35:08] WapUI: CFeaturePage::PopulateTree: Creating a new CComponent Object... [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Finished creating the page. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Getting the Header. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Finished Getting the Header. [02/25/07,11:35:08] vs70uimgr: CUIMgr::ThreadUI(): Current page does ...Show All
.NET Development Reflecting parameters defined with the param keyword
I'm having difficulties finding information on how to differentiate (via Reflection) between the following method signatures: void Foo(object[] arg); void Bar[params object[] arg); Is there a way of telling through Reflection if arg is defined with the params keyword or not Cheers! Sure there is. The params keyword is just a shortcut for the System.ParamArrayAttribute, so that's what you should look for (via ParameterInfo.GetCustomAttributes). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Second map channel in ModelProcessor
I'm currently exporting some custom data in my own model processor. I get the vertex position from the first channel in geometry.Vertices.Channels and the uv coordinates from the second channel. I'm using the fbx file format saved out from MAX8. I want to export a second set of uv coordinates but can't seem to get them to come through. ie the number of geometry.Vertices.Channels is always two. I've tried using the specular and opacity channels in MAX for the second map channel but with no luck. The second texture referenced also doesn't seem to be exported. Is there any special channel I need to use or anything I'm missing I just upgraded to version 11 of the FBX plugin from version ...Show All
SQL Server server groups
is there a way to enumerate through existing server groups Im trying to create children server groups. OK, this is connecting to your local machine for the registered servers and groups. Thanks for showing me this aspect, as I'd focused strictly on the server-side objects. Here's some code I'm playing with to get the existing registered servers and their groups: Dim sgTop As ServerGroup Dim sgColl As ServerGroupCollection Dim sgGroup As ServerGroup Dim rsColl As RegisteredServerCollection Dim rsRegSvr As RegisteredServer sgTop = New ServerGroup("ExistingGroup") rsColl = sgTop.RegisteredServers For Each rsRegSvr In rsColl Console.WriteLine("SrvGrp: ...Show All
SQL Server SQLAGENT CAN't START
SQLAGENT CAN't START this log: SQLServerAgent could not be started (reason: SQLServerAgent must be able to connect to SQLServer as SysAdmin, but '(Unknown)' is not a member of the SysAdmin role). I am receiving the same error. For some odd reason my sqlserveragent will not start. I am using a domain accoutn that does have access to sysadmin on sql server 2005. were you able to get this running. ...Show All
SQL Server how to install SQL server as a service?
as the qn says, how do i do that need it to be always ON. i wanted to ask if i can set SQL server to start as soon as my system starts so that it is always on. I think your reply answers my qn. will try out the command ...Show All
Visual C++ This code is uncomplete I guess...
Hi, i have found this code below, but im not sure it is well written because this part: int unmatrix( mat, tran ) Matrix4 *mat; double tran[16]; { register int i, j; Matrix4 locmat; ... what do you think is it uncomplete what is unmatrix (mat, tran) a function where is ";" and that "int" alone whats that /* unmatrix.c - given a 4x4 matrix, decompose it into standard operations. * * Author: Spencer W. Thomas * University of Michigan */ #include <math.h> #include "GraphicsGems.h" #include "unmatrix.h" /* unmatrix - Decompose a non-degenerate 4x4 transformation matrix into * the sequence of transformations that produced it. * [Sx][Sy][Sz][Shearx/y][Sx/z][Sz/y][Rx][Ry][Rz][Tx][Ty][Tz][P( ...Show All
.NET Development Data Access Layer - Design
Hi I have been reading a few of the recent tutrials on 3 tier design (Data/Business/Presentation). In My database i have a customers table, employee tabel, supplier table and an address table which has either a customer, employee or supplier foreign key. In these tutorials it says that each database able should only be access by 1 data access layer class. If this is true then how is it possible with this database stucture, for example my Orders DAL needs to know about an address because each order has a billing, and send to address. But also my Customer DAL needs to know about address as each customer can have many address's Thanks lee Hi, It seems to me you are trying to have one DAL for each table If this is the case, t ...Show All
