1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
| [DllImport("Meine.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)] public static extern bool GetInfosN(string PW, string Benutzer, string Auftrag, string Variante, string werk, string stueliHerkunft, ref string strError, ref string strLog, ref string strTimes, ref string strResult, bool aPlan, bool stueli, bool matVerw, bool aNetz, bool klassfz, bool NoXML);
private void button16_Click(object sender, EventArgs e) { timer1.Enabled = false; bool ergebnis; const int sMAX_RESSTR_LEN = 6048580; const int sMAX_LOGSTR_LEN = 99005;
var strError = new String('\x00', sMAX_LOGSTR_LEN); var strLog = new String('\x00', sMAX_LOGSTR_LEN); var strTimes = new String('\x00', sMAX_LOGSTR_LEN); var strResult = new String('\x00', sMAX_RESSTR_LEN);
ergebnis = GetInfosN("XXXXX", "Name", "", "12354", "55", "S", ref strError, ref strLog, ref strTimes, ref strResult, false, true, true, false, false, false);
if (ergebnis == true) GroupBox1.Text = strResult; } |