DarrelC's Q&A profile
Visual C# Image transfer
I am new to C#. I have to develop a simple client server application that takes screenshot (print sceen) of the client's desktop and just sends it to the server continuously every 3 seconds. Can anybody develop a sample appln and help me out. Thnx in advance for any help I m able to capture the screen, but the problem is in continuously sending and receiving the images. In particular, i m getting a MemoryStream error. It works once in a blue moon and gives a typical invalid parameter error while trying to receive the image. MemoryStream ms = new MemoryStream (buf); Image img = Image .FromStream(ms);//THIS IS WHERE THE ERROR OCCURS ...Show All
SQL Server OpenQuery() to Linked Server hangs, leaving SPID with open tran, then templog.ldf grows without limit.
Hi, We have a customer that is using SQL Server 2000, and experiencing the following intermittent problem -- occasionally templog.ldf will grow and grow until it fills the entire disk. This is a rare problem, it has happened less than 10 times in the past two years, for a job that runs once a minute. But it has happened on 3 different SQL Servers, (two production servers, and one test server). Our suspicion is that the root cause is an OPENQUERY() to pull data from a linked server (Oracle database on Unix). We have seen that these OPENQUERY() statements occasionally hang and cannot be killed. The OPENQUERY() is used to populate a local table, and when we originally populated permanent tables with OPENQUERY(), then there would be a ...Show All
Visual C++ tcscpy_s Assert with no useable stack trace
I am porting a unix app to VC++ and now I have got all the libraries to compile the application is asserting in tcscpy.inl with the message Expression: (L"Buffer is too small" && 0). When I break on this line there call stack does not show where in my code this call has originiated. I am not calling tcscpy_s any where in the code but the call stack indicates the original call was strcpy_s. The output window tells me the exe was built without debug information "Binary was not built with debug information." but it is compiled with the /ZI option. I have tried rebuilding with the /Zi flag Does anybody have any ideas why the IDE thinks I have no debug information I have tried commenting out al ...Show All
Visual Studio Need Help on SHFB.
Hi, I am using Sandcastle Help File Builder, HTML Help workshop, VisualStudio SDK and Sandcastle. When I am trying to build Documentation(Chm) for a project by selecting an Assembly(it's pulling relavant XML file). XML file is created by changing the properties of Solution file of Build option by check the XML Documentation option. So while build the application XML file is created automatically. That XML file contains only XML documentation tag comments (i.e /// comments). My Question: #1. How to include single line and multiline comments into that XML file (// and /* */) #2. By default SHFB taking public methods, how to add private and other methods into Documentation Please help me regarding this. Thanks &am ...Show All
SQL Server delete multiple rows with 2 ids
Hello All, I have a table: idSurrogate int identity id1 int id2 int id1 + id2 is a unique index I need to delete multiple rows from the table given a list of id1 and a list of id2 In other words @id1List = '10,20,30' @id2List = '1,3,5' I need to delete these 3 rows from the table 1) @id1=10 and @id2=1 2) @id1=20 and @id2=3 3) @id1=30 and @id2=5 I am a bit lazy today - can anyone help out with a delete sql stmt Thanks! Umachandar Jayachandran - MS wrote: You could use a TVF that splits the ids into individual values. You can then write a SELECT like: delete your_table where exists(select * from ( select t1.val, t2.val from dbo.split_string(@id1List) as t1 ...Show All
Visual Basic Exe Security
Which is more secure, an EXE created in VB6 or VB2005 I have some serious security concerns with VB6. Regardless of the language an application is written in... it is possible to disassemble it and make unauthorized changes to it. In the .NET world, there is a great deal of metadata that is automatically built into a .NET application or library and from this metadata is can be quite trivial to not only disassemble an assembly but also extract usable and recompliable VB.NET, C# or whatever other .NET language code you want from it with something like the Reflector . In order to make such a task more difficult, products like Dotfuscator exist whose job is to obfuscate your code to make it more diff ...Show All
Visual C# Database connection cannot be closed, DB cannot be copied
Hi, I want to copy my database from my application. I got an error message that said the file was in use. I checked my code, I acturally closed the connection before copying the database. My code is as followed. SqlConnection conn = new SqlConnection(DBConnectionString); SqlCommand sql = new SqlCommand("select DataVersion from globalData", conn); conn.Open(); SqlDataReader sqlreader = sql.ExecuteReader(); if (sqlreader.Read()) { userDBVerion = Convert.ToInt32(sqlreader["DataVersion"].ToString()); } else DocShare.userDBVerion = 1; sqlreader.Close(); sql.Connection.Close(); conn.Close(); //conn.dispo ...Show All
Visual Studio Installing Crystal Reports .NET Framework
I am using a setup project to deploy my Windows forms application. Since my application uses Crystal Reports I have been executing CRRedist2005_x86.msi independently to install the Crystal Reports .Net Framework required by my application. I have identified Crystal Reports for .Net Framework 2.0 as a prerequisite for my setup project but it is not installed when my setup is invoked. Any information you provide would be greatly appreciated. Mike ...Show All
Visual Studio Questions about Sandcastle
I have some questions and observations regarding the July CTP of Sandcastle when using it to generate documentation. The generated CHM file doesn't seem to have an index. There's no Index tab displayed in the viewer. The generated CHM file doesn't seem to have search capability. There's no Search tab displayed in the viewer. When the CHM file is double-clicked to open it for viewing, the right-hand pane of the viewer shows a mostly-blank page with a small warning icon in the upper left-hand corner. This mostly-blank page goes away when any of the entries in the table-of-contents in the left pane are clicked. In the CHM file, the documentation entries for class constructors always seem to have ".ctor" prepended to them. The table ...Show All
SQL Server refresh dataset in Report?
i was building report using visual web developer express 2005 and sql express 2005 (with RS). There doesn't seems to be a way to update the binding dataset in the rdlc file. I manage to update the ds by refreshing the schema in object data source and rebind it in reportviewer. But the new fields are not reflected in the rdlc. Any way to refresh it I was forced to edit the file in notepad. ...Show All
.NET Development How to retrieve the values of the uncommon file properties?
When using windows explorer to view files in details mode you can see that there are a bunch of additional file properties such as: Bit Rate Dimensions Date Picture Taken Camera Model Episode Name Program Description etc... If you are looking at the properties of a .WMV file and see the "Bit Rate" listed under the Advanced... section, how do you programmatically access this information from .NET. I looked at the System.IO.FileXXX classes and could not find a way to access the values of these uncommon file properties. Any help would be greatly appreciated! Thanks. Sean, I have the exact problem without a satisfactory answer. I have written a VB.net program that can extract the Date Photo Ta ...Show All
Visual Studio ReportViewer: An error ocurred during printing
I'm experencing a very annoying error. I have a ReportViewer control in an ASP.NET page which is configured programatically. That means that I use the following methods to configure it: private void GenerateReport(string reportType) { reportViewer.ProcessingMode = ProcessingMode.Remote; reportViewer.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportServerEndPoint"]); reportViewer.ServerReport.ReportPath = "/MyReports/AllIssuedCardsGroupedByDate"; // Add report parameters if (!Page.IsCallback) { ReportParameter[] parameters = GetParameters(); reportViewer.ServerReport.SetParameters(parameters); } } private ReportParameter[] GetParameters() { ReportParameter[] parameters = new ...Show All
Visual Studio Visual Studio Pro Trial Installs with Warnings
I finally achieved a successful download using DownloadManager and a successful DVD burn using DeepBurner. At least I think so... is there a verification checksum available for the download MD5 or a CCITT-CRC32 Well, assuming the DVD burn is correct, the installation seemed to succeed, but with warnings. I have tried to uninstall and reinstall several times. Each time I uninstalled everything and restarted my computer. I disabled Norton Internet Security each time. My OS is XP Pro SP2. I have previously installed VS 2003 Pro, and VS 2005 Express with no problems. I have already ordered the trial DVD and submitted a purchase request, but I need to continue work to avoid falling behind on my project. Please help! terr ...Show All
Visual C++ Proper OOP documentation
I am making a class library; to insure flexiblity and proper technique, I inherited the main class from an interface. The main class does not add any addition public members. My question is should I document the interface or the main class NeederOfVBHelp wrote: I am making a class library; to insure flexiblity and proper technique, I inherited the main class from an interface. The main class does not add any addition public members. My question is should I document the interface or the main class I'd suggest you document both. The interface documentation should provide general information about what the interface should be used for, what types of classes might use it, etc. The main class docu ...Show All
Visual Studio 2008 (Pre-release) BitmapImage is not raising the DownloadCompleted event
Why isn't the DownloadCompleted event raised when the instance of BitmapImage is created in a worker thread It does raise the event as expected if it was created in the main thread, so is this limitation "by design" void OnClick(object sender, RoutedEventArgs args) { ThreadPool.QueueUserWorkItem( delegate { BitmapImage bitmapImage = new BitmapImage(); bitmapImage.DownloadCompleted += new EventHandler(bitmapImage_DownloadCompleted); bitmapImage.BeginInit(); bitmapImage.UriSource = new Uri("http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif"); bitmapImage.EndInit(); }); } //The code bellow is never executed: void bitmapImage_DownloadCompleted(object ...Show All
