I have a javascript based library and would like to generate some C# classes for it. Unfortunately, I do not know T4 at all, so I may not have included information you need to answer this question. please comment, and I will edit as needed.
Thanks!
...
I have a unmanaged DLL that exposes a function that takes a pointer to a data structure. I have C# code that creates the data structure and calls the dll function without any problem. At the point of the function call to the dll the pointer is correct.
My problem is that the DLL keeps the pointer to the structure and uses the data s...
I have a class
public Student student {get;set;}
public Students students {get;set;}
both class properties are same..
I am getting student values from data base.. I need to assign those values to students..
can anybody tell me how to do this?
...
I am using the code from MS to print a form however it looks like the form needs to be visible with a Show/ShowDialog() to work.
I am trying to use the code for a form that I don't want to show.
Any ideas?
...
I have a "populate combobox", and I'm so happy with it that I've even started using more comboboxes. It takes the combobox object by reference with the ID of the "value set" (or whatever you want to call it) from a table and adds the items and their respective values (which differ) and does the job.
I've recently had the brilliant ide...
After creating an EF4 model from a SQL Server database I noticed that all the relationships of my Users table were not imported into the model as associations. All the other relationships were imported fine.
My Users table has a PK userId which is a char(7) field and it is integrated into several other tables in the database as an FK bu...
In the following, I am trying to persist a set of objects in an excel worksheet. Each time the function is called to store a value, it should allocate the next cell of the A column to store that object.
However, an exception is thrown by the Interop library on the first call to get_Range(). (right after the catch block)
Does anyone kn...
I need to extract data from .CDB (CardScan Database) using C#. How i can do this?
Thanks
...
Can I put together both C# and C++/CLI source files in a single project, and then compile them to obtain a single .DLL assembly?
...
I have an application that is used in image processing, and I find myself typically allocating arrays in the 4000x4000 ushort size, as well as the occasional float and the like. Currently, the .NET framework tends to crash in this app apparently randomly, almost always with an out of memory error. 32mb is not a huge declaration, but if...
I am looking for an analytics solution that can give me loitering detection, line crossing, and people counting.
I prefer an API over an entire software solution due to the specific requirements of the project.
I have found two companies that provide video analytics, but neither seem to be in a hurry to give me pricing :P.
Is there an...
I'm developing a newsletter in asp.net that will be send to a large quantity of users, so each kilobyte that I can reduce will help a lot in the use of bandwidth consumption, what I do until know is write the aspx excluding some spaces between tags, and before render, i've renamed some controls ids to "-" to save more space.
So now, the ...
I found two ways to use M-V-VM pattern in WPF:
allocate the ViewModel into the View's code behind (setting it as the DataContext);
allocate the ViewModel into a XAML file and create the corresponding view using a DataTemplate.
The Model can be allocated into the ViewModel's constructor.
What do you think about this way of using M-V-...
We're building an app that sends email using our clients' servers. The servers have different settings in regards to how many emails can be sent per connection/per second/etc.
Can someone recommend a component for this so we don't have to build our own? I came across MailBee Message Queue (http://www.afterlogic.com/products/message-...
I have an WPF form that I myself did not create, so I am not very good at WPF. It is leaking badly though, up to 400 MB and closing the form does not help.
The problem lies in my application loading all the pictures at once. I would like to only load the ones visible at the moment. It is about 300 pictures and they are a bit large so my...
If userA deleted OrderA while userB is modifying OrderA, then userB saves OrderA then there is no order in the database to be updated. My problem is there is no error! The SqlDataAdapter.Update succeeds and returns a "1" indicating a record was modified when this is not true. Does anybody know how this is supposed to work, thanks.
...
I'm trying to get the same result of a .NET application (see the link Hide TabControl buttons to manage stacked Panel controls for details), but using the MONO runtime instead of the MS .NET runtime.
Pratically, when the custom control is executed using the MONO runtime, the underlying message is not sent to the control, causing the tab...
What compiler tools and supporting libraries are available that would help in implementing a compiler targeting .NET and the CLR? Preferably open source. I am especially interested in frameworks that implement a high-level IR and support for common high-level and middle-level optimizations.
...
I have a Workflow Foundation 4 activity that has a InvokeMethod that is configured to call the Add method on an instance of type IList(Of String), providing a parameter of type String.
Running it gives me this error though:
'IList`1' does not have a public instance method named 'Add' matching the parameter
types, generic type arguments...
I have to query two different servers from a dynamically built query.
It basically gets data from one server, treats it, and inserts it into another server.
The only problem is I have to be sure it works for both situations:
If both the source and destination databases are on the same server, and if they're not.
I understand the conc...