Quantcast
Channel: Dotnet/C# – Xinyustudio
Browsing all 204 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to get SolidWork exe path programmatically

For some reasons, I need to get the path where SolidWorks are installed. Note that: Uses may not always installl SolidWorks to the default locations. Multiple SolidWorks versions may coexist; In order...

View Article


Image may be NSFW.
Clik here to view.

Conditional postbuild in C#

Some Examples: if “$(ConfigurationName)”==”Debug” “C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe” /i $(TargetPath) Do not put the “if clause” and the “action clause“  in...

View Article


Image may be NSFW.
Clik here to view.

mllapack.dll crashing problem: finally solved in Matlab 2010b

If you would like to call matlab functions in DotNet or com, and your function calls involve some functions which rely on lapack functions, and prior to Matlab 2010b, you may find that your program...

View Article

Image may be NSFW.
Clik here to view.

Add a custom taskpane to Word 2010 using C#

Create a VisualStudio project, in the template, select Word2010 Addin: Word 2010 addin template: Application-level add-ins Word 2010 document: Document-level customizations Add a new user control...

View Article

Image may be NSFW.
Clik here to view.

Using Hoops in C# (I) : HelloHoops

Hoops is a good 3D Visualization toolkit with OOP model enabled. In this tutorial, Hoops will be used in combination of .net. C# language will be used to demostrate the typical usage. Createa a new...

View Article


Image may be NSFW.
Clik here to view.

Sequence Diagram of Visual Studio 2010

Just found a new useful feature of VisualStudio 2010, to generate the sequence diagram for a particular function. Right click a function, select “Generate Sequence Diagram” in the popup menu: VS will...

View Article

Image may be NSFW.
Clik here to view.

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 Article

Image may be NSFW.
Clik here to view.

Message: 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 Article


Image may be NSFW.
Clik here to view.

Microsoft LightSwitch standalone download Link (ISO)

http://go.microsoft.com/fwlink/?LinkId=201345Filed under: Dotnet/C#

View Article


Image may be NSFW.
Clik here to view.

WCF 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 Article

Image may be NSFW.
Clik here to view.

Intel 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 Article

Image may be NSFW.
Clik here to view.

WebMatrix: 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 Article

Image may be NSFW.
Clik here to view.

Serialize & 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 Article


Image may be NSFW.
Clik here to view.

WinForm: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 Article

Image may be NSFW.
Clik here to view.

Using /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 Article


Image may be NSFW.
Clik here to view.

unresolved 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 Article

Image may be NSFW.
Clik here to view.

WPF: 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 Article


Image may be NSFW.
Clik here to view.

Expression 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 Article

Image may be NSFW.
Clik here to view.

C#: 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article
Browsing all 204 articles
Browse latest View live