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 ArticleParticle swarm optimization: the simplest what and how
While there exist many introductory materials on Particle Swarm Optimization (PSO), it is best to have an intuitive example, simple, understandable at first reading, and illustrative. I personally do...
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 Filed under: Dotnet/C#
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 ArticleVisualStudio 2010 sp1 standalone ISO download link
ISO Link: http://download.microsoft.com/download/E/B/A/EBA0A152-F426-47E6-9E3F-EFB686E3CA20/VS2010SP1dvd1.iso Or http://go.microsoft.com/fwlink/?LinkId=210710 What is new? Filed under: Programming
View ArticleMFC:Using Numerical Recipe in C++
I was forced to come back to MFC, as the company I am now serving still uses VisualStudio.net 2002. The happy days using C# are gone,… tears… Below is my trial to use code from Numerical Recipe in C++,...
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 ArticleHow to manually setup/modify Visual C++ Project settings such as /GL, /Yu...
Most Visual C++ project settings can be setup using the Project Properties dialog, but not all. In my recent project, I am trying to host Windows Form in MFC (VS2002), and the directive “/clr” must be...
View ArticleHow to use .Net Winform or UserControl in MFC
For VisualStudio 2005 or above versions, refer to below link http://msdn.microsoft.com/en-us/library/ahdd1h97.aspx http://msdn.microsoft.com/en-us/library/b1kyh79x(v=VS.80).aspx The basic idea of this...
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 ArticleDuplicate Toolbars/buttons after reinstalling Visual Studio .Net
My Visual Studio.Net crashes frequently and I then asked my colleague to reinstall it for me. Sadly, after reinstallation, the GUI becomes rather chaotic, with duplicate toolbar buttons as shown below:...
View ArticleLearning openFramework from a MFC-er’s perspective
Recently I began learning openFramework and ever talked with my colleagues about how to adapt to it as quickly as possible. As a programmer who started programming along the path C –> C++/MFC –>...
View ArticleopenFramework in VisualStudio: “error C2001: newline in constant” or...
When compiling the examples in the openFramework, if you encounter the below errors: “IntelliSense: too many characters in character constant …icons.h” or error C2001: newline in constant (see below...
View ArticleGit Command explained with snapshots (I)
The very beginning step is probably creating/selecting a folder (e.g. C:\_Test) where to keep your source code. Now this folder is just a common folder, and it is not a Git repository yet. To let Git...
View ArticleA brief list of git commands
git fetch origin(origin is the serve alias) Looks up which server is origin; –> fetches any data you don’t have—>update local data base –> moving the origin/master pointer to up-to-date...
View Article