Bob Cohen's Q&A profile
Visual Studio Tools for Office Action Pane
I've created an Action Pane in C# VS2005 and inserted a Tab control. I'm trying to make the tab control fill the entire action pane. I can't work out how to set the control so it fills the entire Action Pane space. Thanks! It was the this .ActionsPane.StackOrder = Microsoft.Office.Tools. StackStyle .None; line I was missing. ...Show All
Visual Studio Team System To detect the use of 'return' keyword
Explicitly using return allows the JIT to perform slightly more optimizations. Without a return statement, each function is given several local variables on stack to transparently support returning values without the keyword. How to detect whether a method uses 'return' keyword (of course irrespective of language). Can Fxcop do this Using the visitor pattern to traverse the Method.Body, you would override VisitReturn. Otherwise, yo ...Show All
Visual Studio Team System Problem when i want to add a new project team with Team Explorer
Hello, I have a problem in the sharepoint site (party) when i had a new project team : The message is : 8/10/2005 4:58:50 PM | Module: Engine | Task "" from Group "" completed with success | Completion time: 0 seconds 8/10/2005 4:58:50 PM | Module: Engine | Thread: 6 | Running Task "SharePointPortal" from Group "Portal" ---begin Exception entry--- Time: 8/10/2005 4:58:51 PM Module: Engine Event Description: TF30162: Task "SharePointPo ...Show All
SQL Server XML Source Error
Hi, i am getting the following error in XML Source after generating the schema . if i click the columns Error at Data Flow Task[XML Source[1]]; There was an error setting up the mapping . The root element of a W3XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema' what could be the reseaon Jegan Hi Jamie Thanks for your reply. the problem got solved ...Show All
.NET Development Serial Port - Encoding problem
Hi I'm having some problems reading from the serial port. ASCII > 127 are displayed as ' '. I know this is an encoding issue, and I've read other post here on the same issue, but I haven't found a solution. I tried using _serialPort.Encoding = Encoding.GetEncoding(28591) which didn't make a difference. I've also tried to set the Encoding property to Encoding.Default and loads of other encodings with no luck. For some encodings, characters ...Show All
.NET Development GetLogicalDrives differences between 1.1 and 2.0
I have a computer on a network which has many mapped network drives. When I call Environment.GetLogicalDrives() or Directory.GetLogicalDrives() or [DllImport...]GetLogicalDrives by pInvoke I get different behavior whether I call it from .NET 1.1 or .NET 2.0: In .NET 1.1: I get all my drives, both local and network drives In .NET 2.0: I only get local drives. I'm really puzzled how making a pInvoke call could be affected by .NET security so I sus ...Show All
Software Development for Windows Vista Sample Problems On Building - Actiivity 'workflow1' validation failed: Property 'DataObject' has invalid value. Field
Hi, WF Newbie Here. Have got VS2k5, WF Beta 2 I am trying to work my way through the samples in teh book Presenting Windows Workflow Foundation. The second example of a windows app talking to a workflow, won't build. The error(s) thrown are Activity 'waitForData1' validation failed: Property 'DataObject' has invalid value. Field 'data' does not exist. I have downloaded the code from the publishers and it still won't build. A ...Show All
Visual C# HELP US!!!
Hi We are at least 4 or 5 people on this forum that are trying to get an answer for this question: We make our own .dll in managed code c#, and when we use DllImport, we get the exception for invalid entrypoint.. why I saw on a site this definition EntryPoint This specifies the name or ordinal value of the entry point to be used in the DLL. If not given, function name is used as entry point. but we give the fuction name and still that ...Show All
Visual C++ Debug Assertion Failed
Hi I have just got our main C appilcation which was developed under Visual Studio .Net 2003 ported/compiled/run successfuly as a release build under Visual Studio 2005. However when I try to run the debug build I get the following: Debug Assertion Failed Program : myapp.exe File : f:\rtm\vctools\crt_bld\self_x86\crt\fstat64.c Line 64 Expression (_osfile(fildes)&FOPEN) I have degugged it to the following function and t ...Show All
Visual C# Compiler Warning CS0465: Introducing a 'Finalize' method...
Compiler Warning (level 1) CS0465: "Introducing a 'Finalize' method can interfere with destructor invocation. Did you intend to declare a destructor " According to the MSDN online docs, this warning is supposed to happen when a public virtual Finalize() method is declared, but in my case it is a private non-virtual method and it seems that the warning is invalid... am I missing something Is tha ...Show All
Visual Basic File I/O speed in VB.NET vs VB6
I read and write a large data structure in VB.net as: FileOpen(1, TheFileName$, OpenMode.Binary, OpenAccess.Write) FilePut(1, Drawings(DrawingIndex)) FileClose(1) Where Drawings is a Structure and consists of other structures, arrays of arrays etc. In VB.net this is almost 10 times SLOWER than the equivilant from VB6 In other words, the same basic read/write operations seem to take 10 ti ...Show All
SQL Server Import/Export data with SQL Server 2005 Express
Hello folks! I have installed SQL Server 2005 Express and SQL Server Management Studio Express. Everything looks ok and works fine, but I can't find the Data Import/Export Wizard. Can anyone tell me how to Import/Export data Thank you!!! SQL Server 2005 Express Manager does not offer Import/Export functionality as it is dependent on SQL Server Integration Services (SSIS) and SQL Server Agent. Y ...Show All
Visual C++ Problem to delete unmanaged object
Hello, I would like to know why I'm unable to delete an unmanaged object : Here is the code : public ref class SpeGui : public System::Windows::Forms::Form { private : String^ m_sCompassPort; int m_nCompassBaudRate; int m_nCompassDataBits; int m_nCompassStopBits; int m_nCompassParity; int m_nCompassRefreshPeriod; int m_nCompassAccuracy; PI_DigitalCompass * m_pThCompass; MyCom ...Show All
Visual C++ com/atl attributes broken
It seems most of the ATL/COM attributes from 2003 -> 2005 have been broken. Im using the RTM. I just compiled a COM/ATL project which works fine in 2k3 but in 2k5 i get lots of errors with attributes. A classic is: [ uuid("xxx-blah-xxx") ] class myForwardDeclaredClass; That no longer works. I find I have to do: class __declspec(uuid("xxx-blah-xxx")) myForwardDeclaredClass; There is no documentation or acknowledgement of this problem anywhere. ...Show All
Visual Studio Express Editions Registering Express Edition on 2 Computers
Hi. I installed the Express Editions at work. I then went to each product's Help menu, and clicked the "Register Product..." item. I logged in with my Passport, verified my information, and received a Product Key that I pasted into the Registration Form. Sometime later, I installed the Express Editions on my PC at home. I also went to each product's Help menu and clicked the "Register Product..." item. From home, I logged ...Show All
