Software Development Network Logo
  • SharePoint Products
  • IE Development
  • VS Team System
  • Visual FoxPro
  • SQL Server
  • Game Technologies
  • Visual C#
  • Audio and Video
  • Smart Devicet
  • Windows Forms
  • Visual C++
  • Visual Studio
  • Visual Basic
  • .NET Development
  • Microsoft ISV

Software Development Network >> scribework's Q&A profile

scribework

Member List

Ljhopkins
Sanjukta
NewASPNETUser
Sabrecat
IEQ
Tryin2Bgood
Bruce Baker
mamatham
eldiener
CSharp Dev
aconquija
anubisascends
daniel.ef
Rani09
Zekske
kesim
Michael Bird
rajesh_batchu
errolian
Mark064
Only Title

scribework's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. mipmapping

    Hi, i've loaded some fbx models via the content pipeline with integrated textures. can i tell the loader routine to auto-generate mipmaps when loading textures integrated in fbx models or how can i postgenerate the mipmaps out of the models. sorry for my english ;) thx #pragma It will create all the way down to a 1x1 size. There's very little reason ever to do anything other than that, because the last few mipmap levels occupy almost no memory compared to the full texture and first mip, so once you've paid the cost for the first couple, you might as well do all of them. If you really do need to change this for some reason, you can do that by writing a custom texture processor, and subclassing the ModelProc ...Show All

  • .NET Development XslCompiledTransform loading external xml from database using document()

    I have some xml and xsl documents all stored in a database, so there are no physical files. I use the XslCompiledTransform and a custom XmlUrlResolver class to load xsl documents from the database. My custom XmlUrlResolver class only resolves the import and include directives. How can I write a custom resolver for the document() directive If you want an XSLT transformation to generate an XML DOCTYPE declaration in the result tree then you should use the xsl:output element in your stylesheet e.g. <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> Then with .NET 2.0 and transformation ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Recommendations for physics

    Hi, I know XNA doesn't include physics. Does anyone know of a good C# physics engine If there isn't a C# one around, how about a C++ or Java open source one that can be ported... Thanks, T You might check out this 2D physics engine for XNA: http://www.codeplex.com/FarseerPhysics ...Show All

  • Visual C++ First Execution Only...

    Hi, I've been trying to tell my new program to check for a specific condition (whether it is the first execution or not), but I'm having quite a bit of trouble. In fact, it's driving me insane. I spent almost all of last night trying to get this right, but it simply will not work the way I want it to. I've asked a huge number of people for help on message boards across the net, and nobody has been willing to help me fix it. So this is my last chance. PLEASE help me. Anyways, here's what I have so far, see if you can fix it and point out what I'm doing wrong: Prototype : int Config (int firstrun); Cut from main() : int firstrun; Config(firstrun); int temp1 = 1; int temp2 = 0; if (firstrun == temp1) { cou ...Show All

  • .NET Development Clustered SQL Server 2005 and ADO.NET

    We are considering setting up a SQL Server 2005 cluster. Is there a developers guide to writting applications for this environment What can we expect out of the box(s) Should we be writting additional code in our dataccess components to detect and handle when failover occurs Any advice most welcome. Thanks. BenW kbradl1, you make three assumptions: 1) failover is very rare 2) the cost of loosing a transaction is small 3) transactions are initiated by a user with a desktop application Machines need to be serviced & applications need to be upgraded otherwise you would not be clustering The cost of a missed transaction could be high The transacti ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. hello... and please give me a GUI

    Hello. I started working on a video game as a hobby a couple months ago, and I was doing it in Java because that's what I was most experienced with. Since stumbling across XNA on the web, I've just started it over again in C#, because XNA makes so many things easier. So thanks for making such a good and free product. I figured you guys would be happy to hear that an experienced Java programmer is now developing something in C#, so I thought I'd tell you. Anyway, I've read prior posts saying that you guys are working on GUI elements for the next release of XNA... I eagerly await this. My game needs a full suite of GUI elements... labels, text boxes, buttons, dropdowns, selection lists, tabs... so I look forward to them. Thanks again. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. General Audio Disfunction

    After about 10-15 minutes of gameplay, the audio slowly begins to become more and more distorted and fractured sounding. Both the sound FX and BGM gradually become more choppy and grainy sounding while dragging down the overall performance of the game. Any ideas Sorry the Update trick didn't help. It still sounds like an XACT starvation / over-work issue. I guess I would do the following things if I were you: 1) When the bug happens, break into the debugger and check what your code is doing. It's possible that your game is starving XACT by doing a lot of computation on other threads. 2) Try to verify that your audio engine's Update method is actually being called frequently. Maybe add a counter and print out a debug message eve ...Show All

  • Software Development for Windows Vista A question about State workflow

    Hi, I have a state workflow and it initializes in state A after receiving an external event. In this initialize state, it receives an object as event argument. Now in state A, i wanted to see if value of one of the property (DateTime) of this object is matching with today. If not i want it to wait until the today is equal to the value of the property, else if date is >= today, I want to set the state to State B The date value of the property could be any future day of the year, and my question is... how to implement this and if the duration is too long e.g. date is Dec31st2006 and today is July 5th2006. In this case what would happen to workflow instance will it be loaded in runtime untill the date is Dec312006 or it will be persi ...Show All

  • SQL Server table field datatype

    What datatype should I use for a field in my sql server table that should be able to hold values such as: -1.092 0 2.9875645 25436.432567 etc. Thanks Okay, I thought this answered my question as well, but when I use the decimal(18, 4) data type, and try to use 7.99 as a value, I get an invalid value error. What am I doing wrong I should mention that at this point I am inputing the value directly into the table data from C#.Net. Is it simply a matter of format ...Show All

  • .NET Development Optional value type pointer/reference parameter during COM interop

    Hey, I am facing an interesting interop problem that I haven't found a solution for yet. Let's say a COM method takes a pointer to a simple struct: HRESULT Foo(LPBAR pBar); Let's also say that this parameter is optional and the call pInterface->Foo(NULL); is perfectly valid. Now, if the structure BAR is defined in C#: [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct Bar { // ... }; and the COM interop method call is also defined: [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] public void Foo(ref Bar); In this case, there is no way to be able to call Foo(null) in C#, although it would be valid. The question is: how do I let the Marshaler know that it should pass ...Show All

  • Software Development for Windows Vista ignore state machine events

    Is there a way to take no action when an event occurs I want events to get ignored instead of throwing an exception when they are not allowed in a specific state. I have many states and many events that can occur. If I want to simulate this behavior in the workflow I have to attach each event to each state, and set some state in the event handlers when I want to do something, and set the same state again when I want to ignore it. Is there any better approach (I would like to have the logic in the workflow and do not restrict the host in which kind of events it can send) Thanks in advance for any suggestion! There is no way to suppress EventDeliveryFailureExceptions. If there are no HandleExtern ...Show All

  • SQL Server SSIS Scripttasks, Vista and SP2

    Hi, does anyone know, if with SQL 2005 SP2 Scripttasks will run under Vista thanks, Thomas Hi Thomas, Script tasks will run in SP2 with Vista, but it requires an additional hotfix to be installed. You can see the details in this KB article: FIX: Custom applications that use the Visual Studio for Applications Visual Basic Runtime may be unable to compile macros or to run macros Thanks, ~Matt ...Show All

  • Software Development for Windows Vista Is there a possibility to run the SendEmail Activity with Lotus mail server?

    Hello, Is there a possibility to run the SendEmail Activity with Lotus mail server if it's how would I proceed yes very easy : one additional string property for the password (it can be encrypted if you want), and in SendEmailUsingSmtp() , add the following lines : NetworkCredential myCredentials = new NetworkCredential(<your email>,<your password>); client.Credentials = myCredentials; // if necessary: client.EnableSsl=true; client.Send(message); ...Show All

  • SQL Server problem with query performance

    Hi, I have a BizTalk solution which receives xml messages by emails translated them into different format and adds into SQL 2005 table using SQL Server Adapter in BTS2006. BTS2006 and SQL works on different servers but connected with 1Mb VPN. SQL Server Adapter uses MS DTC to add translated data into SQL2005. During normal situation when it adds 20-30 messages per minute everything is ok. But when for e.g. BTS was stopped for a night and then it has to add many messages, it adds 10-15 per second. It last for 1-2h. In the same time it is almost impossible to query database with messages. It takes very long time, although SQL server do look to be busy (procesor utilisation 5-10%). My query uses many records because it makes G ...Show All

  • Visual Basic ICustomTypeDescriptor and the property grid.

    I'd like to extend the property grid to do things such as allow me to change DisplayNames of properties at run time and to sort properties into the order that I want. I understand that I should implement ICustomTypeDescriptor but am getting nowhere. For instance the following code doesn't have any effect: <System.ComponentModel.TypeConverter( GetType (SpellingOptionsConverter))> _ Public Class SpellingOptions Implements System.ComponentModel.ICustomTypeDescriptor Public Function GetAttributes() As System.ComponentModel.AttributeCollection Implements System.ComponentModel.ICustomTypeDescriptor.GetAttributes Dim r As New System.ComponentModel.DescriptionAttribute( "UUU" ) Dim f As N ...Show All

©2008 Software Development Network