Software Development Network Logo
  • Windows Vista
  • Visual C++
  • Visual J#
  • VS Express Editions
  • Visual Basic
  • Smart Device
  • SQL Server
  • Windows Live
  • Visual FoxPro
  • Architecture
  • VS Team System
  • Microsoft ISV
  • Visual C#
  • Windows Forms
  • Game Technologies

Software Development Network >> James Kerr's Q&A profile

James Kerr

Member List

RudyH
kstephan
xpatriot
Rigo Castillo
dotcomsoftware
iamunmad
Johann MacDonagh
Bogdan Grigorescu
BroadSurf
TomThe1337
Eric the Grey
brymer
David_VA
malconium
Bibi Watson
Joe Albahari
Jayden CHan
Harri V
Somebody
kaffeeschluerfer
Only Title

James Kerr's Q&A profile

  • Visual C++ CDockBar::Insert

    There has been a huge bug in this MFC function for the last decade.  It shows up in applications that have many toolbars when you have some toolbars hidden and multiple rows of toolbars.  It mis-calculates the number of toolbars rows and drops you toolbar in some row below where you specify.  It's hugely annoying to the point of be unusable. It would be soooo easy to fix and it's very difficult to work around. What is it going to take for Ms to fix it    Pleeeeaaase, I'm begging here.  This is exactly where the bug is: CDockBar::Insert ... for (nPos = 0; nPos < m_arrBars.GetSize(); nPos++)  &nb ...Show All

  • Software Development for Windows Vista TransactionScope in webApp

    i am using TransactionScope in webApplication where both workflow and sql are running in same system. but i am getting " DTC is not enabled" error. Note: i am suceessfull in using TransactionScope in Windows Application where both workflow and sql are running in same system If everything works fine locally but when you have the workflow running on one computer and sql running on another. It is a configuration issue you need to have DTC configured on both Runtime and SQL computer to accept remote clients. When using the persistence service in remote configuration the workflow is aborted on per ...Show All

  • .NET Development How to dynamically change connection string in generated dataset class?

    I have a project with database classes which are generated from database objects. That is I add a dataset to the project and drag and drop a database object onto it. The problem with this is that I have to give a connectionstring which is stored in the code. This is ok while developing the application. But runtime I want to use another connectionstring, both for security reasons and because each user of the application will correspond to a database user (ms sql) and shall have a corresponding connectionstring. Is there an easy way to do this without having to restore to plain all datasets and do everything myself Of course you can. You ...Show All

  • .NET Development ExecuteNonQuery is not returning no of rows affected (Oracle Provider)

    Hi , I am using Oracle provider for data access.But the ExecuteNonQuery  of Oracle command is not returning the no of rows affected properly.Its always returning 1 while deleting records. (I tried to delete a junk id from database,at the time also its returning 1) Could you pls help me to sort it out. This is the snippet which i am using, Dim Cmd As OracleCommand Dim retVal As Integer Cmd = New OracleCommand 'Custom function for attaching connection and transaction with command PrepareCommand(Cmd, Con, Trans, CommandType, commandText, commandParameters) retVal = Cmd.ExecuteNonQuery() Cmd.Disp ...Show All

  • Visual Studio 2008 (Pre-release) DataContracts & svcutil & generated proxy oh my!!

    First off, I am still learning and this question may be way off because of my lack of knowledge of web services and WCF. I have a class and I am wanting to create a data contract. For example, I have my WCF service in one namespace and then I have a class in another namespace and I want to pass this class to a WCF method. My question is where does this class need to reside Should it be included in the same namespace as the service contract Does it need to be referenced in the .svc file And what effect does the svcutil have with data contracts, does it need to be part of the generated proxy Thanks in advanced for you help! ...Show All

  • Windows Forms TabPages.Insert Bug?

    Is anyone else out there having problems inserting TabPages I thought it might be a problem in my main project, so I created a new WinForms test project, dropped a tabcontrol on the form, and added a line to insert a tab at position 0. Nothing else. My constructor looks like this: public Form1() {    InitializeComponent();     this .tabControl1.TabPages.Insert(0, "Test" ); }   But when I run I only get the two tabs the designer adds by default.  I've tried all kinds of other permutations and still nothing.  No errors, but no inserted tab either. Thoughts ...Show All

  • Windows Forms Does anyone have links about Information Design & Layout for data-heavy apps?

    I'd like to check out some articles/tutorials/books/whatevers that discuss information & layout design. I'd prefer that the links are not too dependent on any programming language at all, though if the information is useful to you I'd like to check it out anyway. Share your links -- I'm very curious to read up on this subject. :) If your are looking some general reading on UI design I would recommend JoelOnSoftware: http://www.joelonsoftware.com/uibook/chapters/fog0000000057.html Max ...Show All

  • Visual Studio Express Editions How do you shut down computer from VB 2005

    I have tried every code that I could find and nothing seems to work.. Any suggesions on how to do this Link to a class to shutdown windows http://www.mentalis.org/soft/class.qpx id=7 ...Show All

  • Visual Basic Remote user pc by admin pc

    I am doing Cybercafe now. for example one of the user pc at my Cybercafe name is calvin , so i should type "shutdown.exe /s /m \\ calvin " right Where should i type this command at admin pc to control the user pc to shutdown ...Show All

  • Windows Forms Yes! Another DataGridViewComboBoxColumn Question!

    I'm sure everyone here is overjoyed!   Here's my problem. 1)I fire off a query and fill up a dataset, grab a datatable out of and bind it to a DataGridView object.  I'm not using any of the visual tools doing it all by hand. One of the columns in my dataset is an integer field called "status".  it has a value from 0-3. nothing fancy. I then fire off a second query and fill another datatable with textual values of what these statuses are.  examples: "low "priority" up to "high priority". with a range of 0 to 3 which corresponds to my integer value i have saved in my other table. I then create a DataGridV ...Show All

  • SQL Server Use Command or BCP for large SQL statement

    I have an application (Java) which is converting a relatively large XML files (>8MB) and generating SQL Insert statements from the contents. The resultant SQL from the transformation is quite large (nearly 8MB also) and I'm just wondering if people would have an opinion as to whether to just place the SQL into a command and execute it or write it out to a file and use BCP or something similar. My preference would be to insert the data straight from the application to cut down on the number of "working parts" but I'm just worried there would be too many performance issues. For operational reasons I can't just pass the XML to S ...Show All

  • Visual Basic Learning VB6

    Hi, Im wondering if anyone could help me out I have got Visual Basic 6.0 and Visual Studio 2005 and want to know if there are any good sites with tutorials on using these packages (particularly VB6 for starting up) , Can I get learning Packages or Starter Kits , I dont know any code but understand how it works, I know HTML and tried some JAVAscript ... can anyone please advise.. Thanks Paul Hi ReneeC, I was told that you might be able to guide me to some good starting out sites for tutorials etc... ..for Visual Basic... and would i be better using VB6 or VS 2005 ...And does the MSDN ...Show All

  • Windows Forms Posting a user-message into the application Message Queue.

    Hi all, I'm currently looking whether there's something available that allows me to post a WM_USER message into the current application's message queue. I already did discover the IMessageFilter to monitor and respond to messages, but I haven't found any method to insert messages into the queue. Normally I would use the PostMessage API. So how do I go about this ...Show All

  • SQL Server Join tables, count problems

    Hi, I have the following problem: I want to join 2 tables but the table that I want to join on has duplicates of the same record. This is what my query looks like: SELECT a.account, e.account AS Expr1, COUNT(e.ord_status) AS SentOrders, MONTH(e.datetime_added) AS Month, YEAR(e.datetime_added) AS Year FROM executionreports AS e INNER JOIN accounts AS a ON e.account = a.account WHERE (e.ord_status = '0') GROUP BY a.account, e.account, MONTH(e.datetime_added), YEAR(e.datetime_added) ORDER BY Expr1 and the output looks like this: 1AA 1AA 328 4 2006 1CC 1CC 45 3 2006 1CD 1CD 8 4 2006 1MA 1MA 1167 3 2006 1MA 1MA 8 ...Show All

  • Visual Studio Problem building

    I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now.  Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build the solution after just opening it in VS.  But all subsequent build attempts fail with this same error.  If I exit VS and reopen the project then I can again build one time and al ...Show All

©2008 Software Development Network