Amos Soma's Q&A profile
Visual C# How to keep base class methods private in a derived class
I am writing an API (C# class library) to distribute to users of my product. I derive this class (derived.cs) from a base class (base.cs) so that it is a wapper for the base class so that the base class is hidden. I have declared the methods in the base class as protected so that my derived class can have access to them. However, when using the the resulting .dll as a reference in another application the name of the base class, plus all of its protected methods are exposed (in the object viewer). I have also tried to declare the base class as protected, but apparently this is not allowed. I would prefer that my customers not be able to see the base class protected methods. How can I hide the name & methods of the base class ...Show All
Visual C# Get MAC address of client machine using C#
How to get MAC address of client machine using C# Not looking for remote machine MAC Address. Hi Padam, The following hyperlink possesses a c # code snippet that reveals all details pertaining to your network interfaces on the local machine only along with it's description. Ideally if you have installed a single nic on your machine, you should get only one mac address as an output for this function, since mac addresses are associated only with nics & other hardware devices that communicate on a network. http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.physicaladdress.aspx If you are going to use this code snippet in your program, then you need to put an if -- else condition checking for the length ...Show All
Audio and Video Development Using IMFMixerBitmap
I have a DirectShow application that uses the VMR's IVMRMixerBitmap interface to blend a bitmap with a video. Before using it I understand you have to call IVMRFilterConfig's SetNumberOfStreams method to put the VMR into the correct state, and so far it works fine :) So now I'm trying to use Media Foundation and I've found corresponding interfaces such as IEVRFilterConfig and IMFMixerBitmap. Is the operation of these fairly similar ie. do I need to call IEVRFilterConfig's SetNumberOfStreams() before I can use IMFMixerBitmap I've been trying to do this and using IMFGetService's GetService() to try and get the IMFMixerBitmap interface afterwards but without much success - I keep getting a return code of 0xc00d36ba.. Is there anythin ...Show All
Visual Studio Team System Any webcast on Load testing using controller and Agent?
Hi, I would be thankful if anyone can redirect me to any webcast for performing a load test exclusively using controller and agent. Looking for the webcast interms of: 1. What all permissions need to be set on controller and each agent 2. What kind of test run config should be used 3. Troubleshooting ! Hi Nagaraj, Here are sources of info that might help: 1. Perms on controller and agent, test run config: http://msdn2.microsoft.com/en-us/library/ms182639(VS.80).aspx Look up the parent section for more info. 2. Troubleshooting load tests: http://msdn2.microsoft.com/en-us/library/ms404661(VS.80).aspx and troubleshooting controller rig in specific: http://msdn2.microsoft.com/en-us/library/ms404660(VS.80).aspx Here are l ...Show All
SQL Server poor performance
Hello all, I recently pick up a SQL-Server Client-Server application system and I saw very poor performance. for example, if I was doing some join from 3 or 4 tables, our data entry staff can not do anything, the front end VB application would just hang. There are 10 users at maximum logging on the system concurrently. I am not sql server dba but like to improve it, where should I begin to check detailed steps are appreciated. Thanks, Jane what version of sql server are you using If the VB application hangs, how do you know it's SQL Server that's the problem ...Show All
Visual C# Application settings
Hi, I've got a three tier program. In the data Access layer(DAL) I connect to the database. I use the tabpage settings in the property screen of the DAL. If you do this on the presentation layer(/windows project) then you get an MyAssembly.dll.config in the bin file. But if you do this in the DAL it doesn't create a config file, so yo can't edit it manualy. Can anybody give me a solution Grtz Annihil8 In reference to the references: the configuration data is application wide, so I don't think how the component retrieves the information should be of major concern. However, it also shouldn't be necessary, and it isn't as clean as you would want. When the configuration information is reque ...Show All
Visual Studio Team System Work Item automated email
Is there a way to create an automated weekly email of all the open work items for a particular user There isn't anything inbuilt into the product to do it. It is easy to build such a tool though, using our workitemtracking object model. We do have email notification when items are assigned to someone, if email alerts are signed up for that person. This notification happens even when assigned workitem gets modified, so one option would be to programmatically update open workitems assigned to particular user everyweek and subscribe that person for email alerts - if you do not want to write email sending code in your tool. ...Show All
SQL Server maint. plan failes
Hi I have been running a maintenance plan on SQL'05 developer for a while. After installing SP1 for MS Small Businness Accounting == SBAV1UPD, the maint. plan will not run. SBA uses SQL2K RT. The SP broke Outlook as well. The error that I'm getting is that 'execution failed' with an advise to check the log, no error appears in the logs. Is this a known bug is there a fix / workaround David L. Hi Dan Installing SQL'05 SP1 did not clear the issue, however, deleting the maint. plan and then re-creating the plan cleared it up. Odd Thanks .. David L. ...Show All
Windows Forms AxSHDocVw.AxWebBrowser problem with BeforeNavigate event using IE7...
Hi, We have a VS2003 (framework 1.1) application that uses the above object on a form. We are having issues with the event now NOT firing. We are deploying this onto lap-tops that work just fine except those that have been upgraded to IE7. On the laptops using IE6, we can intercept the event and render our custom HTML files ready for the browser to load, however on the IE7 laptops the event won't fire and we can't intercept it and prepare our HTML. The laptops are simply being upgraded from our standard build by the addition of IE7 (Windows xp pro base operating system) Please, can someone give me a steer as to why this now happens ... Thanks - Paul. ...Show All
Windows Forms Datagrid column readonly to user but not the program
I have a datagrid and i have a column which is read only so the user cannot put anything in it. The problem i have is that i use this column as a results column from the data they put in the rest of the table, however when the program calculates the value from the data and tries to put it in this column it won't do it as it is read only. Is there any way of keeping it read only to the user but not to the program Columns is simply a collection -so you should be able to use something like MyDatatable.Columns("P1").readonly = false ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx The wide-character (Unicode) counterparts of cout and cin are wcout and wcin . Use Help | Index and look for wcin for more information. You will need to write strings differently (e.g., L"Hello, ") but you can now do input-output with Wide Characters and the Standard C++ iostreams. The standard type library datatype for wide ...Show All
Visual FoxPro Tables Relation
Dear reader, I hope you can help me. I dont know how to relate two dbf free tables files. Table Sub (submenus Items belongs to) ID OWNERID USERNUMBER SHORTNAME LONGNAME EXCEPTIONS ITEM01 ITEM02 ITEM03 ITEM04 1000 0 1000 Entradas Entradas 0 1001 1002 1003 1004 1100 0 1100 Ensaladas Ensaladas 0 1101 1102 1103 1104 1200 0 1200 Sopas Sopas 0 1201 1202 1203 0 1300 0 1300 Cremas Cremas 0 1301 1302 1303 0 1400 0 1400 Ex tico Ex tico 0 1401 1402 1403 1404 1500 0 1500 Aviant\nCuisine Aviant Cuis ...Show All
Visual Studio Multiple fields in the "Value" of textbox
Need a small help. I need to combine the values of 2 different fields from 2 different datasets in the "value" of the text box. value looks something like this: =Fields!Application.value & " Passrate:" & Fields!Pass1.value Application is from one dataset and Pass1 is from another dataset. both these datasets are added to the report. But there is an error and it doesnt allow me to do that. Hi thanks for the response. Yes i did try this option. It is not resolving the field names. This was original expression in the "resource" textbox: =Fields!Application.Value & " Passrate:" & Fields!Pass1.Value I also tried, =(Fields!Appl ...Show All
SQL Server Problem with Publication Articles being deleted
I wonder if anyone can advise, I currently have a replication set to 5 offices. Which has been working fine for some 18 months+, then the replication dropped out. When I looked in the publisher it had lost all its articles and would not allow me to add back in. I deleted the publication and recreated it and then after creating a new snapshot starting rolling back out to the various locations, and one of the locations failed and again all the articles where lost. I deleted and rebuilt the database at that office and went through the same routine again, only for it to happen again, the issue being that now errors where produced!!!. So at present I have the publication and all the subscriptions running apart from this one office. Has an ...Show All
Visual Studio Team System TF14043: An error occurred computing the delta. Not enough storage is available to process this command
We're attempting to migrate a fairly sizeable SoruceSafe database into a dual-tier TFS server configuration using VSSConverter. After running analyze.exe, VSSConverter Analyze, then half-way through VSSConverter Migrate we start seeing errors in the EventLog. The app-tier server had been running for about 3 weeks, so we've restarted it and are starting a fresh VSSConverter Migrate. Searching for the win32 error "Not enough storage space is available" seems to indicate that it's run out of memory. However this is a Dual Xeon hyper-threaded box with 3.5Gb of memory and plenty of free disk space. The 2.0 Framework machine.config has <processModel autoConfig="true" /> Can you provide any clues as to wha ...Show All
