Chandrashekhar K's Q&A profile
.NET Development I get scope_identity equal to 0
I delcare my sqlCommand sqlcmdInsNeAcc and connection from system.data.Sqlclient, I open my connection. all goes well then I do: sqlcmdInsNeAcc.CommandText = "set nocount on insert into TblAccount(AccRisAsse,AccHldBll,Acctaxexm) values(@AccRisAsse,@AccHldBll,@Acctaxexm) select id=scope_identity()" pm = sqlcmdInsNeAcc.Parameters.Add(New SqlParameter("@AccountNumber", SqlDbType.BigInt)) pm.Direction = ParameterDirect ...Show All
.NET Development Concurrency violation while row exists
Hey Guys, I'm having a weird problem. I wrote some simple application in c# which shows the data of a acces database in a datagridview. On the RowChanged and RowDeleted events of the dataset i do a dataAdapter.update(dataset). It works all fine, i can add new rows, change and delete excisting rows. All no problem. The problem starts when i add a new row and then try to delete that newly added row. I know that it executes the insert statement and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. anxiety -- 2 question about Sample-Framework
1:------------------------------------------------------ I think here's some problems in sdk file(october 2005). Or the sdk is right but I am wrong I am not sure... in dxmutgui.cs line 854,MessageProc() not set the isDialogMinimized.. so when click the Caption,it's not minimize.. line 1655 OnRender() Rectangle(0, -captionHeight, width, 0); the last param is 0.so the caption even dosen't show at all.. I think the programmer copied the c ...Show All
Windows Forms VB.NET equivalent of String(5, "_")
What is VB.NET equivalent of String(5, "_"), which creates a string containing 5 "_" characters. Thanks Dim strTest As String = StrDup(5, "_") MessageBox.Show(strTest) ...Show All
Windows Forms Create a taskbar applet like Media Player 9
Hello, I want to do a small app that will run on the taskbar, just like Windows Media Player 9, or the address bar. It can be in C/C++ with Win32 or MFC, or in MC++/C#/VB.NET. My app will consist of a simple text box which I use very often. For now I'm using an overlay texture and low level keyboard reading; this is a very dirty method, and doesn't work very good. I searched a lot but didn't found any answer, and there are some questio ...Show All
SQL Server How to add a new .mdf with ONLY sql authentication in SQL Express?
Hi all. I am going around in circles all day on this. I have a clean new install of win XP SP2, VS 2005 Pro RTM, and a NAMED instance of Sql Express with mixed authentication mode specified at setup. The sa pw is 123456 I would have liked just SQL authentication but no such option. I am trying to add a new mdf file. If I just use the "Add New Item" in VS web app project it just adds a new .mdf file with windows authentic ...Show All
Windows Forms get the highlighted row index of a datagridview
hi all, i need to know the highlighted row index(which has arrow mark on the row header) of a datagridview control, but the problem is i need to know this when the datagridview control will not have focus. can any one help me on this. thanks in advance --- sombhotla hi, Is your problem solved If yes then could you please post the answer Thank you, Bhanu. ...Show All
Visual FoxPro Question about using left join and where clause together.
Hi, I have a select statement as follows: SELECT ; a.cust_id as Customer, ; a.store_no as StoreNo, ; b.pd_code, ; c.pd_sdesc, ; sum(b.ord_qty) as OrderQTY, ; sum((b.cs_uprice + b.handle_fee) * b.ord_qty) as OrderAmount ; FROM ; sspdodhd a, sspdoddt b, sspdcd c ; LEFT JOIN ; ...Show All
Windows Forms How do I deploy a .Net app on a PC without the framework installed?
Hi, Sorry, I know this is probably very simple but I am fighting a deadline and need a quick answer (please!). I have a standalone VB.Net app which compiles and runs perfectly on any machine with the framework installed... but when I shift it t ...Show All
Smart Device Development ArgumentException when Invoking Controls.Add()
I am using VS2005 and I'm developing for Windows CE 5.0, .net CF 2.0. I have an application that should dynamically add and remove Controls to a tabPage. If I trigger the adding and removing with a button, everything works fine but I didn't manage to trigger the adding and removing from a seperate thread. I call tabPage.Invoke(new pictureBoxAdder(addPictureBox), some params...); in addPictureBox I create a pictureBox and Add it to the tabPage's ...Show All
.NET Development more socket questions
i am working on a server application that acts as a proxy between multiple clients and another server. the destination server has 1 to many ports open on which is listens for "transactions" from my proxy server. the way i had envisioned the proxy server working is to check to see if a port is free on the destination server and execute the transaction (send, and wait for response). if the port is "busy", check the next port.&nb ...Show All
Visual C++ Trouble trying to initialize an unsized string
I am getting "Access violation writing location 0x00000000" when trying the following m_pstrName = new char [strlen(n)]; the variable m_pstrName is declared like this char * m_pstrName What is going on. Hi, Oops, sorry my bad, actually strlen(NULL) is generating the problem. Max ...Show All
SQL Server Binary_double Oracle data type support
I'm using RS 2000 and I'm getting an "unsupported Oracle data type 101 encountered" error when attempting to retrieve data from a dataset based on a plsql stored procedure. I'm assuming this is related to a recent update on our Oracle 10g database to convert columns from number to binary_double. Can anyone confirm if this is the case, and suggest a work-around Is binary_double supported in RS 2005 Thanks ...Show All
SQL Server How to give premission to a Active directory group?
Guys, Only admin group users are able to view the reports from my reporting services server and as we know its not good to add lot of people in that group. Is there a way I can create a separate group with limited previllage and allow them to view these reports My co. also have a active directory group for the people who would like to use these reports. Is there a way I can specify that group name somwhe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. dxwebsetup wierdness - deployment with app
Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0) This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine. 2 main problems here already: 1 ...Show All
