עזרה בבקשה
כתבתי אפליקתיה שכאשר היא מנסה להדפיס ממחשב מסויים היא נותנת exception כזה:
כתבתי אפליקתיה שכאשר היא מנסה להדפיס ממחשב מסויים היא נותנת exception כזה:
An unhandled exception of type 'System arithmetic Exception' occured in system .drawing.dll Additional information : overflow or underflow in the arithmetic operation
חיפשתי מידע על זה באינטרנט ומצאתי את המידע הזה שנכתב על ידי מיקרוסופט כשניסיתי לממש אותו וכתבתי את הקוד :[DllImport("msvcr70.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int _controlfp(int n, int mask); [STAThread] static void Main() { const int _EM_OVERFLOW = 0x00000004; const int _MCW_EM = 0x0008001F; _controlfp(_EM_OVERFLOW, _MCW_EM); Application.Run(new Form1()); } קיבלתי את הerror :
The Type or namespace 'DllImport' Could not be found.....
מה אני מפספס ?? בבקשה זה דחוףThe Type or namespace 'DllImport' Could not be found.....