schalmeti's Q&A profile
Windows Forms Uninstall - Files don't remove
=============================================================================== Development Environment: Visual Studio 2005 Technology: Visual Basic .NET =============================================================================== I am trying to perfect my install and uninstall for a Windows Forms application I have built using VB.NET. I am placing most of the application files in C:\Windows\MyApplication. When I uninstall the application, the folders and some of the files remain on the system. Not only do they remain, but the folders become protected and the system will not allow me to delete them. Then when I attempt to reinstall the application, the system will not allow it because it does not have permission to overwrite th ...Show All
Visual C++ Can someone verify this for me, It's driving me nutz
Basically I need the base class to have a virtual function that can call out. Here's a simplified example. #include <iostream> #include <tchar.h> class base { public : virtual void Initialize() { } }; class foo : public base { public : void Initialize( int a) { Initialize(); } }; class foobar : public foo { public : void Initialize() { std::cout << "I need to be here..." << std::endl; } }; int _tmain( int argc, _TCHAR* argv[]) { foobar f; f.Initialize (10); return 0; } Wojtek Jonathan Caves - MSFT wrote: The first is that name lookup in a class ...Show All
.NET Development Intellisense not working
Hi, I have a project that I have been working on for a few weeks now, but when I opened it yesterday, all my Intellisense (for self-coded elements) has disappeared. The .ncb file is still in the right place, and I didn't change any code, but still today there is no Intellisense - is there anyway to force .Net to rebuild the intellisense file for a project Thanks, IxxI Is everything missing or just the documentation portion (i.e. you see MyClass.Foo but not the descrption and parameter info) Does the FCL show up fine but not your personal code Intellisense uses reflection (I believe) to get the type and member information. For the actual summary and parameters it relies on the generated ...Show All
Visual C++ LNK2001: using unmanangedC++ in manC++
Hi, i'm writing a new user-interface for a small software-company. The old interface should be replaced by the new one, the "inner core" should stay. The old program was written in unmanaged C++, but now I'm writing the user-interface in C#, so I have to use class wrappers. While building the managed C++-project (in a solution with the unman. C++-projects) there a some errors. For example: Error error LNK2001: unresolved external symbol ___argv nafxcwd.lib and Error error LNK2001: unresolved external symbol ___argc nafxcwd.lib Another one: Error error LNK2001: unresolved external symbol __pgmptr db.lib [db is one of the old unmanaged C++-projects] The settings are the following: Linker->Input->Add. Dep ...Show All
Visual C++ Get workgroup!
Hello, how can I get programmicaly name of the workgroup in Windows 98 Antropoid wrote: Thenk you very much! That was so simply, but I can't guess! Well, maybe, it will be suit for me but...can it do programmicaly in Win32 API Hi, I think you mean functions like: RegOpenKeyEx , RegGetValue , RegCreateKeyEx , etc. If you need information on them just tell me. Regards. ...Show All
SQL Server LastProcessed property on AMO processable objects
Processable objects in AMO (dimensions and partitions in this case) have a LastProcessed property. When does that property get updated Is it when the processing starts, or when it ends The LastProcessed property is updated at the end of a successful process. During the processing the LastProcessed date will reflect the end of the previous processing (as will the data). When the processing completes successfully the transaction is committed, the new data is made available for querying and the LastProcessed property is updated. ...Show All
Visual Studio 2008 (Pre-release) AssertNotDisposed Blows Chunks
ADO Orcas Team: It really sucks that you added invocations of AssertNotDisposed in ObjectContext. I don't remember anything implicit in the Dispose pattern that suggests that access to members of disposed objects should be restricted. Are you re-interpreting the idiomatic expectations of the semantics of the Dispose pattern by putting in arbitrary restrictions to state access on disposed instances of ObjectContext I can understand that you might wanna do something special for objects on the finalization queue, but the current implementation seems like a bit of overkill. It looks like more safety measures for clumsy people. It would be much nicer if you would simply let the chips fall where they may in regards to accessing state on a di ...Show All
SQL Server How to address cells in a calculation
I have a calculation where I need to get the value of a certain cell in my cube. It looks like this: ([Measures].[Amount], [Table].[Table].&[{327365F8-F148-4C34-A749-D3F56FD3B8F6}], [Line].[Line].&[{2155F898-47EA-4269-B167-BE940C79E9F6}], [Column].[Column].&[{83435F85-93AB-48D1-B2F3-B5E0BAF62642}], [Currency].[Currency].&[{2FA606E1-0A20-4A21-B360-643A530C297B}], [Maturity].[Maturity].&[{188601ED-2E02-4883-9336-45BC831C5EE8}], [Region].[Region].&[{0712BAAF-FEE4-479E-8287-E75DAD405B40}], [Sector].[Sector].&[{E52C493D-6528-490E-BD63-4A0857F8B53F}], [PastDue].[PastDue].&[{524942A0-A1ED-4BF5-86D2-F8EF393F0004}], [Custom].[Custom].&[{7FCAB9D1-4D7B-48CD-8EEC-1AA47F5D9CD1}], [Sit ...Show All
SQL Server Sum of a TextBox, is this possible?
I have a text box in a group that displays a list of numbers. For requirement reasons, I need to set some of the numbers in this textbox to zero (0). I then want to get the sum of all the numbers in the textbox, but I can't simply take the sum of the value in the cell because of the numbers set to zero. Any Thoughts Can one do this Thanks If you want the zero's to carry over, just use the same expression that sets those values to zero in the sum. For example, suppose the expression you use to set some of the numbers to 0 is =IIF(<condition>, 0, Fields!field1.Value), the sum expression would look like this: =Sum(IIF(<condition>, 0, Fields!field1.Value)). ...Show All
Software Development for Windows Vista dynamic application of rules according to the user
Hi , Iam not very well expericed with work flow. I want to do the dynamic application of rules according to the user who is placing the request and drive the workflow on the basis of applied rules. if somebody may suggest any solution or may refer any helpful link. thanks in anticipation. Sobia Meghani. Hi Kavita, thnks for your reply and help. I hv again stuck wid some problem in workflow and not getting any clue to cope with it. I hv made same custom policy activity as it is in ExternalRuleSetToolkit with some changes and addition according to my application requirements, when i tried to execute it in an console application it worked fine but now when iam hosting it in asp.net application it raises an exception ...Show All
Smart Device Development about shortcut
Hello everyone, I use editor to open a shortcut file on my Mobile device. Which content is, -------------------- 135#"\Program Files\runSample.exe" -------------------- I am wondering what means 135# A special sign for shortcut of Windows Mobile thanks in advance, George The number before '#' is the length of application path between quotatation marks (incl. quotatation marks) The correct format is 30#"\Program Files\runSample.exe" The shortcut file is with extention ".lnk" ...Show All
Visual Studio Team System changing TFS server name
Hi, I have a single server installation TFS with AD Authentication. The Server was defined as a test server for poc and trial. Now the team wants to change this server to be a production server. according to naming standarts, the team wants to change the server name. has anyone encountered a similar scenario and configured some best practices for that. I myself can think of 2 difirent scenarios: 1. ghost the server, change the server name, start troubleshooting any araising problems (not that good i suppose). 2. ghost the server, uninstall the tfs server, change the server name, install tfs from scratch. any ideas guys try this approach. I used it and it went well for m ...Show All
Visual Studio Tools for Office "Requested Clipboard operation did not succeed"
I am copying and pasting rtf into word through automation and occasionally i will get the error "Requested Clipboard operation did not succeed". Usually when this happens the only fix to get it to work again is to close word and reopen it, or sometimes i have to completely reboot. Any idea what causes this issue, or anyway around it without using the clipboard besides writing to a file and inserting into the document. I really don't want to touch the disk due to performance reasons, as there may be hundreds or thousands of generated small rtf pieces to insert into various places. the VBA forums are of great help when a problem has to do with the application's behavior and/or its object model. Th ...Show All
Smart Device Development Using VB program to open file on a CDMA device - PPC6700
I'm trying to use the Shell command to run a .exe file on a mobile Pocket PC, but when I run/debug the program on the phone it keeps coming up with the FileNotFound error. I'm thinking it is the path that is wrong, but I can't find anywhere as to how to address the path on a mobile device.. i.e. Shell("c:\program files\calc.exe"). I have tried every combination i can think of, from My Device, to C: to just \... but nothing seems to work and I know I'm missing something. Any help would be appreciated. remember, the features in the full .NET Framework are not all available in .NET CF. you would need to find another way of killing the process. Perhaps there is some P/Invoke/API somewhere that allows you to kill of the proce ...Show All
Visual Basic datagridviewcell
Hi, The requirement of my application is such a way that I need to have certain cells of the column as Datagridviewcheckboxcell. So is it feasible to have only certain cells of a column as type datagridviewcheckboxcell and remaining as type textboxcell Thanks gkrups, There are two ways to show the certain cells of the column when using DataGridView. 1. When you create datasource property for the DataGridView using the wizard, use can choose the database and tables. When choosing tables, you can decide which field you would like to show by clicking the Checkbox beside column name. Then you will see the column data you want. 2. When you create the connection configuration by code, in the Dat ...Show All
