I have created below simple testcase in Delphi Prism. When I run the testcase using Gallio Icarus, it returns a This test is not supported by any available test framework.
I can think of only two reasons why this might be happening
I am missing something (really) obvious. A setting, a missing initialization somewhere, ...
It is not po...
Say I've got a class library into which I embed a set of string resources. I can have:
Resources.resx
Resources.en-GB.resx
Resources.en-US.resx
etc
Once I've compiled this dll and released it, is there a way users of the dll can add their own localisation for languages i havent supported out of the box, without giving them the src to ...
When I go to the web project's properties, under Package/Publish tab, in Physical Path of web application on the destination server, I have set:
C:\Projects\TimeSheet
When I create a package and examine the package's zip file and look SetParameters.xml file, I see:
<setParameter name="IisVirtualDirectoryPhysicalPath" value="C:\Buil...
I have full understanding of com or connecting to *.dll's with LoadLibrary and GetProcess etc.
How does one connect a class structure or a object in .net into delphi code so the compiler and the editer can connect/relate to .net?
Like Delphi uses (cdecl) or (stdcall) to connect to methods that are structured in a different way. Do we...
I have a Windows service with an Installer. In the constructor of the Installer, I am setting the ServiceName and DisplayName dynamically using the version number of another assembly that the service references. I also set the ServiceName property of the ServiceBase to the same value in its constructor.
When I use Installutil from the...
I'm running a State Machine workflow in Windows Workflow foundation. In this workflow, I have a state initialization task that takes a little bit to execute. In the meantime, I have an event that can fire while the StateInitialization activity is running. I think this is causing the classic "Queue: {0} is not enabled" issue that appea...
I am using a BindingSource in a WinForms project that edits a simple table on a SQL server. I want the "Save" icon to light up when the user tabs off a field if he has changed it. I have tried the HasChanges() method of the DataSet, but this returns false after I have made a change.
How do I tell if the user has changed something?
...
Hello,
I just have mixed feelings about MVVM. It seems I need to code so much to get the most remedial things to work. I miss events (commanding is such a pain), and I miss having a reference to the view!
I was just wondering about your feelings of MVVM vs the plain old code behind way. What do you like better and/or what do you normal...
Usually when I execute a stored proc from C# (ASP.NET 3.5), I have to do the following:
myConnection.Open();
SqlCommand cmd = myConnection.CreateCommand();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "myProc";
SqlParameter param1 = cmd.Parameters.Add("@param1", SqlDbType.VarChar);
param1.Direction = ParameterDirec...
I'm using an object from a 3rd party API that has a property of type System.Windows.Media.ImageSource, yet I can't seem to find the System.Windows.Media namespace anywhere. If I try to add a reference to my project I don't see System.Windows.Media in the list of options. My project is also targeting .Net 3.5.
Is there something else I n...
How many InsertOnSubmit should I call before calling SubmitChanges? I'm adding data from a web service that can return tens of thousands of records one record at a time. The wrapper class around the web service exposes the records a an IEnumberable collection to hide an elaborate chunking mechanism.
Are there guidelines on how many inse...
I have several classes that implement the same interface.
interface IBidManager<E> where E : IEntity
public class BidManager : IBidManager<EntityObject1>
public class BidManager2 : IBidManager<EntityObject2>
public class BidManager3 : IBidManager<EntityObject3>
In my business manager class I have:
public class BusinessManager : Mana...
How to raise combobox_SelectedIndexChanged(object sender, EventArgs e) programmatically?
Lets say i have method called ClearFields(). I want to call the event before i hit the end of Clearfields() method.
...
i want to remove all text except the text in it <> from textbox
use
c#,dot net
...
I would like to parse AutoCAD's MText entity and extract the raw text. I see a pattern in the way the text is formatted. If this has already been solved, then I would not need to reinvent the wheel. I have searched online, but have not found sufficient information.
I am searching for any links or references on this subject.
Edit:
To f...
I'm looking for a library to programmatically create photomosaics of pictures of my kids... it's a toy side project.
I'm on Windows and would prefer a windows-based solution, be it Java or something else that I could run from the Java platform (even if it's .Net, that's cool, as long as I can execute it from CMD).
It needn't be free or...
Hello Evryone
I would really apreciate if some one kindly clarify my confusion. I'm doing my internship in a company that develops and monitors prepaid reload systems in .NET framework and we are using C# currently, and i am required to research log4net and help them elevate their logging framework from simple logging to advanced loggin...
I'm creating a managed C++/CLI DLL that wraps and makes available a single function that resides in a c++ static library.
I got most of it working, except one persistent nagging point.
Here's how the function looks like in my unmanaged lib's .h file.
typedef struct
{
float a;
float b;
}MyStruct;
bool GetData(float p1, float*...
Using ASP.Net & C#
I want to run my web page in the internet explorer or firefox...
When i run the webpage, it was working in VS, but when i run the webpage in the ie it showing error as
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try aga...
The following scenario happens to me both on windows services and web working with ASP.NET application using IIS. I have an application that I want to change its behavior after it was deployed. So to do that I kill the application process (iis worker process) or stop the windows service. The I rename one or more of its dlls to be with th...