IgorB's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. how to apply custom effect to mesh?
1. I just import tiny.x from directx sdk to my project 2. Just add test.fx from xna to my project uniform extern float4x4 WorldViewProj : WORLDVIEWPROJECTION; struct VS_OUTPUT { float4 position : POSITION; float4 color : COLOR0; }; VS_OUTPUT Transform( float4 Pos : POSITION, float4 Color : COLOR0 ) { VS_OUTPUT Out = (VS_OUTPUT)0; Out.position = mul(Pos, WorldViewProj); Out.color = Color; return Out; } void PixelShader(inout float4 color : COLOR0 ) { } technique TransformTechnique { pass P0 { &n ...Show All
Visual Studio vs2005 sp1 install fails
On my computer (win2003) I get next message: The installation source for this product is not available. Verify that the source exists and that you can access it. On other computers it works... What can I do bye Damijan > Update to last post - uninstall the SP1 beta (from Add Remove Programs - with 'Show Updates' checked). I don't have the beta installed, but am starting to think I should install it and uninstall it just to see :) ...Show All
Visual Basic Interop Forms and Interfaces
I am in the process of upgrading our VB6 app to a VB.NET app. I am using the Interop form add-in to do this since we have to do this in increments. All of our VB6 forms implement an Interface "IPanel". I have replicated this in the form we are converting in VB.NET. When I then try to run the following code in VB6 I get a type mismatch error. Dim mfrmCurrentPanel AS IPanel Set mfrmCurrentPanel = New TestInterop.InteropForm1 InteropForm1 in VB.NET does implement the IPanel Interface. Will this not be recognized in VB6 Thanks for anyone who can help. ...Show All
.NET Development Connection Pooling randomly throwing COM exceptions
We randomly get the following exceptions: [COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +636 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal ...Show All
Visual Studio Manual binding example
I have a lot of RDL reports that I would prefer not to convert to RDLC. www.gotreportviewer.com mentioned manually binding data sources to these reports, but I could not find an example of how to do this. Does anyone have an example of this Thanks This will only work if the RDL is 2005 version. Rename the .rdl to .rdlc and add it to the project. Using the smart tags panel of ReportViewer select the rdlc file. (Notice that the DataSet, BindingSource and TableAdapter objects are NOT automatically created at this point, unlike in the case of an .rdlc that originated as an .rdlc.) From the smart tags panel, select the Choose Data Sources command. A dialog opens. In this dialog, a list of datasources expecte ...Show All
Visual C# Data Storage For Distributed Applications
Hi all, I'm new to C# and have mainly worked with web and server side stuff in the past. I am looking to make an application that can be distributed to people. The coding itself has been fine, but I seem to be having a dilema on how to store the data. I need to store values which traditionally I would have store in for example an SQL or Access database, however if I am to give this out to people who are non technically savvy then this causes a problem. I considered just using something such as a tab delimited text file, but realiased this may cause a major slow down when alot of data has been entered amoung other issues. Is there a way to store data that requires no databases or other requirements than that which is distributed with the ap ...Show All
Visual Studio Express Editions VB 2005 Express and activation
I downloaded a VB.NET 2005 Express Edition fom the Microsoft, and I tried activate it. I have a .NET Passport, andI typed my logindata as correct. Bud the activation site is not logged me in. Then I opened a Microsoft Visual Studio registration website, where is in the links i found one, and i clicket to it. then i was be navigated to the serial number page, but if i type this serialk number to the vb 2005 Express { LKCHBB3MWTCWN0 } it say: The Activation key is not valid. I tried sign out and sign in again to mi passport site, but the situation was same. Please help me! I can't register my development environment! I love VB, but I can't use it. Hron-- If your intention is to receive a valid activation key to unlock your VB Express a ...Show All
Visual Studio 2008 (Pre-release) RichTextBox save to string
Hi, I want to save the content of the a RichTextBox to a string, in the DataFormats .Rtf. This is an example a saw, but it doesn't help me to save in a string. TextRange sourceDocument = new TextRange (richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); MemoryStream stream = new MemoryStream (); sourceDocument.Save(stream, DataFormats .Rtf); cmnjgfj C C call stream.Seek (0, SeekOrigin.Begin) after you call sourceDocument.Save(). TextRange sourceDocument = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); using (MemoryStream stream = new MemoryStream()) { sourceDocument.Save ...Show All
Windows Forms Arrow Keys don't move controls in custom forms designer
Hello, I have a custom forms designer. I've implemented a menu command service like so MenuCommandServiceImpl mcsi = new MenuCommandServiceImpl (); host.AddService( typeof ( IMenuCommandService ), mcsi); MenuCommandServiceImpl is derived from IMenuCommandService. I "think" that the controls are supposed to move when the arrow keys are pressed via the MenuCommands .KeyMoveUp etc. Commands. I've added those commands to my MenuCommand class, but nothing. In all my searching around, I think that the DesignSurface.View is stealing the key press events for the Arrow keys, and should be the one to fire the correct events or preferably move the controls. Have I added the wrong service or is it possibly ...Show All
Visual Studio Team System Credentials of the SubscribeEvent WebService
I'm using the WorkItemChangedEvent and subscribe the Event to a WebService. The Credential of this WebService is the credentials of the tfsservice account. Normally you can change the Credentials of a WebService: service.Credentials = System.Net. CredentialCache .DefaultCredentials; But how can I change the Credentials of the WebService which is subscribed on the Event My colleague Sam gave this good point " The “Notify” webmethod of a webservice with a SOAP subscription is invoked under the credentials of the TFS Service Account. If the subscriber web service is configured the same way as the TFS (enable windows auth, disable anonymous) and running under the service account ...Show All
.NET Development .Net Regex Resources Reference
For those starting out with Regex'es or those who are old hands here are some resources to help. ...Show All
Visual C# How to execute exe file from my built exe file?
Hello, And thanks for all people who will help me, I have two files, Crypt.exe and DeCrypt.exe, they are console type application. It would be better if I know the crypt/decryot codes, but I don`t know, this is my problem. So, I would like to put those two exes inside my project and execute them from there... It works like this: DeCrypt.exe data.txt and it makes file in directory where it was executed. But how I can do this inside the progam I don`t want that user could see windows when one those exes is working, and couldn`t get those two exes... Nope, it won`t work... Program bust be on HDD to invoke it, if I will build it in my project in won`t start... Any other ideas .. ...Show All
Software Development for Windows Vista Workflow Designer
i have example about workflow designer in vb.net Please post it here http://wf.netfx3.com/files/folders/sample_applications/default.aspx so other people in the forum that use VB can take a look at it. Currently there is only a C# version of re-hosting the workflow designer. ...Show All
Visual Basic Problem populating a Listview
Hello, I'm trying to populate a listview with records from an access datatable. I've the following code: Private Sub preencherListView() Dim lstItem As New ListViewItem lstFamilias.Items.Clear() lstFamilias.BeginUpdate() With Me .lstFamilias .GridLines = True .MultiSelect = False .FullRowSelect = True .View = View.Details .HideSelection = False .Columns.Add( "Familia" , 100, HorizontalAlignment.Left) .Columns.Add( "Tempo" , 70, HorizontalAlignment.Center) End With conexao() sSQL = "SELECT * FROM [TempoTotalFamiliaQuery]" da = New OleDb.OleDbDataAdapter(sSQL, con) da.Fill(ds, "TempoTotalFamiliaQuery" ) For i As I ...Show All
Visual C# how to give online updations for My own software?
I have done one desktop application in visual c#, i want to give online updations for that software . i need full flow and coding for this. Hi, You might want to take a look at ClickOnce. Here is some info on it: http://www.kirupa.com/net/clickOnce.htm Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
