GG71's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Tecture alpha problem?
hi all, i has one mesh in my game. I pasted one texture in mesh object. How to set the mesh alpha 30% Best Regards, Set a material with a 30% alpha color before you render it. Also ensure you set the correct render states - see http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/microsoft.directx.direct3d.asp frame=true (managed) orthe equivalent native render states http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/D3DRENDERSTATETYPE.asp If you are using managed code there is a sample I did for MSDN that includes this: http://msdn.microsoft.com/coding4fun/zman/zmanTextures3/default.aspx ...Show All
Visual Studio Express Editions HOW TO: Saving data into a remote computer through internet
I have a problem saving my data into the database on my remote computer. My server PC is located on another location, the only way i can save data into that database through internet. The problem is I really don't have any idea on how to do this. Other said that I am goin to use PERL. Anybody here can help me or suggest me or can show me the code on how can I do this please using Visual Basic Express :( ...Show All
Visual Studio How to get the instance of custom editor
In my Add-in, by the below code, I can get window of opened editor: ProjectItem item = getProjectItem(); Window win = item.Open(EnvDte.Constants.vsViewKindDesigner); This editor is associated with a specific editor, which is implemented by myself (COM). With the property ObjectKind (GUID), I can get the registration information in registry and find the VSPackage which contributing this custom editor. My question is at this point how can I get the instance of this editor when I have add the dll which is the implementation of editor to my Add-in project references. Thanks very much! Once you have the Window of the designer, win.Object returns the System.ComponentModel.Design.IDesignerHost, which in turns al ...Show All
Windows Forms Excel in the WebBrowser control
Hello, I am using .NET 2.0 Windows Forms. There is a form with a webbrowser control. I navigate to an Excel spreadsheet and the webbrowser control opens the spreadsheet "inline". All is good until I try to close the form. The Excel process appears in the Task Manager for sometime after I close the form, so it's not possible to clean up the Excel file that I viewed in the webbrowser -- when I try to delete the file, I get The File is Used By Another Process error. Here are my questions: Is it possible to issue a Close command to the Excel instance that is hosted in the webbrowser control Something along the lines of ExecWB that was available in the ActiveX version of the WebBrowser control. Is it possible to get the ...Show All
Visual Studio Tools for Office How do you work with repeating areas in C#/Word?
Filling in an XMLArray from C#. I have been searching and searching but I cannot fint a good example on how to make a part of a word doc dynamic and use C# to populate it correctly. This is a sample to show what I want to do. The word document is a simple page that shows a Customer Name, Address, Zip, Phone Number and then has a area for Contacts (Name,Cell,Work) that can happen from 0 to 100 times. When a button is clicked (Figure 2 below) the document loads information from a Web Service and populates the screen with information from a passed XML Object (Figure 3 below). The XSD(Figure 1 below), based on what I have researched, should be set up to accept the fields required, but I cannot figure out how to fill in the repeating Cont ...Show All
Visual Basic Progress bar help
can anyone please help me out on making my progress bar to work whilst it loads website etc... here is my current code it dose come up with a syntax error where it says CopyFile. [code] Private Sub CopyWithProgress(ByVal ParamArray filenames As String()) ' Display the ProgressBar control. ProgressBar.Visible = True ' Set Minimum to 1 to represent the first file being copied. ProgressBar.Minimum = 1 ' Set Maximum to the total number of files to copy. ProgressBar.Maximum = filenames.Length ' Set the initial value of the ProgressBar. ProgressBar.Value = 1 ' Set the Step property to a value of 1 to represent each file being copied. ProgressBar.Step = 1 ' Loop through all files to copy. ...Show All
Software Development for Windows Vista Virtual Server 2005 R2 fails in Vista
Yesterday I upgraded my XP developer machine to Vista Business edition. I develop SharePoint Portals using Virtual Server 2005 R2 with SQL Server 2005, Shareporit Server 2005, and Visual Studio 2005. I test the portals in the Vista host (formerly XP) After the upgrade, two problems have arisen: 1. The virtual NIC cards in the virtual server no longer work and therefore I have no connectivity in and out of virtual server 2. The Virtual Server Administrator Website in the Vista host does not conect to the virtual server. Trying to connect, I get a message: "Could not connect to Virtual Server. Access was denied." In general, the apps inside the virtual server seem to work OK, but not being able to bring up the virtual s ...Show All
Windows Forms Using addingnew with bindingsource
I have a table with an autoincrement field as primary key and a few other fields. I have successfully created data binding it works fine. I s possible to have a value filled in one of the fields whenever i click the plus(+) button on the toolstrip of the binding navigator. The field which i want to fill is not the primary key field. I tried using addingnew event of the binding source but its now working well. Thank you. Private WithEvents myTable As DataTable Private defaultName As String = "Orchids" Private Sub myTable_TableNewRow( ByVal sender As Object , ByVal e As System.Data.DataTableNewRowEventArgs) Handles myTable.TableNewRow e.Row.Item( "theColumn" ) = defaultName E ...Show All
Visual C++ Unhandled Exception error
I guess I have a couple questions, first is 0xcdcdcd the standard memory address for NULL Now my code is thist: dispenser table::dequeue() { dispenser * newDisp; dispenser * newDisp2; newDisp2=new dispenser; newDisp=new dispenser; newDisp=head; if (newDisp->next != NULL ) { newDisp=newDisp->next; } newDisp2=head; head=newDisp; return * newDisp2; } Pretty simple I'm sure, but for some reason when this function runs through the 7th time it hits a NULL according to the debugger. And it sets newDisp to it and when it reaches the if statement it crashes. I don't understand why the test would fail like that. I'm not sure if I've given enough info. Thanks in advance for the help. ...Show All
SQL Server Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path
Hi, I spend two days looking for an anwser to this problem but no luck. I have a simple ASP.NET 2.0 application which run correctly on my local machine. But After uploading all files including web.config file on a Windows 2003 Server with SQLEXPRESS installed. I have this error. Please Help!!!!!! Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Da ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Copying from one Texture Surface to another
I'm trying to copy a small rectangle from one texture to another, but D3D is complaining. Apparently I can't use Device.UpdateSurface because these surfaces are both created in Pool.Managed, and not the annoying requirement of having one in Pool.Default and one in Pool.SystemMemory. So I'm trying to lock the surfaces to copy the bits manually. I can lock the surface I want to read from ok, but I can't lock the surface I want to write to. Here is the code I am trying: // create a new surface to copy the pixels from the srcRect to mTexture = new Texture (mDevice, sourceRect.Width, sourceRect.Height, 1 , Usage .None, Format .A8R8G8B8, Pool .Managed); int [,] gwrite = ( int [,])mTexture.GetSurfaceLevel( 0 ).Lock ...Show All
Visual FoxPro Report listener, HTML output on a Win98 machine.
Hi All; I've been using a report listener to produce an html file. On win98 machines the detail band of the erport it empty. On XP all is Okay. Anyone experienced this and knows if there is a solution (Aside from upgrading to XP) Thanks. fn = "C:\krcuser\po"+ALLTRIM(po.pono) GO top loListener = .NULL. DO (_reportoutput) WITH 5, loListener lolistener.targetfilename = fn loListener.quietmode = .T. REPORT FORM po1 OBJECT loListener The result is an html file which has blank lines instead of the data in the detail band. If I have 10 items in the detail band, there will be 10 blank lines. This doesn't happen on XP. I think it may be related to GDIPLUS. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Free-moving camera?
How exactly would I go about implementing a free-moving camera I looked at the How To: Rotate and Move a Camera in the docs, but it doesn't seem to build for a 360 project. Any help or a point in the right direction Thanks, however this still doesn't change anything on the screen. I'm going to guess it's my drawing code. I'll work on that. ...Show All
Community Chat Data Generator
I needed fake data so I looked on the net, most sites want some money for data. no problem, consensus bureau doesnt. You can download text files without cost. I wrapped First, Last and City, Towns and Zips into a random data generator which you specify how many rows to create. It builds random sets so it is not identifying. Its nothing spectacular or anything to brag about but it saved me lots of time. It is written in VB6 and has an Access database. Again, nothing to brag about - if you want it, i can send it. freeware. ...Show All
SQL Server SSIS web service task input parameters
There is not a way to pass parameters to input of Web Service tasks. I heard this problem is fixed with SQL2K5 SP1 and even the online doc says that one can choose either "value" or "variable" when specifying input for web service tasks, but after I installed what-I-think-is SP1, there is still no way to do this. If one can only specify values (hard-coded) as input to web service tasks, then this would be a very severe limitation. I hope I'm wrong, so could someone please give a pointer. Thanks Kevin Le Kevin, As books online states you are able to use variables with the Web Service Task with SP1. On the inputs page of the editor after you select a method there will be a new column ...Show All
