ntsoo's Q&A profile
Visual Basic SQL vs. MS Access
Dear readers, I am new to VB2005 coming fromVB6 using only MS Access databases. It seems that the obvious database type of choice is SQL. Are their any problems using Access databases for an application that runs on a network, storing multiple monetary transactions, and huge customer databases. Also...... If I distribute my application using SQL databases, do I need to ship it with an SQL server package such as SQL2005 or SQL Express, or can my application be a standalone package creating and accessing SQL databases. Thanks MH Traditionally MS Access has not been very good with multi-user updates, and you'll find that they very often go corrupt. If you really are talking about huge ...Show All
Visual C++ Interface inheritance from another interface
Hi, Im working on an application build on plugin using interfaces. Now im trying to expand my normal plugin interface iPluginAPI with a few more methods / properties to allow it to access more restricted functions in the main program. I did this by creating a new interface iPluginExp which inherets the base methods from iPluginAPI and has some methodes / properties from its own. So every 'normal' plugin implements iPluginAPI and the 'privileged' plugins implement the iPluginExp interface. So far so good. When I'm going to use these plugins and load a normal plugin using the code below, everything goes well. When I load a privileged plugin and I try to cast the created instance to iPluginExp , it throws a expetion with ...Show All
Windows Forms Auto generating buttons
Hey All For a little project of mine, I need to creat buttons from either an ArrayList containing the names of what the buttons should be called or from or from a database table. Depending what was is easiest to understand/do. They all have to be in the same windows form, so that if the ArrayList contains 10 names then there should be generated 10 buttons on load, and if one of the names is removed from the ArrayList then the button should also be removed. Hope anyone will be able to help me. Thanks Anders Lykke System.Collections. IList buttonNames = new System.Collections. ArrayList ( new String [] { "one" , "two" }); private void Form1_Load ( object sender, EventArgs ...Show All
Windows Forms serialize TreeNode-derived classes
Hi, I want to serialize my custom class derived from TreeNode. After searching on Internet I found many answers that confused me so I'm going to as many questions hoping to get the right answers from you. 1) TreeNode is inheriting from MarshalByRefObject so it's not possible to serialize it. but I can do it like this so what are they talking about Code : TreeNode treenode = new TreeNode(); treenode.Nodes.Add("1"); treenode.Nodes.Add("2"); treenode.Nodes.Add("3"); treenode.Nodes.Add("4"); System.IO.FileStream file = new System.IO.FileStream(@"c:\test.dat", System.IO.FileMode.Create); BinaryFormatter serializer =new BinaryFormatter(); serializer.Serialize(file, treenode); ...Show All
SQL Server Data Driven Subscriptions
Is it possible to copy an existing Data Driven Subscriptions and make some minor changes Elias ...Show All
Visual Studio Express Editions Is there a trick to avoid the installation of service pack 2?
Hello, I have a few questions. Question 1 I have just tried to install Visual C++ express edition. Why do I have to use service pack 2 I do not want to install it. It took me 30 minutes to install service pack 2 and I will never use it. Why is that Is there a trick to avoid the installation of service pack 2 Question 2 Someone is writing a software package for me and the compiler of Visual C++ express edition has to be built into the software. Only the compiler! I intend to use the package for my own use, but let's say I am going to sell the package later while the compiler is in it, is that ok The reason is that Visual Studio Express leverages binaries that are included in ...Show All
Software Development for Windows Vista .net 2.0 can't delete files on VISTA
When attempting to run a .net 2.0 application on VISTA Ultimate Edition, the program contains the following logic: if ( Directory .Exists(currentDrive + Utility .FOLDER_APPLICATION_OLD)) { di = new DirectoryInfo (currentDrive + Utility .FOLDER_APPLICATION_OLD); foreach ( FileInfo fileDelete in di.GetFiles()) { try { fileDelete.Delete(); } catch ( Exception exCantDelete) { } } } It is always indicated in VISTA that the application can't seem to delete files of type *.exe, *.dll, etc. Is there a restriction that VISTA won't allow this to occur I am logged in as administrator when I run this program. The exception is ...Show All
Microsoft ISV Community Center Forums VB MACRO IN SHARED WORKBOOK(EXCEL)
HI, PLEASE UPDATE ME HOW TO RUN VB MACROS IN SHARED EXCEL WORK BOOK THANKS, Aravinda Hi, You cannot share a workbook, well you can but only one user will have write access to the data. If it's just code/forms your looking to share so that more than one user can run the code against their own set of data then your looking to create an addin (xla file). To share the addin you need to place it on a network share. There is an option in Excel, I believe it prompts you, when installing an addin to specify whether the addin should be copied to the local machine or kept in the share, if you keep the addin on the share then all users share the code and any changes to the addin are reflected for all users using it. I ...Show All
Visual Studio Team System What privs to I need to use witImport and witexport?
I can use TFSDeleteProject fine, because it prompts for a username and password. But witimport and witexport don't prompt for a username. What am I doing wrong My username is authorized as Admin. >witexport /t 166.20.96.241 /p ERsim /n Meeting TF30063: You are not authorized to access 166.20.96.241. That post does seem to be the same problem as what I am experiencing. But I do not understand the answer that Dan Kershaw posted. I can do a TSFDeleteProject which does prompt for username/password, but this doesn't at all have any effect on getting subsequent witexports to work. Nor does starting up VS and its prompting for username validation.  ...Show All
Windows Forms Framework and Windows Installer not present
I am deploying a project on a large number of user machines. On a W2K machine, when I tested the MSI, it of course, did not have the Framework or the correct version of Windows Installer. But I did get the expected error messages. So I am going to issue install instructions that state the order of install is to first install these two items, and then install the application. Do any of you do anything different Ok, all is well now. I had gotten in the habit of running the MSI directly (double-click), because the setup.exe would error out so often. Running the MSI gave me the condition I spoke of earlier in this thread. When I went back to running the Setup.exe, I again would ...Show All
Smart Device Development how to validate textbox
Hi, i want to validate textbox all together, when i press the confirm button. In desktop application i call validate method, but in compact framework i don't found this. thanks Hello pol86, Unfortunately, there's no equivalent method in .net CF. So, it's the right choice to use a loop to test all controls. Best Regards, Zero Dai ...Show All
Visual C# How to display MS word document to the print preview control.
Hi, Any one can you advice me how to display the MS word document to the Print preview control and how to get an bitmap image from the document diaplays to the print preview control using print document control. Thanks, I suggest you to start with Tip of the day on DevX (the day is August 7, 1999 language is VB, author - Dino Esposito :) ) I use this actualy in VB applications to achieve this... hope this helps ...Show All
Software Development for Windows Vista Working with the built in Administrator account
The app I am working on definitly needs all those API calls that require "elevation" under Vista. It seemed that installing the application to launch under the built-in admin account was the answer. It seemed that Vista compliant installers will be able to install an application to start for every user but have it launched as another user, ie: the built in admin account. This seemed like it could solve a lot of our problems, but now in Vista RC1, the built in admin account is disabled by default, and this can be a big problem. Does this simply mean that the user can not directly log in under the built in admin account *or* does it mean that you can't even launch an application under the built in account If the answer ...Show All
Internet Explorer Development Explorer bar in IE7 without reboot Windows
Hi, I have an application that add a Horizontal Explorer Bar in a IE windows. That's work very well in IE6 but when I try to do it in IE7, the user must reboot Windows to have the explorer bar in the menu. I don't understand why The explorer bar just display HTML. Thanks Hi, About the strange behavior I have talked before. To have a refresh in my IE7 menu which included the new "Explorer bar", I must launch a "Windows Explorer" window and open the menu "view". With Spy++, I can see the Windows manager PostMessage the message PostMessage ( hShellWindow, UWM_CMBPOPUPOPEN, 0x008080, 0 ); PostMessage ( hWnd, WM_INITMENUPOPUP,(WPARAM) hSubMenu ,MAKELPARAM(2, false) ); ...Show All
Smart Device Development Problem with class library on Smart Device
I create a class library for my PC and use it in a C# applications ant it' s right. After I use it in a C# smart application but it don't work, I receive an method exception, but the method there is. I decide to recompile the class library for smart device (PocketPC 2003 ARM processor), whene I build the project I receive this error: Error 3 error C2871: 'System' : a namespace with this name does not exist c:\Documents and Settings\Golem\Desktop\Projects\SmartKey\SmartKey\AssemblyInfo.cpp 3 Error 4 error C2653: 'System' : is not a class or namespace name c:\Documents and Settings\Golem\Desktop\Pr ...Show All
