2013-11-06
visual studio is driving me crazy

Recently, I’v been working on a project using vs2010, my solution contains 2 projects, one of them compiles a dll, the other is a testing project. Everything is fine during my testing and debugging, but out of no where I can’t set any breakpoint in the dll project, vs2010 tells me that: “This Breakpoint Will Not Currently Be Hit, The Source Code is Different from the Original”. I immediatly clean and rebuild the entire solution, of course not working, still cannot hit the breakpoint. Then I google it for a while, there are serval solutions:

Read More

2013-09-24
VS2010: Error MSB3073, The command copy exited with code 1

Recently, I’v been working on a project about pre-processing of OCR images. I copy the project to home, when build it , This error occurs: “Error 15 error MSB3073 : The command copy exited with code 1”.

This project is built with vs2010, it works fine at lab. But at my own computer it failed compiling. The problem is with the post-build event, the solution has eight projects, each one copy it’s building result to a working directory “bin”, this command failed to find the building result and cause the compiling error.

Read More

2013-09-18
Error using MODI in Csharp(office 2007 version)

Recently I have to use MODI (Microsoft office Document Imaging) to do some OCR, I google some codes, one of them is in csharp from here, like below

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
private static string OCR(string fileToOCR)
{
MODI.Document md = new MODI.Document();
md.Create(fileToOCR);
try
{
md.OCR(MODI.MiLANGUAGES.miLANG_CHINESE_SIMPLIFIED, true, true);
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
return "Error!";
}
MODI.Image img = (MODI.Image)md.Images[0];
MODI.Layout layout = img.Layout;
layout = img.Layout;
string result = layout.Text;
md.Close(false);
return result;
}

Read More