arcliner's Q&A profile
.NET Development securing server-side types in IPC remoting
I have an application that uses .NET Remoting over IPC. I have a lot of code that distills to the following pattern. (Assume each interface/class defined in different assembly.) public interface ILimitedAccess {} public interface IFullAccess : ILimitedAccess {} internal class MyClass : IFullAccess { } Server-side components use IFullAccess. Client-side components use ILimitedAccess. In scenarios where the server and client are 2 separate machines, clients are effectively prevented from using the IFullAccess interfaces by witholding the .NET assembly that declares them. Unfortunately, I am using IPC and all of my .NET assemblies are on the same machine. This means that client-apps (which can be written by 3rd parties) can simply load ...Show All
Visual FoxPro Report strategy
Hi everyone; I am going to develop quite a few reports for a customer. They want to develop a report engine that would let them customize reports both in the scope and in the format of the report. I am wondering if I should use a third party product like CR. Can someone give me some pointers ergarding the benefits of using CR or other reporting engine, and also how difficult is it to incorporate such reports into my application, and letting users customize reports Thanks. You can do both within VFP. Scope: just add a form to let the user choose the scope and create the cursors before running the report. Format: exclude the reports from the exe in the project, include them in a folder ...Show All
Visual Studio Express Editions How can I read an .inf file?
Hi. Does anyone know if there’s a method of reading .inf files similar to the way xml is read For example: [Version] Version id = “a103” Program name = “pr name” display name = “name dsp” A way to return the program name only from the file, or array list of files, as a string. Thanks for the quick responses. I haven’t had time to get back to that part of my project yet, but I believe that might solve my problem. Thanks again. ...Show All
Visual Studio 2008 (Pre-release) TabItems & Binding at runtime
I am attempting to create tabs based on how many records are returned by an ObservableCollection. When I set a break point I can see the ObjectInstances of AssetTabitems with the correct data within myTabData. The problem is I don't know the correct way to access those instances, here is what I am attempting in the red highlighted area. public void PopulateAssetTabs(string TabName) { ObjectDataProvider myTabData = new ObjectDataProvider (); myTabData.ObjectType = Type.GetType("Asset_Manager.AppData.TabListDB" ); myTabData.ConstructorParameters.Add(TabName); Binding bind2obj = new Binding (); bind2obj.Source = myTabData; foreach (AssetTabItems myItems in myTabData.Data) { // Cre ...Show All
Visual Studio 2008 (Pre-release) Stream Based Data Processing using LINQ
I have been very excited about the new Object Query support in LINQ especially so when I realized that it implemented Lazy Evaluation since this is essential to implementing stream based processing however I am now running into an old problem that I have had with templates from 2.0 onwards and which has preented me using them extensiveloy in my work. This is the problem with doing simple arithmetic with a templated object. I notice that in the code expansion for a simple object query (Wes Dyers Blog - How Linq to Objects Queries Work) He shows the innerworkngs of a query as expanding to the following. using System; using System.Collections.Generic; delegate R Func<A,R>(A arg0); static class Program { static void ...Show All
Visual Studio Team System Permissions, Users, and Scripts Oh My!
I reversed one of my 2000 databases into a project and deleted most of the users from the project. When I tried to deploy to a new database I got an error. The deployment script still included those users and it failed when trying to run sp_grantdbaccess. I played around with editing the script but it would rebuild it each time and recreate those statements. Looked at the VS work database created on my local instance and the users are there, Closed the project. I am currently attempting to open the project again but VS appears to have lost its brains about this project, which is sad because I have been editing the project for several hours correcting other issues that VS didn't handle well. I am crossing my fingers it will come back b ...Show All
Internet Explorer Development IE7 - enter key doesn't submit single-field form
When the action= points to the same page the form is on, IE7 behaves differently on a form with a single input field versus a multi-field form. The Enter key submits the form on multi-field forms, but with a single-field form, the Enter key acts to reset the form, and the only way to submit is to click on the submit button. You can send the action= to a different page for processing to solve this. Is there a way to 'hide' a second unneeded field on a form to achieve a another workaround for this oddity Here's how to hide another field to force IE7 to submit the form via the Enter key even if you only want one field on the form: <input type="text&qu ...Show All
Windows Forms MonthCalendar event not firing after losing focus
I have a dynamically created MonthCalendar control inside of a Menu. When I first expand the menu, and the calendar control is revealed, I can click on the dates inside of the calendar and the event handler fires. However, as soon as I close the menu, and come back again, the event handler no longer is getting called when I make a new date selection. Also, the same behavior when using a DateTimePicker, as is with the MonthCalendar. MonthCalendar cal1 = new MonthCalendar (); cal1.DateSelected += new DateRangeEventHandler (cal1_DateSelected); void cal1_DateSelected( object sender, DateRangeEventArgs e) { try { MonthCalendar cal1 = ( MonthCalendar )sender; if (cal1 != null ) { / ...Show All
SQL Server dropdown menu in sql reporting
Is it possible in SQL Reporting 2005 to have dropdown menu(eg..on mouseover list of static menu appears from which i can navigate to other rdl files while passing all parameters) .. I mean within the report.. As for now on i made one horizontal table and below it vertical menutable..now on form load and other event of the form i pass in navigation parqameter VerticaltableDisplay="N" and only in one event when Cell of horizontal table on top I pass parmeter =IIF(VerticaltableDisplay="Y","N","Y") and in visiblity property of vertical table gave a condition =IIF(VerticaltableDisplay="Y", Display,Hide)* It is working for click event ok but how can i do for mouseover event... ...Show All
Visual Studio Tools for Office Outlook: MAPI fields versus User Properties
Hi, I want to improve an outlook addin which is using mapi fields (a lot) and this is generating abnormal behaviors in outlook, so now I'm in doubt to quit all use of mapi fields fo User Properties but I need some recomendatios or comments about using "mapi fields vs user properties" (or viceversa). Thanks, Mauricio. Does it work any better if you do this iMsg = Nothing GC.Collect() GC.WaitForPendingFinalizers ...Show All
Visual C# Delegate.BeginInvoke
I am getting the build error: c:\inetpub\wwwroot\Remoting2Project3\WebForm1.aspx.cs(33): No overload for method 'BeginInvoke' takes '3' arguments Pls. help and thanks in advance, Elizabeth Bradley Code: Webform1.aspx.cs public class WebForm1 : System.Web.UI.Page { public delegate int MyDelegate( string username, string password); private void Page_Load( object sender, System.EventArgs e) { TcpChannel m_TcpChan = new TcpChannel(); ChannelServices.RegisterChannel(m_TcpChan); IAuthenticateUserService m_RemoteObject = (IAuthenticateUserService) Activator.GetObject( typeof (IAuthenticateUserService), "tcp://localhost/remoting2project1"); MyDelegate m_delegate = new MyDelegate(m_ ...Show All
Visual Studio Tools for Office Block vba code..
Hi, In access is there a way to block user access to vba code like when he press alt+f11 Thanks I'm not sure what your question has to do with VSTO. Access to VBA can be completely disabled for each Office Application by using Group Policy Object settings. ...Show All
Windows Forms filling a datagrid
Hi, i need sombebody to explain me how can i fill a datagrid with information comming from different tables in a unique DB, or a link to anywhere explaining with an example.. Thanks! I'm using VB .NET and a DB created with Access. Hi, My fault I guess. I forgot to mention that you must set the datamember property to the name of your table if your binding using a dataset. But you can bind the datatable instead of a dataset so that you would not need to set the datamember property. cheers, Paul June A. Domag ...Show All
Smart Device Development restart after installation
hello, i m newbie. i have develop the cab file from smart device cab project. what i want is that when i complete my installation. the mobile will reboot as like normal installer. because i have paste the exe in the windows startup on time of cab creation. and that exe will run my other background services(exe). so how after installation through cab i want to restart the device. how i manage it device is imate sp5m, and C++.2005 for development. Thanks in advance Regards Salman hello, i m confused. please help me what sort of project. i select for dll generation and how i use ce_setup.h file in that project i want to delete the directory content on uninstallation of that project. please ...Show All
SQL Server Bulk insert in SSIS
Has anyone else had this problem I am using 'OLE DB Destination' task in a data flow. When I select 'Table or view - fast load', check 'Table lock' and 'Check constraints' and run the flow, I get only one row inserted. The data flow edge shows hundreds of thousands of rows flowing to destination and the task completes (turns green). The problem goes away if I uncheck bulk load (e.g., select 'Table or view'). Is fast load using bulk insert or some internal code That is weird. Have you tried to set a value for 'Maximux insert commit size' As far as I know SSIS uses bulk inserts when fast load is selected. Use SQL Server profiler to see the databse activity while the package is being run and insepect the results of ...Show All
