<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=gb2312 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.7930.16406"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}">
<META name=GENERATOR content="MSHTML 6.00.2900.2180">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY 
style="MARGIN: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT size=3 face=Calibri>You're welcome, glad to help you.</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Arnaud</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=lancerhuang@163.com 
href="mailto:lancerhuang@163.com">黄亮</A> </DIV>
<DIV><B>Sent:</B> Friday, October 29, 2010 10:07 AM</DIV>
<DIV><B>To:</B> <A title=arnaud.champion@devatom.fr 
href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</A> </DIV>
<DIV><B>Subject:</B> SPAM-LOW: Re: Re: 
System.DllNotFoundException</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana>Hi,</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>depends.exe really helps!</FONT></DIV>
<DIV><FONT color=#000080>it turns out that there are 7 dlls I'm missing. Thanks 
to the dll-files.com, I can download all of them.</FONT></DIV>
<DIV><FONT color=#000080>And put all of them in the same dir with my test exe, 
it works.</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Thank you arnaud, you really help a lot.</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Best wishes</FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2010-10-29 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>Lancer</FONT></DIV>
<DIV> </DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> <A 
href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</A> 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2010-10-29  15:38:47 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> 黄亮 </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> <A 
href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</A> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: 
System.DllNotFoundException </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<DIV><FONT size=3 face=Calibri>Hi,</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>what do you mean when you say "I use the .cs file 
you release to create a dll project" ?</FONT></DIV>
<DIV><FONT size=3 face=Calibri>C# bindings are provided with a visual studio 
2010 solution, I think it's better to use it if you can. If you can't (because 
you have vs2005 or vs2008), please re-create a solution with all C# bindings 
codes.</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Be sure you have the dll in your Debug directory 
:</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libcurl-4.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libgcrypt-11.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libgnutls-26.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libgpg-error-0.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libportablexdr-0.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libtasn1-3.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libvirt-0.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri>libxml2-2.dll</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Also, be carefull about one thing : these dll 
must be in the directory of the executable. I mean if you create a project 
"testBinding" which produce "testBindings.exe", then these dlls must be in the 
same directory of "testBindings.exe".</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>You can also use "depends.exe" (<A 
href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</A>) 
which is a tool used to check dll dependency. You open your libvirt-0.dll with 
it and see if there is no missing dll (maybe a dll miss you, and I don't see it 
because my system ever own it, I don't know).</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV><FONT size=3 face=Calibri>Arnaud</FONT></DIV>
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A 
title="mailto:lancerhuang@163.com CTRL + Cliquez ici pour suivre le lien" 
href="mailto:lancerhuang@163.com">黄亮</A> </DIV>
<DIV><B>Sent:</B> Friday, October 29, 2010 3:51 AM</DIV>
<DIV><B>To:</B> <A title=arnaud.champion@devatom.fr 
href="mailto:arnaud.champion@devatom.fr">arnaud.champion@devatom.fr</A> </DIV>
<DIV><B>Subject:</B> System.DllNotFoundException</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT size=2 face=Verdana>Hello Arnaud</FONT></DIV>
<DIV> </DIV>
<DIV>I've compiled libvirt using photron scripts and got the libvirt-0.dll</DIV>
<DIV>I use the .cs file you released to create a dll project, and get 
CSharpDll.dll</DIV>
<DIV>Then I create a new project to invoke CSharpDll.dll, I got a 
System.DllNotFoundException while "Libvirt.Connect.Open" is trying to 
work.</DIV>
<DIV>The exception shows libvirt-0.dll cannot be found.</DIV>
<DIV>I tried to put libvirt-0.dll everywhere. In the same dir with .sln, with 
.cs file, in Debug dir, even in Windows/System32 dir. But I got no luck. It's 
still stuck.</DIV>
<DIV> </DIV>
<DIV>So I need your help to get me out of the mess. Would you please tell me 
where I may go wrong?</DIV>
<DIV>Many Thanks</DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2010-10-29 
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 
face=Verdana>Lancer </FONT></DIV></FONT><BR><BR>__________ Information from 
ESET Smart Security, version of virus signature database 5573 (20101028) 
__________<BR><BR>The message was checked by ESET Smart Security.<BR><BR><A 
href="http://www.eset.com">http://www.eset.com</A><BR></FONT></DIV></BODY></HTML>