DaPosh's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Data passed in vertexdecleration never arrives at vertex shader
I have a custom vertex format with position, normal, texturecoordinate and noise1, noise2, noise3, noise4 which are all a single float. It worked fine untill I tried passing data in the noise. No mater what i set in my vertices, the vertexshader aparently received uninitialized data. noise1 is always 1 and the others are always 0. The vertex elements are declared as vertexElements = new VertexElement []{ new VertexElement (0,0, DeclarationType .Float3, DeclarationMethod .Default, DeclarationUsage .Position,0), new VertexElement (0,12, DeclarationType .Float3, DeclarationMethod .Default, DeclarationUsage .Normal,0), new VertexElement (0,24, DeclarationType .Float2, DeclarationMethod .Default, DeclarationUsag ...Show All
Windows Forms .net framework setup
I have a .NET Window app that is going to install on target pc which do not have .NET Framework.....i use the following step which i found online to create a setup.exe....But the problem is, the setup.exe only can work with the existing of other files (dotnetfx, config.ini........).....how can i bind all these files into the setup.exe because if i dont pack it together,if the user accidentally delete one of the file, the setup cannot work..... Pls help....thank you.... To install the .NET Framework with a Setup project Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed. Select the Setup project in Solution Explorer. On the Project menu, choose Properties . Set the Bootstrapper property to Windows ...Show All
Visual Studio Express Editions SQl statement to show database info
Hi everyone, I am trying to hand code a script to bring out information from a test access table. My test MS Access table is "TESTTABLE" COLOMN NAMES are ID,NAME, NUMBER - They really dont mean anything this is just a learning point. How to I display this on a form in text boxes, I will only need to display One on a search. but if your code shows all data thats Cool too, I will just add a WHERE in the SQL statement Thank you! Dim queryString As String = "SELECT ID, NAME FROM TESTTABLE" Using connection As New OleDb.OleDbConnection(connectionString) Dim command As New OleDb.OleDbCommand(queryString, connection) connection.Open() Dim reader As OleDb.OleDbDataReader = ...Show All
SQL Server PRINTing problem
Hi I write following code in SQL server 2005 DECLARE @tt varchar ( 20 ) DECLARE @uu varchar ( 20 ) SET @uu = 'variable' PRINT 'This is printed' PRINT 'This is not printed' + @tt + 'This is not printed' PRINT 'This is printed ' + @uu + ' This is printed ' OUTPUT: This is printed This is printed variable This is printed Why the Second print command don’t print (I know @tt variable is not initialized, if I initialized @tt variable then every thing is fine) WHY Regards, Thanks. Gurpreet S. Gill string concatenates with null yields null by default. You can force null to be an empty string by turning ...Show All
.NET Development Access Excel File On Different Server ** Help Urgently Needed Plz **
Hi all, I am trying to link to an excel file on a web directory on a different server but can't seem to get access to the file, This is the code i'm using: Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=\\fse1web563\fsetrain$\public\Equiv\FSE_PAS.xls;" _ & "Extended Properties=Excel 8.0;" Any ideas, help appreciated At the moment i'm just trying to retrieve the data, though i have all permissions. Is the code i'm using to connect to the file correct do you know Note: The file is on a different server location Rgds ...Show All
Visual Studio 2008 (Pre-release) SQL Stored procs and LINQ
I just heard about LINQ the other day so excuse my total ignorance but ..... if I can use, what used to be called "in line" sql, in my VB code, won't performance suffer compared to if I executed the same sql from a stored proc (From what I understand, LINQ uses remoting so the apparent client-side code actually runs on the sql server, but a database stored proc is pre-compiled and cached. I don't know if LINQ code is). TIA, Barkingdog DLinq does not use remoting - it translates your query in code into the relevant SQL. This SQL is then sent to the server and only relevant rows are returned. So code like this: var LondonersQ = from C in Customers where C.City = ...Show All
.NET Development reflection related query
I am facing one problem in my project. I want to find the referenced assemblies of my current assembly. I am using reflection.assembly.getreferencedassemblies() function for that. But I can't get COM converted .net dll and c++ dlls in that. why what should I do to get that dll also............... I want that dll name anyway..........please show me some way if it's not possible in .net then is it possible in c++................... Thanks in advance.................. bhavu wrote: but tell me if you came to know how dependencywalker.exe finds the references. Steve Miller is the author. Maybe he's willing to share... ...Show All
SQL Server Filter measure
I have a delima. I have a dataset that needs to return "Fatalities Involving drivers age 15-17". For years 2003 , 2004, 2005. So i set up 3 different filters: Year : 2003,2004,2005 Person type: Driver Age : 15,16,17 Now this is fine for getting a crash count and fatalities (for teen drivers). But i want the fatalities for everyone ( All Person Types) and (All Ages) ...how do i go about this. All i get right now, is the fatalities for Drivers 15-17. Please help..im confused! That would show only the fatalities for what ever is selected. But it will not show all the fatalities . I heard something about a filter mdx quer ...Show All
SQL Server Align Calculated Members and Measures
Hi I created two calculated member: CREATE MEMBER CURRENTCUBE .[MEASURES].[Penetracion] AS IIf ([Measures].[Surtimientos] = 0,0,[Measures].[Seguros]/[Measures].[Surtimientos]), FORMAT_STRING = "Percent" , VISIBLE = 1; CREATE MEMBER CURRENTCUBE .[MEASURES].[Calidad] AS IIf ([Measures].[Seguros] = 0,0,[Measures].[Prima Seguros]/[Measures].[Seguros]), FORMAT_STRING = "$#,##0.00" , VISIBLE = 1 ; I have two measures called [Measures].[Surtimientos] and [Measures].[Seguros] and both have its FormatString property #,#. When I browse the cube the measure and calculated meber values ared formated but they have left alignment. If I take away the FormatString they have righ ...Show All
Visual Basic form1 disappears
form1 appears as blank screen when code runs using visual studion 2005 visual basic. code for program me.show() it is blank white. program error occurs, JohnWP wrote: The me.show is immediately before the program terminates at end. Do you have it in a method Please show the method and surronding lines of code... ...Show All
.NET Development Replication or Web Service
Hey friends, I am going to start a new project includes a Windows application and a Web application. these applications will connect to a SQL server database. -The Windows application will execute SELECT, INSERT, UPDATE commands -The Web application only will execute SELECT commands , it will only read the data from the database and never will modify the data. -The database will be SQL Server -There will not be any "non -.Net" application connectiong to the database The database and the windows applications will be in the same network and behind a firewall. Since the Windows applicaion and database will be in the same network, the windows application can connect to the database server via SQL Port (1433), so there is no ...Show All
SQL Server SQL Server 2005 hotFix 2153 won't install
I am trying to install sql2005-kb918222-x86-enu.exe, first one in the x86 family. I am getting "This machine does not have a product that matches this installation package". I have SP1 is installed. Version and patch level are 9.1.2047. on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup Any help is appreciated I have Intel Pentium M processor X86 family_6_Model. I had installed x86 SQL Server 2005 installation packages. But SP1 had failed on Client Components. ...Show All
Visual Studio Express Editions Referencing instances?
I've made a few instances of a panel, and I want to make them invisible when I click a certain button. Is there a way to references instances of objects you have made I'm passing this panel an array and when i go dim engineer as new it doesn't like it. This is my code so far: Public Class main Dim engineer(4) As weapons Dim engineerDisplay(4) As weaponDisplay Private Sub main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load loadEngineers() end sub Private Sub loadEngineers() engineer(0) = New weapons engineer(0).weaponName = "buck gun" engineer(0).ammo = "26" engineer(0).damage = "-a" engineer(0).firingModes = "Semi Auto" engineer(0).reload = "12" engi ...Show All
Smart Device Development Detecting Multiple CE Device Connected
I have a programming question on how to cycle through all connected CE Device through ActiveSync. Where do I post this You are correct in that you can only have 1 ActiveSync connection at a time, but let me clarify what I'm trying to do. If you have CE Device1 connected to PC, ActiveSync will detect it and establish a partnership. If I connect CE Device2, ActiveSync will ignore this partnership because it already has Device1 partnership active (this is correct behavior). But what if I disconnect Device1 I've heard from people who use to work in the ActiveSync team, that ActiveSync can automatically detect this 2nd Device when Device1 gets restarted or unplugged. Is this even possible Or can I programmatica ...Show All
.NET Development Connection Behind Proxy, Router, Firewall!!!
As title of post employs, I'm working on P2P Application all works fine if computers have Direct IPs without Firewall, Router or Proxy. I dont know how to connect to a computer which is behind one of these. I'm using TCP! Any Idea Best Regards, I assume you are behind some sort of home router/firewa/NAT/all in one network appliance If so, and you intend to use TCP over IPv4 then you must port forward the port you are connecting to. This must be forwarded to the machine that is listening for the incoming connection. See the manual of your router as most of them have a section dedicated on how to do this. Another alternative you have, depending on the OS version you are using, is to use IPv6 and their transition ...Show All
