Adding compilation date to the code
Hello all I need the date of compilation to be somehow hard coded in the code . How i can do that thing ? Thanks ...
Hello all I need the date of compilation to be somehow hard coded in the code . How i can do that thing ? Thanks ...
I am getting this error when I try to delete some rows in InterBase database, but for those ROWS I can fire SQL queries for SELECT and also UPDATE ... but not delete. What went wrong , what is the possible solution. ...
How, in your opinion, should we code to handle enabling or disabling features based on the installation type. Purpose is to have a single installation for separate editions and make features available based on the installation type. One way of doing it is to conditionally compile the code but that makes the code dirty and difficult to m...
I have run into several instances recently where I have had trouble figuring which .config file a given application or DLL is referencing. I've been able to figure it out through some trial and error, but I'm hoping there is a better way. I'd really like to hear some suggestions. Thanks! ...
In my project, I'm using (uncompressed 16-bit grayscale) gigapixel images which come from a high resolution scanner for measurement purposes. Since these bitmaps can not be loaded in memory (mainly due to memory fragmentation) I'm using tiles (and tiled TIFF on disc). (see StackOverflow topic on this) I need to implement panning/zooming...
I'm using StructureMap at the moment, generally with convention-based (Scan()) auto-configuration, and I'm looking to add decorator-based caching into the pipeline. If I configure it manually that is fine, but Scan() is just so convenient when you get lots of dependencies... I'm toying with noting cache suggestions on the interface(s), ...
How to convert text value into date Textbox1 column value = 31/12/2009 (dd/MM/yyyy) Tried Cdate(textbox1.text) The above code is not working. I want to get a date like this '31 Dec 2009' How to write a code for getting this format. Need vb.net code help ...
DataSet ds = new DataSet(); ...... SqlDataAdapter da = new SqlDataAdapter(sql, conn); da.Fill(ds); da.Dispose(); XmlDataSource1.Data = ds.GetXml(); XmlDataSource1.DataBind(); I need XML Data Source from XML for making dynamic ASP:Menu This code makes DataSource as a Parent element and elements from sql as a Children I need Parent El...
I'm new to multithreading and need to make sure the demo code below is implemented correctly. The actual application I need to multithread will be very similar, except I will have to run possibly hundreds of concurrent threads. Please code review. Imports System.Threading Public Class FooBar Private myData As New List(Of String)()...
Possible Duplicate: Repository pattern tutorial in C# anybody knows where can I find an example of Repository Implementation using just ADO.NET without any 3rd party components like Nhibernate ...
I'm considering to use XML-RPC.NET to communicate with a Linux XML-RPC server written in Python. I have tried a sample application (MathApp) from Cook Computing's XML-RPC.NET but it took 30 seconds for the app to add two numbers within the same LAN with server. I have also tried to run a simple client written in Python on Windows 7 to ...
We are using Oracle 10g at the back end and .Net 3.5 at front end. We are planning to use the Oracle bussiness Rule Engine in our application. Does the Oracle Bussiness Rule Engine support .Net or it has only support for Java. If it support .NET, it would be great help if you can provide me details how to integrate Orcale BUssiness Rule ...
I'm using a C# project that is linked to the OracleDataAccess.dll - V9 or V10, but only one of them at a time. My development machine has both installations. On the deployment machines only one of them is available. For this reason, I have to switch the reference betwenn V9 and V10 in my project dependent on the deployment machine. Is ...
Using the DwmExtendFrameIntoClientArea API call with Aero Glass enabled works just fine. However, I want it to work when Aero Glass is disabled as well, like how it works in the Windows control panel: Notice how the frame has extended into the client area, even though Aero Glass is disabled? When I make the DwmExtendFrameIntoClientAre...
One of the rules for implementing Dispose method says: "Throw an ObjectDisposedException from instance methods on this type (other than Dispose) when resources are already disposed. This rule does not apply to the Dispose method because it should be callable multiple times without throwing an exception." See: http://msdn.microsoft.com/...
I'm gonna detect the resolution with the following code in WPF : double height = System.Windows.SystemParameters.PrimaryScreenHeight; double width = System.Windows.SystemParameters.PrimaryScreenWidth; Current resolution of my screen is 1920*1200, but height is 960.0 and width is 1536.0 !!! What's wrong with it ? Thanks in advance. ...
I am just curious to know that why the return type of an asynchronous call in c# is IAsynceResult ? ...
Is there a way to do cross tab in the datatable ? eg : a function as following taking a datable and returning a crosstab datatable Public Function CrossTab(ByVal dtS As DataTable) As DataTable ' Change rows to columns and columns to rows ' The First Column Changes into Row Titles ' The Row Titles changes into the first column End Func...
Looking for the advantages of loading DLLs dynamically as opposed to letting your application load the DLLs by default. ...
I want to toggle the opacity of a control (Button, TextBox, Panel, etc) in my WPF project and wanted to check to see if I had done it correctly. My question is: Is this the type of functionality that you’d normally write in XAML or would you use code similar to that below to achieve the fade in/fade out result? internal static class ...