Eric Cann's Q&A profile
Visual Studio Unable to overwrite a corrupted data file in VSS 6.0
Hi, There is a corrupted file in ..VSS\Project\data\b\ folder - file name "bwibaaaa.a". I tried to replace this file from a backup. It came up with a message "Cannot copy bwibaaaa: The file or directory is corrupted and unreadable." I'm doesn't allow me to rename or delete this file either. The same above message appears when I do that. Please help! Thanks, -Wei It sounds like you may have a corrupted disk if you get the message "Cannot copy bwibaaaa: The file or directory is corrupted and unreadable." when you attempt to overwrite the file from WindowsExplorer. You should run a disk check (either in command like "chkdsk /F C:\") or in WindowsExplorer select ...Show All
Visual Basic Unable to build my porject, i am using VB.NET 2003
I build my project and run it successfuly. Then i added a setup and tried to build it. It faild. it shows a message 'unable to build assamby named 'xyz.exe', HRESULT == '8007064F'. I read on the internet the character " ' " which may found in the project name may cause this error. actually there was one and i removed it, but the error is still there. Any help NIBbaye, There has been an internal failure while attempting to package an assembly. To correct this error 1. Make note of the exact text in the error message. 2. Contact Microsoft Product Support Services and report the error. According to your problem, I suggest you to take a look at the property of your project. Just right click the project name in ...Show All
Visual C++ Urgent !! Update the DataGridView contents on Form1 in a thread
Hi guys, I am using Visual C++ in Visual Studio 2005 (.NET 2.0). I have created a Form application. The Form is called Form1 and on it is a DataGridView with say 11 columns and 5 rows. Then when the user clicks a button on Form1, I will go off into a thread using BackgroundWorker to do some calculations and I want to update the content of the DataGridView on Form1 "from" the thread. But I get this System.InvalidOperationException: Corsss-thread operation not valid: Control 'dataGridView1' accessed from a thread other than the thread it was created on. What is the best and correct way to do this please help. Thank you very much Cheers Davo Hi, Yo ...Show All
Windows Networking Development Weird one - Router Death by Vista
Here's a weird one. It seems that Vista RC2 is routinely killing my ADSL router I have a dual boot system (patched up XP Pro vs Vista RC2). Vista seems to be killing my D-Link DSL-500 like...., several times a day while Vista is running. Has anyone else noticed this I'm thinking.... some sort of weird network plug and play thing (which is disabled - by the way) RickW ZardoS42 wrote: Except I have always had uPnP disabled and I still get hard lockups every few hours What model router do you have I may end up having to buy another brand/model :( Rickw I have a SMC Barracuda 7004ABR v2 EU ...Show All
SQL Server connection string error
OK - I have seen lots posted on this, but the behavior is very strange, and I am trying to understand: I am using Visual Basic 2003 with SQLEXPRESS 2005 to connect to a database and to develop a desktop application. My connection string is: Conn_Str = "Data Source=.\SQLExpress;AttachDbFilename=" & _ Directory.GetCurrentDirectory & "\CWW.mdf;" & _ "Trusted_Connection=Yes;" I get the following error: "An attempt to attach an auto-named database for file C:\Documents and Settings\Brian\My Documents\Compressor Program Development\bin\CWW.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share." However, if I c ...Show All
SQL Server Data Mining Add-Ins doesn't work with non-English regional settings
I tried Data Mining Add-Ins for Office 2007 - CTP December 2006. Test settings: Windows XP SP2 english with Italian regional settings, Office 2007 english (RTM), SQL Server 2005 Developer (with SP2 CTP Dec06) and Data Mining Add-ins for Office 2007 (CTP Dec06). If I keep regional settings in Italian, I get error like this: Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)) If I change regional settings to English, the Add-in works. I found this description as the possible cause of the problem: http://msdn2.microsoft.com/en-us/library/ms178780(vs.80).aspx - if this is the issue, it would be necessary to change the ExcelLocale1033Attribute on the component. Is there another workaround ...Show All
Visual Studio 2008 (Pre-release) WPF application makes call to server through WCF and hangs
Hi, OK, this is what we did: Created two console applications, one server, one client. Implemented an server interface and callback. After setting the config files on server and client (using named pipes and WCF) we got everything to work. We are making a call to the server, and within this call, the server calls the client back [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,ConcurrencyMode=ConcurrencyMode.Reentrant)] Then we switched the client to a WPF (STAThreading). When the WPF app calls the server, the call makes it to the server, but never comes back. The client just times out... The really weird thing is that this only happens if we create the service in the Button handler, code looks like this: [Button handler c ...Show All
Visual C# Default value for C# properties/functions?
In VB .NET, I can create a property or function that doesn't explicitly return a value. For example: ReadOnly Property FallThrough() As Integer Get End Get End Property I can leave that property as-is, and it will return 0 when I retrieve its value. I'd like to be able to do the same thing in C#, but it looks like it requires a value to be explicitly returned. The problem is I'm going to have properties with many different data types (so I can't just return 0 in every case) and my requirements say that I can't use the System.Reflection namespace. Basically, I have some code that goes into each property, if certain criteria aren't met, I'd like to just return the initial/default value for whatever data t ...Show All
Visual Studio Tools for Office Working with submenus in Outlook 2003
how to Create Command Meun with two childs there is what i need Send By: -email -SMS msdn was not clear for me and it was creating menu bar . and what i need is a command menu. t how to learn the basic meaning of the argument for "(Office. CommandBarButton )sendByPopup.Controls.Add( Office. MsoControlType .msoControlButton, 1, missing, missing, true );" ...Show All
Visual Studio Express Editions Joining code
Is it possible to make a program with joined code (Like joining a little bit of VB and a little C#) Ohhh How do you make DLL's That too is easy start a new project of the type Class library. Add your code. Wrap it in a Namespace and then build it. Be aware that a dll is a slightly different environment than a process and does not have accesses to all classes that an executable does. ...Show All
Software Development for Windows Vista LAN Driver problem
Hi all. Finally yesterday finished downloaded Vista x64 Ultimate for my pc, it is build 5600 rc1. Upon getting into vista and being very impressed with what ive seen i started to install the drivers and such, now i couldnt install the drivers using vista so i set the compatibility for Windows XP SP2 and the drivers installed fine Unfortunately under the network area in vista it says unidentified network and the onboard lan cannot connect to my router. whenever i try to renew my ip address nothing happens and the private 169 address is given to the adaptor. Im using an Asrock 939Dual-SATA2 - This has a ULi M1695 chipset. Does anyone have an idea where a vista compatible driver is for this chipset Any help appreciated! ...Show All
Visual FoxPro Memo field conversion
I am not a Foxpro developer so I'm throwing myself on the kindness of my foxpro brethern. I'm converting data from a foxpro system into Oracle and have run into a problem with a memo field. The data appears to be stored in a .fpt file and I haven't a clue as to how to get to the data and and convert it (including the foreign key) into a text file, excell or any other format that I can use. Any advice you can give me will be greatly appreciated. Alex Feldstein wrote: A FoxPro table is a DBF. When the table contains a memo (variable length text) field, this portion is kept in a companion FPT file. The DBF contains a pointer to it. Ergo, the FPT cannot be used by itself. Alex, his problem is that M ...Show All
Visual Studio Printing without the ReportViewer
In a Win Forms app, is it possible to print a report without using the ReportViewer control I want to provide a print button on a Form (like Outlook does) and then use an embedded Report to print the data so I don't really need the ReportViewer. I would want to display the PrinterDialog though and use the settings from here to control the printed Report. Is this possible too Regards Graham I figured out the print quality issue. The sample code in this post uses the drawimage improperly. The code sample on the MSDN docs shows the correct usage: http://msdn2.microsoft.com/en-us/library/ms252091.aspx the PrintPage method should call DrawImage with the PrintPageEventArgs PageBounds property like t ...Show All
Windows Forms Print Preview problem(Bug)
Hey, I have this code in the PrintDocument control under the PrintPage event: private void printDocument_PrintPage( object sender, PrintPageEventArgs e) { RtextboxUC thisrichtextbox = GetCurrentTextBox(); //Start printing text and store last letter... checkPrint = thisrichtextbox.Print(checkPrint, thisrichtextbox.TextBox.TextLength, e); //Check if there should be more pages if (checkPrint < thisrichtextbox.TextBox.TextLength) { e.HasMorePages = true ; } else { e.HasMorePages = false ; } } There are no errors, but when I test it on my program and click print preview...when it opens the PrintPreview dialog It shows the dialog that is telling you how many pages it is det ...Show All
Windows Forms Handling different iexplore processes
Hi, Suppose I have 3 iexplore process running. (a,b and c) I want that my code should identify the ‘b’ iexplore process and open one url there. (but not in other two iexplore process) At present I can identify the process but couldnot run the url there so that the page opens in that process window only. Any help I am using the following code int i=0,iflag=0,pid=-1; // iflag=0 means no B window is open Process[] p; p=Process.GetProcesses(); for (i=0;i<=p.Length-1 ;i++) { string s=p .ProcessName; if (p .ProcessName =="iexplore") { ...Show All
