|
我是用VS2010C#编的DLL文件 一加密就报错 库缺少需要的入口点 函数名UFUSR (我已经把PROGRAM选项的勾都去掉了)5 C- W% k% ~5 l/ R2 B- z5 Y5 u
我把这个PROGRAM函数是入口吗" g( W1 @) v( c8 [
public class Program//主画面导入函数入口
p! y, R, h+ | J{
/ l" Q1 I3 o5 M4 {4 O, o/ v8 ^ // class members
# p( K; e( H ?7 B- b% u2 e6 o private static Session theSession;) k- e" `( V+ y9 t
private static UI theUI;
3 [8 G" N* K; q5 N- B private static UFSession theUfSession;
) R, {. t6 N3 L% c8 j: w; k public static Program theProgram;: U2 H- Q- f/ `/ S
public static bool isDisposeCalled;/ M0 @9 r5 O: L! r- s/ E W
3 H7 P; B! M! k% o) x; x' d
//------------------------------------------------------------------------------- A$ @5 M8 }+ s1 C: J
// Constructor- y" t8 n5 E @' l1 W: L* h2 X9 p# K
//------------------------------------------------------------------------------
1 L9 P( Y) j2 S5 o6 J
6 z$ h+ } S4 }9 J3 g+ X public static int Main(string[] args)
( N$ L3 ?9 m/ J4 l4 x {3 n N( P& J" X9 D7 ]7 C+ E
int retValue = 0;
) G- U7 {, r' x/ @" L5 j try
3 i9 b I' M" Y# M v: `: F# r {- r; r4 p- \, M2 F h2 p
theProgram = new Program();
# G8 D5 \: J/ q# ^( `$ t' R$ e+ q4 ~; l! Q8 P5 v
//TODO: Add your application code here , Q, e E& {7 e, ^3 t) s3 @* @% E
) m' U; o7 Y( g3 w' `8 v7 o& e
theProgram.Dispose();
6 d, x- }2 V% {& y }' l. `. h9 h+ z; t; `1 Q
catch (NXOpen.NXException)
3 {/ ?6 k' B! u {
. A/ Q, @- k; O% M( E; ^( z // ---- Enter your exception handling code here -----
. C; M3 q6 a+ g" C) q9 b* u i: k2 R3 b% _& a c, U9 y
}& i3 j2 Z; N# A; U# H
MessageBox.Show("10102");/ e m( m9 e- F% @5 G9 E: K
NX8_Open_CS_Wizard1.Form1 h=new NX8_Open_CS_Wizard1.Form1();. }6 X" U$ f: m
h.Show();! z7 z K9 m9 r
return retValue; G7 r. t# E7 U. \5 {
}
2 s" P- q6 s: s% K2 }/ D' n2 _' ]2 K; N& }; I
, d. t# P; ~' O' e0 |/ X
, T# O U; q) h% }
* c# f: X% w4 x# y) e# ? //------------------------------------------------------------------------------+ X' f. J' b! P* n% e) [/ C o2 o+ i8 G- }. y
// Following method disposes all the class members9 t! K# \" V) k0 C! W
//------------------------------------------------------------------------------8 s I# V! x& D$ s7 c: f' v6 M( P4 V
public void Dispose()
2 t1 l2 G j! |! c% |; r {1 \) y: o, t& N* a5 r0 V# v
try
& F* [: N2 l4 V% \% S6 l" n {
) Y+ q9 ~! `9 K& h1 X/ B if (isDisposeCalled == false)
- [8 k) D) E6 i. @ {
7 o1 y$ ]2 t* Y //TODO: Add your application code here 7 a$ C8 _) D2 n& r
}0 C4 K+ P0 W& {# X
isDisposeCalled = true;3 j% x0 R1 p* ?) d+ a
}- D8 C$ \) O# s4 n
catch (NXOpen.NXException )
. M0 N, j- K c& g7 v, y { T4 \+ `" s" x% ^3 {
// ---- Enter your exception handling code here -----. a" F; j9 E/ L G( q
: j$ T' c' J# r% y }
3 E$ _; \4 ^% s }: r$ M- D* U# V* P
//
9 m: D' L1 k% I/ s" ~% @9 `& T2 x public static int GetUnloadOption(string arg)& e4 u1 I& }5 L' C5 }0 |. T+ F
{
) u" ^' S) m+ i: s$ O //Unloads the image explicitly, via an unload dialog
* U+ k- K) w/ K0 }. p2 | //return System.Convert.ToInt32(Session.LibraryUnloadOption.Explicitly);" |! [( p6 ~3 I% b% Q8 y
" f9 o4 S: p3 ^' N3 }
//Unloads the image immediately after execution within NX9 C& |- @- c: d: k, Y3 g9 @7 m) ?# x
// return System.Convert.ToInt32(Session.LibraryUnloadOption.Immediately);
: U5 T; _6 [$ x8 L
/ y4 p; \% ^, h: C //Unloads the image when the NX session terminates" z! o4 L# S" M5 T: R( o* C$ ~7 T4 |
return System.Convert.ToInt32(Session.LibraryUnloadOption.AtTermination);3 l& K9 A' C" h: O
}
4 K2 S' ~* k+ B: p [* X( L& c- {
}
5 O/ L, c9 d6 \/ {8 ?里的UFUSR UFSAT删除了也没有用啊 C#加密会的能告诉我下吗 或者给个QQ跟我说好吗 可以谈价钱别太高了 |
|