Hello all!
I have a .NET assembly that lives in the GAC. It is registered correctly so that it can be invoked by COM components. This .NET assembly contains a method and an overload to the method:
public void Foo(string sValString, out string sOutString, string sOverloadString)
{
if( sOverloadString == string.Empty )
// d...
How can I programatically find whether MS-office is installed on a machine, and if installed what components are installed,version and stuff like that.
How do I find whether it is office professional or office ultimate.
...
Hi,
I'm writing some code to utilise a 3rd party component, and I need to supply an object which implements ICredentials when I start to use it.
If I write the following...
var credential = new NetworkCredential("MyUsername", "MyPassword");
...and pass "credential", it's fine. But I would like to pass the credentials of the current ...
I develop mainly line of business applications.No scientific operations. No complex calculations. Just tie User Interface to database. The only reason I use threading is to do some work in background and still keep UI responding.
This may not be the best approach but this is what I follow
1.Create an working application first(without ...
I'm getting an Access Violation in DBEXPSDA40.DLL (Dev Art MS SQL Server dbexpress driver) on closing down my .NET application. My application (VB.NET) calls a Delphi written COM Server which uses dbexpress to connect to SQL Server.
If I do the same thing, but my host application is a native Delphi application, or Excel VBA, then I do n...
Sorry this question is not very clear, if I know the correct words to describe the problem, Google would be likely to come up with the answer.
I am looking for a queue class that:
Lets any number of threads put an item on the queue
Items are processed in the order they are added to the queue
I don’t mind what thread process an item
On...
Hi,
I'm looking to hide/show properties depending on what selection the user makes in a drop. I am handling the event fine, but cannot actually make the correct properties disappear. The solutions I have found on line are mainly from 2005 and as I've had very little experience with it I thought I must be doing something wrong if hiding ...
Is there a built-in way to multiply every member of an array by some number in-place?
Example:
Dim volts () as Double = {1.243, 0.534, 5.343, 2.223, 4.334}
Dim millivolts (4) as Double = volts.MultiplyEachBy(1000) 'something like this
...
I'm trying to create a ListBox in which the text of the items is bound to the regionName property of the objects in its ItemSource. This is displaying as it should be, but clicking on the text created by the binding does not change the ListBoxItem's state to "selected" (although clicking on the space after the text selects the item.) The...
What is mean by reference in .net wrt CLR (managing objects)?
...
I've got an IList<Delegate> that contains some Func<bool>s and some Predicate<T>s, where T varies. I later need to sort out which of these items are Predicate<T>s, but don't want to close the door to adding other Delegate types to the list later, so I do not want to do this by identifying objects by !(current_delegate is Func<bool>).
Th...
Please clarify my understanding regarding object and reference and value type is current?
Object means a memory location in RAM where we allocate memory while executing a program
Reference means a location(address) in the memory.
Passing by reference means - we are passing or pointing a memory location to the function to take the valu...
This is a strange one. For a long time now an application I develop on has been using com interop to use .Net types in an Classic ASP application. I fired this application up again today to look at some issue with it got an Out Of Memory error when accessing a method on one of these objects. Fine - I thought, I'll just unregister the ...
I need to request the following URL inside my application:
http://feedbooks.com/type/Crime%2FMystery/books/top
When I run the following code:
Uri myUri = new Uri("http://feedbooks.com/type/Crime%2FMystery/books/top");
The Uri constructor decodes the %2F into a literal /, and I get a 404 error because it has changed the URL to:
htt...
I'm trying to understand a general flow of WPF application, it's not everything clear for me, so, please, help me to understand the following:
If I want my database polling Timer in a WPF application was started not from a code behind file of my main window, but from another separate class, how I should implement this?
Should this clas...
I don't necessarily need to see real time plots or anything but as I understand it if you attach a USB device it gets like 100 mA then after some negotiation it will bump the power up to 300 mA or 500 mA so on and so forth till the device stops requesting.
Does anyone know of anyway to see all the USB ports on a machine and what they ar...
In Short: Does any know a way from the base controller to get a list of actionFilters being applied to the current executing action?
The Long:
I am using ASP.NET MVC 1.0 framework. I have a "RequireSSL" actionFilter that I've recreated for checking out, however, if someone leaves the checkout and goes back to the store I would like to...
I have a VB 6 MDI application. It responds to the depricated SwitchToThisWindow function, but not the ShowWindow and SetActiveWindow functions. I know ShowWindow and SetActiveWindow are declared correctly because I can use them with any other application.
EDIT: My goal isn't to use these functions, it is simple to switch the focus from ...
I need something a little more than the System.Collections.BitArray class in my application. Specifically, I need the bit array:
To be immutable
To implement equality using value semantics
I created my own struct, largely copying the internals of the BitArray implementation. (Thanks, .Net Reflector!)
I don't deal everyday with bitwi...
I am trying to insert into a DB with has the following columns: ID (autonumber), BonderIdentifier (text), Username (text), Login (date), Logout (date).
BonderIdentifier, Username, Login is the PK.
Here is what I do:
Public Function submitNewToDB(ByVal sessionData As BonderSession) As Boolean
Dim cn As OleDbConnection
Dim cmd...