Novacaine's Q&A profile
.NET Development Programmatically retrieving remoting settings from app.config...
Other than loading up the XML blob from app.config and manually traversing thru the XML, does anyone know of a better way of retrieving Remoting settings (e.g. port, scheme, etc) from an app.config file Kind rgds, Patrick Try System.Configuration.AppSettingsReader. The method GetValue() reades out of a config file. greetz dya ...Show All
Software Development for Windows Vista Fast overlay bitmap switching with VMR 9
Hi, I am currently writing an application that writes annotations over a video. Those annotations need to be updated many times per second (10+). I am currently VMR9 and SetAlphaBitmap to update the annotations. The drawback is the high CPU usage due to many allocations of the D3DBitmap. For each update, I currently: Update my GDI bitmap Allocate a new D3DBitmap with the updated GDI bitmap call SetAlphaBitmap with the new D3DBitmap Step 2 in particular is not very efficient. Is there a fast way to do this ; like directly updating a D3DSurface and feeding to the VMR Would a filter be faster Eventhough filters do not ...Show All
SQL Server How to pass .net application's parameter to a TRIGGER?
How can i pass my .net application's Userid to the trigger I have a audit trail trigger on myTable. I dont know how to pass the userid (not the sql server user) to the trigger when a user delete a record from the application(.NET Application). The trigger saves the modifications on the table including the userid of one who does the changes. There is no way to send a value to a trigger directly other than in the inserted table by adding a column to the table. This is proably your best way to do it anyhow, to add the userid to the table of the person who last updated the row, then you will have it for the delete. There i ...Show All
Smart Device Development Is CF installed by default on Windows Mobile
Hi everyone, I'd like to find out which version of Compact Framework comes preinstalld on Windows Mobile 2003, and Windows Moible 5! Thanks! Comapct Framework 1.0 is in the ROM on most 2003 and WM 5.0 devices. You need to deploy the CF 2.0 with a redistributable if you plan on using it. Look at the Support Matrix for more detail. ...Show All
SQL Server Executing SSIS packages from client machine using SQL Express Engine
I have few DTSX packages on my SQL server 2005. These packages are supposed to transfer data and stored procedures from server to client Express engine. The scenario is that when user connects with the server he should run some kind of utility or any other way to run those SSIS packages so that the data could be transfered. Remember the user machine has only SQL Express Engine and the packages are in SQL server 2005 machine. Can any one help me out how to achive this scenario Regards... In this case the packages would need to run on the server - a SQL Server Standard or Enterprise license is requir ...Show All
Software Development for Windows Vista Uninstall Microsoft SDK
Hi everyone ! I hope this is a good forum for my question. I didn't find any better. I would like to unsintall "Microsoft SDK Update February 2003 (5.2.3790.0)" I don't need it at the moment and would like to recuperate disk space. The uninstall string is like this: "C:\Program Files\Microsoft SDK\\Setup.exe" "C:\Program Files\Microsoft SDK\Default_Local.htm" The target file (Default_Local.htm) is missing. Thanks for your help in advance Jean Hi Keith ! Thank you for your reply. In fact I did exactly as you suggested. Since i had no succ ...Show All
Visual C++ comments in a command line file?
Is there a way to place a comment into a *.txt file intended to be used as a CL file Do you think // will work Thanks So this is a "response file" for CL compiler. Instead, compose the command line or response file in your makefile, like this: MYOPTS = MYOPTS = $(MYOPTS) /YP # this is commented out: # MYOPTS = $(MYOPTS) /otheropts $(CL) -c $(MYOPTS) somefile Regards --PA ...Show All
Visual C++ Why is the linker displaying such an error? (LNK2019)
Hi, can anyone help me out with this The linker keeps giving me this error: Sprite.obj : error LNK2019: unresolved external symbol "public: void __thiscall Sprite::SetPosition(struct tagPOINT)" ( SetPosition@Sprite@@QAEXUtagPOINT@@@Z) referenced in function "public: virtual void __thiscall Sprite::Update(void)" ( Update@Sprite@@UAEXXZ) Sprite.obj : error LNK2019: unresolved external symbol "public: void __thiscall Sprite::SetVelocity(int,int)" ( SetVelocity@Sprite@@QAEXHH@Z) referenced in function "public: virtual void __thiscall Sprite::Update(void)" ( Update@Sprite@@UAEXXZ) Sprite.obj : error LNK2019: unresolved external symbol "public: ...Show All
Windows Forms Lisbox, ComboBox ItemData NewIndex
I will value your response to the following issue: In VB6 I used to populate a listbox as follows: SQL = "SELECT ID, Name FROM TableNames" Do While Not rs.EOF List1.AddItem rs("Name") List1.ItemData(List1.NewIndex) = rs("id") rs.MoveNext Loop &n ...Show All
.NET Development Where is ICLRRuntimeHost::GetDefaultDomain?
I'm trying .NET Beta 2 CLR hosting. Why is there no ICLRRuntimeHost::GetDefaultDomain QI for IID_ICorRuntimeHost on ICLRRuntimeHost returns E_NOINTERFACE. Calling CorBindToRuntimeEx twice is not allowed to get both pointers. Is this just for beta2 How would I create/manipulate AppDomains from unmanaged code otherwise Thanks Thanks! Binding to both interfaces is much more acceptable than using AppDomainManager for this. ...Show All
Smart Device Development Installing device driver
I have created a device driver for PPC that I install and setup registry entries for in HLM\Drivers\BuiltIn. Under PPC 2003, my device driver DLL gets loaded at boot time. If I go into he remote process viewer and view device.exe, my dll shows up in the list. OTOH, on a WMv5 device, the dll does not show up under device.exe until my application calls RegisterDevice. Is there a way on WMv5 to get my device driver DLL pre-loaded since it doesn't seem that BuiltIn works like it use to What limitations are there for loading device dlls On one particular device, The RegisterDevice call fails with a rc=2 (NOT FOUND) even though the DLL is in \Win ...Show All
Smart Device Development ReadXml with XmlNodeReader to slow with 1.0
Hello, we use XmlNodeReader to read special Nodes from a XmlDocument to a DataSet. Bigger Files (>700 Nodes) are taking too much time. Is there any possibility to accelerate this or use a nother easy functionality We are using CF 1.0 and have no chance to update to 2.0. Thank you, JakobH 1. Make sure you have NETCF V1 SP3 installed, it has XML performance improvements. 2. Do not use DOM, use XmlTextReader instead. ...Show All
Visual C# implement IEnumerable<T> multiple times
Is it possible to implement IEnumerable<T> multiple times as shown below and then simply call foreach on types of INode and Page as in the code below without casting inside of the foreach statement to the IEnumerable<T> the client wishes to enumerate I get the following error: foreach statement cannot operate on variables of type 'Page' because it implements multiple instantiations of 'System.Collections.Generic.IEnumerable<T>', try casting to a specific interface instantiation public interface INode : IEnumerable < INode >{ } public partial class Page : INode , IEnumerable < ...Show All
SQL Server ROM on SQL 2005 replication
I needed a ROM on a SQL 2005 replication requirement. Would really appreciate any help on this. We have a SQL 2005 database with about 4 GB data, 46 tables to be replicated. For users to run queries and generate reports, we need a replica of this database. We are thinking of using replication wizard to generate a separate instance of the database on a different box. Also thinking that the replication wizard could be used here. Based on this information would it be possible to get a ROM estimate for the Development tasks involved in setting up the replication We do have some internal performance numbers for snapsh ...Show All
Visual C++ Unable to find an entry point named GetModuleHandleExA in DLL Kernel32.dll
I am experiencing the following issue: I want to dynamically load Native Message Defenition Library in Managed C++. I am trying to load a Native Library developed in VC++ 6.0 using LoadLibraryA() API. and GetModuleHandleExA . I need to get the Handle from the GetModuleHandleExA API.When I call this GetModuleHandleExA() API, I am getting an exception "Unable to find an entry point named GetModuleHandleExA in DLL Kernel32.dll". [DllImport("Kernel32.dll" )] extern "C" Boolean LoadLibraryA( String* IN_csFileName); [DllImport("Kernel32.dll", EntryPoint = "GetModuleHandleExA" ...Show All
