OSDN Git Service

binding with libharu.
[putex/putex.git] / src / texsourc / lib / libhpdf / if / vb.net / README.vbnet
1 To use this interface, build Haru as a shared-library (DLL) or use binary 
2 package for win32.
3
4 There are some example programs in demo directory. The steps to run the 
5 demonstration programs is as follows. 
6
7 1. Build libharu as a shared library and copy libhpdf.dll to "if\vb.net\demo"
8    directory. (Or expand binary package for win32) 
9    and copy libhpdf.dll to "if\vb.net\demo" directory.)
10
11 2. Compile and run demo programs. (Don't forget to compile hpdfvb.vb together.)
12
13    vbc /out:FontDemo.exe FontDemo.vb ..\hpdfvb.vb 
14    FontDemo.exe
15
16    vbc /out:ImageDemo.exe ImageDemo.vb ..\hpdfvb.vb 
17    ImageDemo.exe
18
19    vbc /out:LineDemo.exe LineDemo.vb ..\hpdfvb.vb
20    LineDemo.exe
21
22    vbc /out:OutlineDemo.exe OutlineDemo.vb ..\hpdfvb.vb
23    OutlineDemo.exe
24
25    vbc /out:Encryption.exe Encryption.vb ..\hpdfvb.vb
26    Encryption.exe
27
28    vbc /out:Permission.exe Permission.vb ..\hpdfvb.vb
29    Permission.exe
30
31    vbc /out:RawImageDemo.exe RawImageDemo.vb ..\hpdfvb.vb
32    RawImageDemo.exe
33
34    vbc /out:TextDemo.exe TextDemo.vb ..\hpdfvb.vb
35    TextDemo.exe
36
37
38 NOTE:
39 If you try to compile this examples in Visual Studio I've found that I had to place
40 the 'hpdfvb.vb' in the 'demo' folder, and I also had to change the default namespace
41 for the project to 'empty' such that it found the hpdf namespace defined in that module.
42
43 I've also successfully been able to compile just the hpdfv.vb as an assembly DLL, then used
44 the 'Add Reference...' feature in Visual Studio to import the module as a utility so that
45 I didn't need to include the actual 'hpdfvb.vb' source file into my projects.
46
47
48 NOTE:
49 libhpdf.dll is required to run the program which uses the VB.Net interface for libharu.
50 This interface should work for all versions of .NET (1.1, 2.0, 3.5 etc.).
51