Dennis Cheng's Q&A profile
Visual C++ Forward Declarations, Templates, STL
Is it possible to forward refence a class that is in namespace std I know how to forward reference templates that I declare myself, but I am having trouble forward referencing classes that are part of namespace std. For my own templates, code such as the following works: namespace MyNamespace { template< typename T > class CTestTemplate; } class CTestClass { public : CTestClass(My ...Show All
Visual Basic porting from GWbasic to visual basic
hi, is it possible to convert code of GWbasic in to visual basic if yes then how i also agree on non GUI porting if not possible with GUI. please help me. thanks. I'm thinking that the language is basic but you are moving to an event driven model in most cases so you may be able to reuse some of you program logicusing simple cut/paste but anything that deals with user interface, input/out is going to ...Show All
Visual C# How to put custom Attribute to auto-generated Partial Types members?
I came across to an issue, actually it’s in C# language in general (partial typing & auto-generated code), but I'll use DLinq as illustration. DLinq has tool to autogenerate persistent domain types as Partial Types. These domain types members are marked with DLinq ORM related Attributes. Now, how do I mark those members with my custom Attributes (or other BCL's Attributes) outside the generated Partial Type file ...Show All
Visual Basic listview
Is there a way to tell if the form load is complete so I can have run when it's done. beacuase when I just put something at the end of the form load it doesn't continue loading until that code is done. Which some times can take a while. in my case MsgBox(ListView1.Items.Item(0).SubItems.Item(2).Text) is referring to 1st row - column 3 MsgBox(ListView1.Items.Item(1).SubItems.Item(2).Text) is refe ...Show All
Visual FoxPro SELECT - SQL executed partically
I have 11,000 directories in my machine on one partition only (C:). In order to expedite search for file I need (I found MS search engine too slow) I scan all directories once in 10 days and create a table with directory shorthands and a field where extensions of the files located there are stored. Some directories have too many various types of files and I use a memo field to store extensions for them. Thus the primary field has 80 char length ...Show All
Visual J# ResourceBundle problem
Hi; If I call ResourceBundle.getBundle("resources", locale) where locale is for a locale I don't have a resource for (I used "zz_XX") - it throws the ArgumentOutOfRange exception. In this case it should work and just use resources.properties. I also tried "en_XX" which should fall back to resources_en.properties - but again I got the exception. - dave Hi; Please ask the concerned person to email me. I can send them a program and they can ju ...Show All
Visual C++ Debugger's Bug?
I encountered a weird thing about debugging in Visual Studio 2005 Professional. You could try it in your VS. May be it is a bug. 1. Make sure the "Debug" toolbar is dragged out. All the operation is on it. 2. Set a breakpoint. 3. Start Debugging from the Debug toolbar, wait until reach the breakpoint. 4. Stop Debugging and immediately Start Debugging. After you stopped debugging, it will take about 1 second that the "Stop Debugging" becomes ...Show All
Visual Basic Check if Word is running!
Hello, I tried to start Word from a VB.2005 Application. When Word ist still running i will use this Word instance. How do i get the running Word instance Imports System Imports System.Reflection ' For Missing.Value and BindingFlags Imports System.Runtime.InteropServices ' For COMException Imports Microsoft.Office.Interop.Word Public Class Print Private app As Microsoft.Office.Interop.Word.Application Private Sub New() ...Show All
Visual Studio ANN:VS SDK 2005 Feb CTP for v2
Community, the Feb CTP bits are live at https://www.vsipmembers.com/ this release contains DSL and an RC of VSTA. The TFS bits are still the B3 bits from the RTM SDK. New samples since the RTM SDK include SingleFileGenerator, CodeSweep, SingleViewEditor, DSL Samples, VSTA Samples, SCC Samples, and the IronPython end-end integration sample. Other important improvements include doc updates, VSL improvements, the prototype VSTC ...Show All
SQL Server SQL 2005 Management Studio
When I start the SQL 2005 Management Studio, message "Package Micrsoft SQL Management Studio Failed to load. Any help on this issue, some file missing. I am trying to uninstall but the program names are not listed in the Add/remove program list George Hi, I know this is a three monnth later help but i hope this could help :http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=349268&SiteID=1 best regards Rodr ...Show All
Visual Studio Team System Delete Team Project missing in CTP?
I've found several references in forum and blogs to DeleteTeamProject.exe or TFSDeleteProject and some mention of it being in C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools . Such a program doesn't appear to be in my installation. Was it removed for the December CTP Hi Andrew, I see "TFSDeleteProject.exe" in ...\Visual Studio 2005 Team Suite\Common7\IDE\Pr ...Show All
Windows Forms datagridview master detail
I converted old application from vs2003 where I had used datagrid control. I had master detail shown in one grid with + enabling to see details. part of code enabling me to see master detail in old datagrid was something like this: custDS.Tables.Add(dt0) custDS.Tables.Add(dt1) Dim dc1 As DataColumn, dc2 As DataColumn dc1 = custDS.Tables(0).Columns("Sample_Ref_ID") dc2 = custDS.Tables(1).Columns("Sample_Ref ...Show All
Visual Studio Elements doesn't appear to the target designer (SDK June CTP)
Hi! I've created a simple DSL and a diagram with two compartment shapes and one GeometryShape. Everything goes fine, no errors/warnings when building the dsldefinition solution, and the target debugging solution runs fine. But when I drag elements from the toolbox to the drawing surface, I cannot see them. They appear to the dsl explorer but no to the drawing surface. Any ideas how to resolve this issue Thanks in advance.. Risto ...Show All
Visual C# .NET cryptography
hi there, if i had to use an encryption algorithm such as RijndaelManaged to encrypt my data, what stops other people from just using it again to decrypt my data A full discussion of encryption is beyond the scope of this forum. Besides a quick search on the NET will give you reams of information. However in quick answer to your question there are two types of algorithms: Symmetric and asymmetric. With symmetric algorithms a key and in ...Show All
Windows Forms Add code to InitializeComponent() ?
I'm new to using the Windows Forms Designer. I read Petzold and am now messing with the Designer. It seems that if you add controls with code outside of the InitializeComponent method, the Forms Designer doesn't use the controls when it ...Show All
