UGNX .net API: How to get the parameter range of a curve?
static public void GetCurveParamRange(Tag CurveTag, out double MinPara, out double MaxPara) { UFSession gUfSession = UFSession.GetUFSession(); IntPtr evaluator; double[] pararm_range = new double[2];...
View ArticleMessage: Unable to load DLL ‘libpart’: The specified procedure could not be...
In a recent project, I was required to develop a .Net assembly DLL and use it together with COMSOL with Matlab, where Matlab serves as the hub, and the .Net Assembly provides some services, Matlab...
View ArticleMicrosoft LightSwitch standalone download Link (ISO)
http://go.microsoft.com/fwlink/?LinkId=201345
View ArticleWCF Learning Note (I)
How to: Define a Windows Communication Foundation Service Contract using System; // Step 5: Add the using statement for the System.ServiceModel namespace using System.ServiceModel; namespace...
View ArticleIntel AppUp .Net SDK
The Intel AppUpSM developer program: Provides developers with everything they need to create and then sell their applications to users of millions of Intel Atom-based devices. Gives developers, OEMs,...
View ArticleWebMatrix: A cool tool for lightweight asp.net web design
Your First Website Using WebMatrix Create an ASP.NET Website from Scratch Create a website from a WebMatrix site template Add and edit ASP.NET web pages Create an open-source wiki website from the Web...
View ArticleSerialize & Deserialize derived class insances in generic List: Problems &...
There have been numerous discussions on serialize & deserialize derived class insances to and from generic List<T> and XML files. The problem is when you declare the collection as...
View ArticleWinForm:Using Numerical Recipe in C#
In my previous post, I have presented how to use the code of Numerical Recipes in MFC/C++. In this post, the use of it in C# is discussed. The most straightforward way is to use some wrapper class,...
View ArticleUsing /clr and incompatibility troubleshooting in MFC applications
In some circumstances, to use C# Winform or other .Net objects in MFC applications, the “/clr” directive should be used in the MFC project settings. However, it is found not always possible to use...
View Articleunresolved external symbol _clReleaseContext@4
When tesging an OpenCL program in 64bit windows, Visual Studio 2010, building the program generates below error: error LNK2019: unresolved external symbol _clReleaseContext@4 referenced in function...
View ArticleWPF: Difference of Visibility.Collapsed and Visibility.Hidden
In a recent trial to rename a TreeViewItem in WPF, I added a TextBlock as well as a Hidden TextBox in the Header, so that when in a “rename”, I will toggle of the TextBlock and TextBox’s visibility and...
View ArticleExpression Blend 4: cannot see/switch to design view
If you are using Visual Studio 2012 to create a WPF application, and open it in Micosoft Blend 4, it is likely that you can only see the XAML file, but cannot switch to design view. To solve this, in...
View ArticleC#: How to get installed Matlab paths and versions
In a recent project, I need get the installed Matlab’s executable path and their versions, and I know that users might not install Matlab in default “C:\Program files\MathWorks\…”. The first solution...
View ArticleHow to use WPF AvalonWizard control (I)
The AvalonWizard control is a handy WPF wizard control. To use it in your project, follow below procedures: 1. In your project, add a reference to the AvalonWizard assembly. You can right click the...
View ArticleHow to use WPF AvalonWizard control (II): Adding event handlers
In my previous post, we have discussed on how to get started with AvalonWizard. Yes, we need do sth else to make it work for our project. In this post, I will demonstrate how to add some logic to...
View ArticleMulti-cursor of Sublime Text Editor, Box Selection, Multi-Line Editing with...
The sublime text editor has a feature called multi-cursor, and it is good to know VS 2010 also has a “Box selection” feature. Hope this is useful to programmers~
View ArticleRemove unused languages/cultures from WPF/silverlight applications
If you ever used Microsoft Blend to open your WPF applications, you will find that in the output folder there are some satellite dlls in the form of fr, de, zh etc. To remove these unused languages...
View ArticleVisual Studio 2010, 2012 Very slow and the solution
I have installed VisualStudio 2010 for quite some time but suddenly it becomes very, very slow, and opening a project with dozens of files will take over 3-4 minutes, but it used to work very fast, on...
View ArticleWPF Tooltip control: Tips & Tricks
1. How to add multi-line tooltip?For button control, you can wrap the tooltip string in a TextBlock element, and then use either <LineBreak/> or 
 in the tooltip string. If you set...
View ArticleCreate Solidworks addin in Visual Studio 2012
Up to now, Solidworks had released its 2013 sp2.0 version, and its API is updated to v21.2.0.50, but once you installed the API, you will not see the addin wizard appear in Visual Studio 2012. One...
View Article