Fahad349's Q&A profile
Architecture Stored Procedure Approach for developing Applications: An Architecture Viewpoint
Hi, I have a designed a smart client application which talks to WCF Services --> BL--> DAL and finally the database. Since I know that I would using only SQL Server for this application, I am of the opinion for going in for Stored Procedures(for its obivious benefits) and having transactions being handled at Business layer using System.Transactions. My Lead Architect is against the idea of using Stored Procs. His argument is that with SP approach it would be a question of getting the right transcation boundaries and also ensuring that the messaging and the transction are in a single distributed XA transaction. He says that these things are best achieved through individual statements and not in SP since SP's have their own txns. But ...Show All
SQL Server SQL server: How to see tables
I have VS and SQL server database engine installed in the my office PC (Both legal copies). I would like to see the tables and like to create the new tables / databases as well for learning. How to do that Please help me.... First you need to connect to SQL Server. You can use Enterprise Manager in SQL 2000 or Management Studio in SQL 2005. First create a database, then create tables in the database. You can also use Server Explorer window in Visual studio. It is not the same and with same posibility like the one that cames with SQL Server but for creating and viewing is good enough. In VS you need again connection to SQL Server engine, and then to create database and database tables. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Having a problem rendering a quad with a texture
Hello- i can't seem to get the quad on the screen. I can render a .x file, but not a textured quad. here is some code: void cBillboard::CreateBillboard() { HRESULT r; VOID* pVertices; v = new CUSTOM_VERTEX[ 4 ]; //create the vertical info. //thisprobably cold only happen once if the billboard isn't changing, but it works for now v[ 0 ].x = 0.0f ; v[ 0 ].y = 0.0f ; v[ 0 ].z = 0.0f ; v[ 0 ].color = myColor; v[ 0 ].u = 0.0f ; v[ 0 ].v = 1.0f ; v[ 1 ].x = myWidth; v[ 1 ].y = 0.0f ; v[ 1 ].z = 0.0f ; v[ 1 ].color = myColor; v[ 1 ].u = 1.0f ; v[ 1 ].v = 1.0f ; v[ 2 ].x = myWidth; v[ 2 ].y = myHeight; v[ 2 ].z = 0.0f ; v[ 2 ].color = myColor; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating publish For Non XNA PC's
hey all Have a problem when trying to run my XNA exe's on PC's without XNA installed, i have the new version of XNA and the redistributable, however, the game will not start. i have created publish file using the build publish option within the C# express and installing to the hard disk. if anyone has this working please could you let me know... Thanks Great response Albert! So, until this is worked out, if you have a website that hosts XNA beta 2 games, it would be smart to have these 3 links on there. ...Show All
Visual C++ Intellisense becoming unable to resolve objects
I'm posting this here and not in the general Visual Studio forum because my experience so far tells me the situation with C++ is different than with, say, C# (I have so far at least one example where VS's tools behave worse in the C++ environment than in that of C#). I have Intellisense getting confused and unable to resolve objects so often that I find myself closing the solution, deleting the *.ncb file, and reopening the solution. It almost makes me wish I had a "rebuild Intellisense" button... Kamen That's good, let's do that. Just one technical question. When I do come across the issue, I'd want to "freeze" my environment and send it to you so it can (hopefully) be reproduced. (And let's say that I'm willi ...Show All
Visual Basic Synchronize textbox scrolling
I have two multiline textboxes, no wrap (horizontal/vertical scrollbars) Is there a way I can sync the scrolling so when I scroll one, the other one scrolls OK, unfortunately, the regular textbox control doesn't have scroll events. That's a pain. The RichTextbox control, on the other hand, does. So this is easier with a rich text control. You can do the following: Const WM_USER As Integer = &H400 Const EM_GETSCROLLPOS As Integer = WM_USER + 221 Const EM_SETSCROLLPOS As Integer = WM_USER + 222 Declare Function SendMessage Lib "user32.dll" Alias "SendMessageW" ( ByVal hWnd As IntPtr, ByVal msg As Integer , ByVal wParam As Inte ...Show All
Software Development for Windows Vista Graphedit return 0x80004002 (No such interface supported) on Vista64
Dear All, I face a problem that my tv app cannot run successfully on Vista64. And I verify my app's graph using graphedit, I found it's also fail to run my tv graph, it will pop an err msg after I press the play button : "No such interface supported, Return code = 0x80004002". However the same graph can be run successfully using graphedit(64), I wonder what's the difference Also, amcap cannot run but amcap(64) can....... I think it's strange because I thought there should be no differences on AP design for 32 or 64 bit OS Does anyone know how should I change my app to let it run successful on Vista64 Thanks and Regards. On Fri, 19 Jan 2007 02:48:29 -0800, = UTF-8 B Vm ...Show All
Windows Live Developer Forums Client Error
I've downloaded "MSN Search Web Service SDK Version 0.60 (Beta).msi" from microsoft's downloadpage. When I'm trying to search for any text, I'm getting the Client Error. Best Regards Trinadh P. Are you using Visual Studio You can follow this guide to get your Application ID and to build your project. ...Show All
Visual Basic Check for encrypted match.
Have reposted as I have an idea what is wrong, below is the encryption routine that I am using, my problem is that every time text is encrypted it uses a different Key. So how do I use the same key so that when the scrambled password on file, is compared to the scrambled password entered they will match Function encryptStringToBytes_AES(ByVal plainText As String, ByVal Key() As Byte, ByVal IV() As Byte) As Byte() ' Check arguments. If Key Is Nothing OrElse Key.Length <= 0 Then Throw New ArgumentNullException("Key") End If If IV Is Nothing OrElse IV.Length <= 0 Then Throw New ArgumentNullException("Key") End If ' Declare the streams used ' to encrypt to an in memory ' ar ...Show All
SQL Server Sort order differs.
Hi all, I have a table A which has several columns and a PK. When I try to SELECT a non primary key column from the table A. i.e, SELECT Col1 FROM A ( in Server1) I get the resultset with the values of column in ascending order. When I execute the same query in another server i.e , SELECT Col1 FROM A ( in Server2) I get the same resultset in descending order. Can anyone let me know what the reason might be Thanks, DBAnalyst It's only ORDER BY clause guaranteed that result are always ordered as requested. Ommiting that clause you tell server that ordering does't matter to you, so server is free to return you result in any order he decides fastest (it's simply speaking). D ...Show All
Community Chat Wireless Audio System
Hi, Im trying to find some high fidelity wireless speakers transmitter/reciever system that can output a good bit of sound wirelessly. Not only that but I need something that can take an input from a home theater system/tv/dvd player and also an input from a computer so that I can choose where my input is coming from. I also need to be able to output to one of two sets of wireless speakers. Basically Im trying to be able to pipe music to my garage or my living room at my convienence with decent, fairly loud sound. Plus I want to be able to pipe music from the same sources to my living room, or just have sound from the tv/home theater system come into the living room and be able to pick and choose between the two. If this is at all possi ...Show All
Smart Device Development Shift Tab
Hi, How can I make Shift+Tab (gives focus to the previous field) work in CF2 . Regards Mario I'm not able to repro on a QTek 9100 or the WM5 emulator. I don't have a 9000 available. Which controls are you using and in what order If possible paste the code for a minimal repro scenario in your reply. Dan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to use getcursorpos()? any example?
I wish to use getcursorpos to get the coordinate of the screen, the game i want to develop is a fullscreen game. Some error happened because i didn't pass any argument to this function, what argument shld i pass to this function, how to get the argument Why need to pass argument. Thanks The function returns the cursor position in screen space, which origins at the top-left of the screen. I don't see how the function can return "different" results when you change screen resolution... ...Show All
Visual Basic Can't kill Excel.Exe after using Excel component in vb.net
Hi , I'm using Excel.Application generating excel report via vb.net 2003 , the problem is excel.exe process reminds even after generated excel report closed . I have been using the followed code to close or dispose the process , but it does'nt work either. thenks Dim procList() As Process = Process.GetProcesses() Dim k As Integer For k = 0 To procList.GetUpperBound(0) Step k + 1 If procList(k).ProcessName = "EXCEL" Then procList(k).Close() procList(k).Dispose() End If Next Hi, that is really not the supposed way of releasing a COM server ;) Call System.Runtime.InteropServices.Marshal.ReleaseComObject on every COM va ...Show All
Visual C# DataRow Merge
Hi Guys, I would like to know how to merge two datarow. I have following scenario. I have my database with the following table called user. ID, Name etc.. I have loaded the table. Now I received updates on this table from a webservice. The web service basically returns me everything and does not tell me if anything has changed. I load both the user table in db and the the user table from webservice in two separate datasets. I would like to basically merge the changes to the database and update only those rows that have changed. how can i do that. I wouldn't want to compare each column of each row. Regards, AJ Hi, miku Substitude the new dataset with the old one. Otherwise, merge them, here is the refer ...Show All
