Hi in the second line while trying to convert from object to String array it shows compile time error as
'System::String ^' : a native array cannot contain this managed type
'initializing' : cannot convert from 'System::String ^' to 'System::String ^[]'
code:
RegistryKey ^rk = Registry::LocalMachine->OpenSubKey("SOFTWARE\\Micros...
While running the batch process in .net Application I am gettting this error "Requested ThreadPool is inactive". I dont know how to resolve. Please help out
...
Is there a way to load partial views from a class library?
I would like to pull out the common parts from several websites to make them easier to maintain.
Currently I render my partials with (for example)
<%Html.RenderPartial("~/Views/Search/_searchBlock.ascx", ViewData);%>
This is file based, but when creating a class library, th...
Hello,
I am very new to Entity Framework and am wondering about the basic concept of Table Per Type Inheritance and how the entity relates to other tables.
In the physical database the relation works like the following...
Person (Person ID PK)
Customer (Customer ID PK, Person ID FK)
Order (Order ID PK, Customer ID)
My question is bef...
If I have the right to create a new file in the program directory I want to create the file there, if not I want to create the file in the program's AppData folder.
...
IEnumberable has an extension method Contains<T> which takes two parameters. The first parameter is the value to check for and the second is an implementation of IEqualityComparer.
Looking at IEqualityComparer.Equals it takes two parameters named x and y, for the first and second objects to compare.
My question is X or Y the value from...
Am I the only person that wants this? It seems to be something that could reasonably have been provided for any class with a public parameterless constructor. Now having to instantiate these properties inside the constructor of the class that uses them somewhat obviates the convenience of automatic properties.
...
I have an interesting task: to write a program which captures input from the program called Redmon. It is basically a virtual printer which redirects the output to a program.
I installed Redmon and created a winforms application to catch the output. But I'm stuck here. I checked what does my program receives and it is nothing on the par...
I'm writing a DSP application in C# (basically a multitrack editor). I've been profiling it for quite some time on different machines and I've noticed some 'curious' things.
On my home machine, the first run of the playback loop takes up about 50%-60% of the available time, (I assume it's due to the JIT doing its job), then for the sub...
How do I tell if an executable is a .NET application?
I prefer not to have to install Visual Studio. But if I have to I will. A commandline program is preferred.
...
How to check if Linq.DataContext object is filled with data and no connection error has appeared?
Thanks.
...
Hi
According to the MSDN docs, the DbType property/attribute of a Column type/element is only used for database creation.
Yet, today, when trying to submit data to an IMAGE column on a SQLCE database (not sure if only on CE), I got an exception of 'Data truncated to 8000 bytes'. This was due to the DbType still being defined as VARBINA...
This test fails when it is run with the NUnit console runner. It works if I run just that test with TestDriven.NET, but not if I run the entire suite with TestDriven.NET:
[Test]
public void BackgroundWorkerFiresRunWorkerCompleted()
{
var runner = new BackgroundWorker();
ManualResetEvent done = new ManualResetEvent(false);
runner.R...
I have few types that derive from simplified Base as shown below.
I am not sure whether to use base class's constructor or this constructor when overloading constructors.
ConcreteA overloads constructors purely using base constructors, while
ConcreteB overloads using this for the first two overloads.
What would be a better way of ove...
I would like to implement a heartbeat functionality in the server that would periodically alert window clients of its liveness. There are few ideas I am considering but would appreciate suggestions and examples/references
have a separate thread that would send a heartbeat to connected clients
have different types of heartbeat to ind...
In part of our application we have the ability to search for music. The search results are loaded into a gridview which lists the song name, the artist, the royalty required for use, and a small flash object which plays a preview when clicked (wimpy button from this site)
When the users search returns a large number of results, it take...
I'm looking for a tool or library that will allow me to created a declarative workflow for a Compact Framework application. It will need to handle screen flow and some business processing tasks. It seems like there ought to be something out there, but I can't find anything.
...
I am trying to choose one of the validation frameworks for a major application, and while both options seem enticing, I was wondering whether there are any specific pros and cons I should be aware of before committing to one or the other.
...
Hi
Anybody is familiar with DevExpress in Microsoft Visual C#?
My boss gave me the code to study and this code has the version of DevExpress 8.3.
And I would like to open this code in my laptop which has already a version of DevExpress 9.1
Would that be a problem finding the files?
Thanks a lot!
Regards
tintincute
...
Hi
i am trying to findout the location of where SQLSERVER datafiles(mdf) logfiles(ldf) installed using SMO.
How to do this. i Need to find for both for named instance and default instance and for sqlexpress also
can any body help me inthis regard....
Thanks in advance.
...