lwsimpson's Q&A profile
Visual C# A Class Sending data to a sql table
I have a class that my program has in it that makes a object that has properties that need to be sent to a database for long term storage. Can someone tell me how this is done. I dont see anything that tells me how to do this. Is it possible As you guessed im new to C#. Thanks Jon http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ADOPlusOverview.aspx ...Show All
Visual Studio 2008 (Pre-release) Client callback with a facade
I need some help with the following design pattern. It is a basic publish/subscribe pattern with a facade. The subcriber is a Wcf windows app. The publisher and the facade are both Wcf services. The subscriber communicates with the facade via Http. The facade forwards the request to the publisher via netMsmq. The publisher processes the request and sends update messages directly to the subscriber (it does not go back via the facade). The publisher continues to push updates to the consumer until told otherwise. My question is, what is the best way to pass a client callback to the publisher In other words a duplex MEX via an intermediary. I have checked out the router sample but it looks a bit complicated. Scott The second sam ...Show All
Visual C++ testing programs
I try to test programs that I create useing microsoft visual studio 8 c++ but when I make a program all it does is tell me to see the build log. I need to test it, so how do I do that You need to build with debu info enabled. See http://msdn2.microsoft.com/en-us/library/958x11bc.aspx for more details. Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms datagridview.ClearSelection()
Hi all How does this work . I have a datagrid which is bound to a DataTable when the form opens. The program automatically selects the first row it that datagrid. How can i "unmark it" without loosing currentRow Tnx. Lars It clears all selected cells ( if multiview allowed), so as no cell is selected after use of this method, u don`t have currentRow property. U must put its value into other variable be4 calling that metod, and then unselect. This way u can achive everything u wrote. ...Show All
SQL Server Problems Creating Database on SQL Srvr. 2005 Ent. Edtn.
Posted - 12/17/2006 : 07:23:22 Hi Joey, Thanks for your response. I did have those drives available (e,f,g) and the subfolders required. However, I created them as shared folders mapped to respective volumes. I think the problem there is the way the SQL Server permissions. I tried as you suggested, with just the C: drive and it worked no problem. I don't know why SQL can't find the volumes though... will have to investigate that further. Thanks, Will ...Show All
Smart Device Development Cannot display local XML files in emulator
Using IE in the Pocket PC 2003 SE Emulator, I can view XML files over the Web (i.e. via a URL) but not local XML files (i.e. file:\\...) that are on the device's storage card (i.e. a folder on the host machine). Is this a limitation of the emulator, are local XML files displayed properly in actual devices, or I am doing some wrong But IE on the real device does display the local XML files, right (my problem isn't manipulating XML files, but whether the Web Browser component in my app will be able to display the contents of XML files -- because that's what my app does, it converts Fast Infoset files to XML on the fly and displays the XML file to the user) ...Show All
Visual C# private fields, public properties...why??
Why is it preferred to have private fields and use public properties to access and/or set the variable values Some of the books i have read do explain why...but only vaguely. Does anyboday know the real 'life threatening' type reason why we should do things this way Thanks well there is that too in a sense but its just best practice/better design. Say you are working on a large project between you and your developers. What happens if a developer accidently, without realizing, sets a value of a property of a class to something which you do not want, or which can cause severe problems during your execution of your application, such as calculation or changing a bool value to true inste ...Show All
Internet Explorer Development How to change the printer settings in IE 7 using Java script or CSS
I know there are tons of external Active X controls doing that, but according to Microsoft, they did lots of improvements in IE7’s printing. I want to change the page settings to landscape or portrait before printing it, from the html page itself, in IE7 if possible. How to do that :-) How can I change that thing I tried the CSS to set the @page for landscape, and it didn’t work on IE7 Is there a way to set the page to landscape programmatically ...Show All
SQL Server DTS Import data problem ( excel into database )
Hi all, I face a small problem in DTS, hope you can help me to solve this issue. I designed a DTS package to import excel data ( with 4 column ) into SQL server database,The database design for the database table was column name type length ID bigint 8 CountedQty decimal 9 Location nvarchar 8 Other nvarchar 50 The DTS package is work and does not appear any error message. But the data in column 'Location' appeared <Null> after import into the database, this issue happen when the excel data was <numeric> value (string value in this data column can be accepted and appear nicely). Izzit because nvarchar ...Show All
Visual Studio Tools for Office Calling a VSTO Excel project from a WinForm
I have created a solution in Visual Studio 2005 with several VSTO Excel projects and a windows application. Depending on the user selection, I would like to call a VSTO Excel project. How do I call the VSTO project from the winform application Hi, The following sample can hopefully get You started: Imports System Imports System.Runtime.InteropServices Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim xlApp As Excel.Application = Marshal.GetActiveObject("Excel.Application") Dim Counter As Object For Counter = 1 To xlApp.COMAddIns.Count ...Show All
SQL Server Running job error in schedule
Dear All, I set the scheduler to run a stored procedure and it casyes error. Failed to run the stored procedure but when running it manually from the query analyser it works just fine. This is the error. SQL Server Scheduled Job “Job ABC” (0xE708F39963C95A4390BC3C99E6A029AC) – Status: Failed – Invoked on 2006-12-10 03:00:00 – Message: The job failed. The job was invoked by Schedule 7. Could anyone please advise what should be the problem Regards, LG Refer to the KBAs:http://support.microsoft.com/kb/269074 - to schedule a dTS job and resolve the issues and http://support.microsoft.com/kb/290077 fyi. ...Show All
Architecture Trying to figure out the max. number of concurrent users/requests for a single server.
I have set the number of maxiothread and other settings in the machine.config as MS has suggested for heavy loads. I am running on Dual CPU's Dual Core servers with 16 GB of RAM. I am running load test using 3 sites going to different application pools - load balanced. I get up to around 250 users and I start to see response delays but can't figure out what is causing them. All 3 servers, web/app and db are running under 30% cpu and under 10% memory. I am loading the system to 500 concurrent users and have tried adjusting the settings for better CPU utilization on the web server with no luck. I am reading all the Tuning .NET Application Performance (pattern & practices) chapters on this subject. I am running Windows 2003 x64 ...Show All
.NET Development XmlDocument
Hi, I need to create an XML document in VB.NET to include the type of the element as this will be used by another process once I have created and exported the XML file e.g. <IDField type="asn1:INTEGER">3</IDField> Is it possible to do this, I have looked at XmlTextWriter as a method for creating the XML document within VB, but can't see an option to include this information. If I load in an XML document that already has this information in it then it is retained internally and is present when I export the document again. Any help appreciated, Dave What you have in your XML sample is simply an element with name IDField which has one attribute that has the name type and the value asn1:INTEGER. So with XmlTextWr ...Show All
SQL Server How to use the Microsoft OLE DB Provider for DB2.
I follow the steps: 1.In configure OLE DB Connection Manager dialog, I click New. 2.In Connection Manager dialog ,I choose Native OLE DB\Microsoft OLE DB Provider for DB2. 3.In Connection Manager dialog I click the "Data Links" button. Now I am on "Data link property" dialog. 4.On connection tab, I enter fmdb for data source, which is my remote database name. On Network section I choose TCP/IP Connection and set the right IP/Port. Uncheck Single sign-on and enter the user and password. Then comes the Database section. Database name fmdb for Initial catalog,"fmdbrun" for Default Schema, then what is Package Collection (My db2 database is in a AIX/RS 6000 box). 5.On advanced tab, I choose DB2/6000 fo ...Show All
Visual Studio Express Editions Express edition vs. "the real thing"
Hi folks, I am currently working on a program that I intend to use at our company. Since VBE is free, I thought I start with that to see if I can manage to get the job done. Now it appears that it might work, so I think about purchasing the VB Studio 2005 package (VS). I bought Evangelos Petroutsos book "Visual Basic 2005" (recommended!), and from what I can see everything applies to both the VB part of VS, and to the VBE edition. I have a few questions however, just to make sure: - can any solution written in |the Express edition be imported / opened in VS or does it need to be re-written - will an application compiled in VS run faster (more optimized code) - is there anything else different that I should know Greetings, Th ...Show All
