My team has a template (XDP) that we've created with the Adobe LiveCycle designer.
The situation:
We are replacing an old Acrobat form
(XFDF format) with this LiveCycle
form as part of a much larger upgrade
The current Acrobat form is
dynamically populated with basic data
and delivered to the user as a PDF
(the user clicks a link and ...
When one is using ADO.NET Data Services and consuming it via the Linq to REST (formerly Project Astoria), it doesn't seem to be as intuitive as it could be.
Namely, with normal Linq to SQL, the DataContext monitors objects and tracks changes, so a simple SubmitChanges() call will actually submit all my changes.
But with Linq to REST, I...
What is ContextBoundObject used for? The documentation mentions 'contexts', which seem to be programatically defined, but fails to give any explanation as to what one is.
...
I have a generic method with a new() constraint. I have a call to this method with an abstract type which, of course, won't compile. I wish to keep the call generic, but was hoping I could determine at runtime what the derived class is so as to satisfy the compiler. The call would look something like this:
var result = MyGenericMetho...
Using VS2005, C#, and a 3rd-party OCX component in our application. Standard VS Deployment Project installation file (MSI). On 98% of the deployments, everything works just fine.
On the other 2%, the OCX control isn't registered properly. At least, the fix is to unregister and re-register using REGSVR32.
Problem doesn't seem to be cont...
Function signature:
char * errMessage(int err);
My code:
[DllImport("api.dll")]
internal static extern char[] errMessage(int err);
...
char[] message = errMessage(err);
This returns an error:
Cannot marshal 'return value': Invalid managed/unmanaged type combination.
What am I doing wrong? Thanks for any help.
...
I need to convert a Number to Arabic Word. Does anyone have a code sample or library for that in C#,
...
I have a DataGridViewComboBoxColumn being programatically databound to a generic list. I also have another combo box on the form. Whenever I change the value of any of the ComboBoxes in the datagridview, the ComboBox on the form also changes its selected value.
I didn't intentionally write any and don't see any code that would even re...
I am attempting to create an MMC snapin that among other things, will receive and display log events that are fired from my service. I have created the watcher and it fires correctly, but when I try to add nodes to my MmcListView, I am getting a COMException which says "COM object that has been separated from its underlying RCW cannot b...
We have a customer who needs some simple forms (probably we would be creating a simple Winforms app for them) but there is a requirement to capture a mix of input fields plus some freehand drawing. It's the freehand drawing which worries us.
They will be using a tablet pc with stylus. The customer is running Office 2007.
This project ...
As a theoretical exercise to help me learn the ins and outs of the membership model with relation to MVC I want to figure out if I can load permissions from an external resource, for the purpose of my prototype I've got a flat file that has a list like so:
Controller1,Method1,Get,Anonymous
Controller1,Method1,Post,User,Administrator
Con...
I get an exception in a WS (asmx) which says:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpCon...
When creating a query with EF, Normally we will create an anonymous type in order to limit the number of columns returned.
But anonymous type cannot be returned or used as a parameter to a method call, which means all work related to that anonymous object should be done inside a single method. This is really bad.
And certainly, we don'...
Having two lists of same object type. I want to join them using an interleave pattern where i items of the first list are separated by j items from the second list.
In essence:
First list
{a, b, c, d, e, f, g, h}
Second list
{0, 1, 2, 3, 4}
where the grouping count for the first list is 3 and for the second list is 2.
...
EDIT: I just realized this is defined as a MACRO, not a function. How the heck would I import a macro from a DLL to C#? (this may have to be a new question).
This is related to a question I just asked:
How Do I Properly Return A Char From An Unmanaged Dll To C#?
Some of the answers suggested I change the function signature to Int...
MSDN vaguely mentions:
A ReadOnlyCollection<(Of <(T>)>) can support multiple readers concurrently, as long as the collection is not modified. Even so, enumerating through a collection is intrinsically not a thread-safe procedure. To guarantee thread safety during enumeration, you can lock the collection during the entire enumeration....
Is it better to access data from within the web parent app and pass the necessary data to the control and back via properties, or pass a reference or url pointer (of webservice) to control and let it access the data for the fields it encompasses keeping in mind that the parent doesn't need to use the data anywhere else that the server co...
Dear ladies and sirs.
My question is simple, given an ID (and the object type, of course) what is the best way to check whether this ID is present in the database using NHibernate?
Thanks.
...
Regex.Match has a .Success and .NextMatch why doesnt it have a GetEnumerator function?
With my logic it seems easy enough to implement. But it isnt in 3.5 so can anyone tell me why not?
foreach (var m in Regex.Match("dummy text", "mm")) error CS1579: foreach statement cannot operate on variables of type 'System.Text.RegularExpressions...
I'd like to create image (from another one) with rounded corners with GDI+. What's the best way to do this?
PS: it's not for web, so I cannot make use of client CSS
...