bahy's Q&A profile
Visual Studio Supplying Data To Report
I created a data set with a data table within my project and then added columns etc to the table. I created a crystal report and set the defined data table as the data source. Within my code a populated a data table of the same type as the one the report was built on and then supplied it to the report, but the report does not contain any data... objRpt = New crAppealRpt With objRpt .SetDataSource ( objAppeals. tblAppealRpt . Load .Refresh () Dim objView As New frmCRRptView objView . CrystalReportViewer1 . ReportSource = objRpt ...Show All
Visual Studio How to open a visual studio project through my code?
Hi All, I want to open a visual studio project through my visual studio addin code. In this addin i am adding on menu under tools menu which will popup a dialogbox to get project file path. after pressing ok button on this dialogbox that project will get open in studio's IDE. File.OpenProject command do this. but how i should use it in my connect::OnConnection function Any pointer for this Thanks in advance. Thanx Craig, Im able to open a sln in IDE. Here is my addin code snippet. public class Connect : IDTExtensibility2 { public Connect() public void OnConnection(object application, ext_ConnectMode c ...Show All
Visual C++ include file not found--in only one file of the project -- Visual Studio 2005
I am using Visual Studio 2005 for a mixed C++/C# solution, which contains one C++ project for access to an unmanaged API provided as header files and a .LIB file. In my C++ project, I have two files which do #include <global.h> , a .cpp file containing code, and a .h file with declarations for the .cpp file. Both files are in the same project, and have the same path for include files, and use the exact same include files in the same order (global.h is actually the first of several header files needed for the API). The .cpp file compiles without errors--however, the .h file gives the error Error 1 fatal error C1083: Cannot open inclu ...Show All
.NET Development ConnectionLimit behavior
Hello. I noticed that when I set ServicePointManager.DefaultConnectionLimit to 10 and I spawn 20 threads, the first 10 go through fine, which is expected. However, the next 10 seem to be going out one at a time, not simultaneously. I was expecting them to grab the 10 available connections that had been released by the first 10. Is that the expected behavior Thanks, Ever Unlikely.. How do you know that the next 10 are going one at a time I mean what mechanisms are you using to verify this If the requests are getting queued after the previous request is finihed there is no need to use a separate conn ...Show All
Visual C++ Unmanaged void* to .Net System::Array
I have an unmanaged C++ class representing a 2D matrix. It holds a pointer to a block with the actual data, and fields indicating the number, size and type of the matrix elements. Like this: public class UnmanagedMatrix { public: void * block; long rows; long cols; int type; //refers to an enum of possible types - char, long, double, etc. long sizeOfBlockType; ... } I am writing a managed wrapper to use this class from within .Net with a member pointer to the unmanaged class in the usual way: public __gc class ManagedMatrix { private: UnmanagedMatrix __nogc* pM; ... } I need the wrapper class to get and set the unmanaged block ...Show All
.NET Development DataFormatString for DateTime column
I have a GridView with a sortable column bound to a SQL Server datetime field. I want to display the dates as month abbreviation and two digit day. For example, I have a datetime of 2/24/2006 3:25:45 PM and what I want to display instead is Feb 24 or if 2/24/2006 were TODAY 3:25pm Any suggestions A few ideas for you. #1. You could create a caculated column in your SQL statement to return these values, for example: select convert(varchar(max),getdate(),107) as calculatedDate See "cast and convert" help topic in MSDN for formats allowed. With this you could have your n ...Show All
Visual Studio 2008 (Pre-release) Global RoutedCommand
How can I have a global RoutedCommand By global I mean that no matter which Page it's Executed from, it will be recieved in all pages. I'm not aware of any way to do this since commands bubble up, not sideways. Can you describe what it is you want to do With some more details, maybe someone will be able to recommend a good way to do it. Cheers, Drew ...Show All
Visual C++ mscfront project
I would like to know if mscfront ( a source code to source code converter between V1 and V2 of C++/CLI). This tools were introduced here and briefly mentionned here , but I did not found any other reference. It could be usefull to have a tool like this. Even if it is not perfect. it could greatly reduced the time required to switch from /clr:oldsyntax to /clr. Stephane Guerin hi, stephane. the tool is not formally available -- largely because of issues with the pre-processor and because i can't do everything myself despite what people might believe :-). it works on an 80-20 basis, in whic ...Show All
Visual Studio "sgen.exe" exited with code 1
I am trying to build a project in VS 2005 but I am getting the error: Error 67 "sgen.exe" exited with code 1. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 1892 9 TAI.Util This project had been building just fine earlier today. The only thing that happened between is I refreshed the web references in this project. As a test I added the same web references to a new project and it builds just fine. I'm also experiencing a similar problem. When i change the build options in the ConfigurationManager, i often get this error. The only way I've f ...Show All
Visual C++ LNK2019
I am new to the forum. I hope this is a right palce to place my question here. I run into a problem with MS Visual Studio 7.0 (.Net 1.1) when I try to build a window program. It was a project with .c and .cpp file mixed, but no c++ class been involved. *********************************************************** nafxcwd.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" ( AfxEndThread@@YGXIH@Z ) *********************************************************** The forum is mainly for VC2005 but some issues might be common. Regarding your issue, ...Show All
Windows Forms Overriding ControlCollection.Add()
I have a control that hosts other controls. I'd like to manipulate the control before it is added to the Controls collection but the only hook I see is through OnControlAdded which is too late in the process (control is in the collection, layout performed, etc). There is no OnControlAdding that would allow me to preprocess the control being added. It also does not appear possible to override ControlCollection.Add() since the Controls property on my control only has a get accessor. Am I missing something Is there a hook that will allow me to manipulate the control before it is actually added to my collection collection Thanks, Ray ...Show All
Visual C++ Error including queue.h
When I include queue.h I get the following compiler errors in list.h c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length' c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\list.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink' c:\program files\microsoft visual studio\vc9 ...Show All
Windows Forms Resizing of Rows and Columns
<.NET Framework 1.1> I'm am working on a TableControl for Windows Forms these days. Just like the TableLayoutPanel in VS 2005. It has rows and columns in it. The user can drag and drop controls in any of its cells. One thing which is missing is the resizing functionality of rows and columns at design time. As the user moves mouse on of its borders, it should display the appropriate resizing cursor as with the HTML table control for ASP.NET. Any help in this regard would be greatly appreciated.... </.NET Framework 1.1> Let me know a little more about how you are implementing this control then I might be able to help better. ...Show All
Visual Basic Migrating from Ms Access to SQL Server 2000
Hi, Is there many changes need t o be done in order to change my DBMS. Currently, i'm using Microsoft Access in my VB.net program. however, i need to change the DBMS to SQL Server. So what should i do can i still use back the same coding what namespace should i include Hi there, Firstly, I would consider using the Access Upsizing Wizard to migrate your database from MS Access to SQL Server if you have not done so already. If you've migrated via a different means, then a good start would be having the database schemas for the two databases almost identical (you won't get an exact match because SQL Server 2000 has a couple of differe ...Show All
Visual Studio Team System Creating custom work item types...
I see that in Team System there are Bugs and Tasks...is there a way to easily add a second one that is like a task but is a "Wish List" We used Dragnet before and had a quick way of adding this. Would be great! It is possible - check the "Authoring work item types" document out: http://msdn2.microsoft.com/en-us/library/ms243849(en-US,VS.80).aspx ...Show All
