|
我是用VS2010C#编的DLL文件 一加密就报错 库缺少需要的入口点 函数名UFUSR (我已经把PROGRAM选项的勾都去掉了)
% s7 m2 A* }6 p5 \% S6 r我把这个PROGRAM函数是入口吗- D$ S' {4 Y: m# p5 f
public class Program//主画面导入函数入口* @' ~. v0 g) Q' y# K
{
0 a0 h* g( u7 P // class members+ p8 ]+ [ c1 k: ?# L# k \
private static Session theSession;
# a* E% n! x5 B- {- b; O private static UI theUI;
% A) l* h l J9 D% R" v private static UFSession theUfSession;0 \1 e( w3 t+ x% @* ^5 ^- D* _6 x# ?
public static Program theProgram;4 ?( X* P9 v1 ?1 n4 P
public static bool isDisposeCalled;4 I( h1 Z& P ?$ g/ [' E/ l- _
) A* X. o" V# ~( a) K
//------------------------------------------------------------------------------
1 w" @+ l0 d) D/ o // Constructor% F. R; g+ B* @; n
//------------------------------------------------------------------------------
$ h) W- |- g5 e p- b/ {$ C
7 d2 k9 R( b) p4 L public static int Main(string[] args)1 k/ i' n+ q+ q; l; e- B1 L
{: F( V& A# r8 K# ~$ [
int retValue = 0;. N E! K) a% o% B# Z/ D- Q
try t* C6 t+ Z! g* y2 B& \
{8 y' D5 y: [- e5 x) `
theProgram = new Program();' @0 e6 p" X8 V2 O: Y- l
b) t' n$ K: D' Y9 k+ d
//TODO: Add your application code here
# T* q8 U$ t5 ^7 b. \$ t5 T5 S0 c6 y( X# J+ `
theProgram.Dispose();2 t( O! m$ D4 e: \ r _6 p9 J
}2 I& K1 y# ^/ W
catch (NXOpen.NXException): v: |" A5 n3 C9 V: E% t& M( g
{" D/ k% J) O1 i) \# o! R& B
// ---- Enter your exception handling code here -----
2 a1 M+ N% _5 F( w1 k( w5 B' @9 l% _" A$ Z/ ~( f% }1 I
}
( }) ?0 E/ N1 m g! d Y5 E MessageBox.Show("10102");
8 F5 u3 V& B& ~: Q) N, ^9 M+ V NX8_Open_CS_Wizard1.Form1 h=new NX8_Open_CS_Wizard1.Form1();1 l0 K0 k( U0 T: e: p
h.Show();1 l( q9 m7 O# }% }9 y
return retValue;
0 w# e+ k( K7 e7 {1 {/ O* S }
; _5 @; K- \- U' A* k$ N" Z
b$ V9 c6 Q, h8 l
! a4 k5 Z: \1 s: d
7 I! _7 F' S; S3 f3 X3 a& N) b4 z/ F0 u/ `8 d
//------------------------------------------------------------------------------
* W. u k( g& S4 N- ^( Q2 E. F // Following method disposes all the class members
# v: D) F8 i+ W6 o# n# |' x) e //------------------------------------------------------------------------------
& h: z% K$ Y0 J1 }. Q- p public void Dispose()
/ _' Q: ?# e% z" v { W' Z: u* n- ]+ @. m
try
1 n1 R4 A# p! q" o {
2 x9 k1 k" |3 R5 O F) C% r6 ` if (isDisposeCalled == false). B% q6 E& @6 ^% k8 y5 {: U% e
{
5 c+ J6 S& X$ {/ J //TODO: Add your application code here b% x7 |: R( p L- T' n2 @, q
}
3 S' Y2 O0 N1 U3 Q2 O( c isDisposeCalled = true;
# ^1 b `4 B" R }
! ?, j: Q% E7 C) X7 V# \4 v! ] catch (NXOpen.NXException )
8 @5 `/ G9 M: L/ Q, Z- S {: i* [& [2 H4 N+ ^
// ---- Enter your exception handling code here -----6 @1 j1 k p( }% Y, N0 P
) K2 e9 b1 K- M" N }, [! b- Q) F! L+ L- o9 D3 p1 U
}
9 P( U7 z b5 V% N//
/ k; n+ _+ l/ K: q i public static int GetUnloadOption(string arg)
0 p6 J" |$ h. G5 _3 v {
+ R$ E% C. M$ m0 m1 j/ h //Unloads the image explicitly, via an unload dialog( u5 K. k1 D( j* M, N4 v/ g
//return System.Convert.ToInt32(Session.LibraryUnloadOption.Explicitly);
6 r( m' R6 j0 N4 W: ]" F# |: ?! z/ ~2 ^/ J R |, c
//Unloads the image immediately after execution within NX V7 h/ x" t. u/ R/ ?9 ~; }
// return System.Convert.ToInt32(Session.LibraryUnloadOption.Immediately); z& U7 }3 b, v0 e9 n& m$ Z3 A- Q
% _2 X# H9 X/ d* y8 w# _! R //Unloads the image when the NX session terminates) |+ {( `! Y% j" D, p3 I+ Y
return System.Convert.ToInt32(Session.LibraryUnloadOption.AtTermination);
* T% L3 p# k! j- i }
* D1 C3 F# i! y1 }: O1 k
+ Y) h" W! K# K0 D" ~}
# e/ U5 D; ?+ K+ \- c里的UFUSR UFSAT删除了也没有用啊 C#加密会的能告诉我下吗 或者给个QQ跟我说好吗 可以谈价钱别太高了 |
|