| |
|
|
GDL | Hello Roland,
I have a integrally dringende Please.
it's about The RS232 and Dbf Files.
it's located definitiv on XProfan10, because
To including XProfan10ß10 (subscribtionsversion 10) went writecom on all Windowsversionen.thereafter not any more!!! means liegts on irgendwelchen Changes to this Subscribtion.The Problems lying with Win98 and WinMe.
this would Yes not so bad, then would I hold only The XProfan10ß10 take. only if I with this Version Dbase Files on one NT system beget and then on one Fat32 system copy these empty. with the actually Version is this komischerweise not the case.
Ausserdem would I gladly XProfan11 too benefit want.
Roland I rotate already because of of my in the meantime 10 facilities.
Hello Georg |
|
|
| |
|
|
|
RGH | GDL
To including XProfan10ß10 (subscribtionsversion 10) went writecom on all Windowsversionen.thereafter not any more!!! means liegts on irgendwelchen Changes to this Subscribtion.The Problems lying with Win98 and WinMe.
understand I the right: On NT-based Systemen (NT/2000/XP/VISTA) functions it on Win9x-Systemen not? Very odd. I can me not attempt remind, on this function something changed to have, but I will be to Easter time on my Sicherheitskopien look and the Source vergleichen.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/07/07 ▲ |
|
|
|
|
GDL | Hello Roland,
very with WinXP goes writecom.with Win98 and WinME crashes the program with Writecom so ex, that only More the Klammergriff helps. To to Subscribtionsversion 10 goes it on all WinVersionen. too The Subscribtion 11 making problems.be yesterday ex Subscribtion 10 up any stampeded.
Hello Georg |
|
|
| |
|
|
|
RGH | wonder, How I now time be, have I mean Ostervorbereitungen interrupted and same nachgeschaut: on WriteComm() have I nothing changed. The cause must elsewhere lying. has WriteComm() on this place one gültiges Comm-lever?
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/07/07 ▲ |
|
|
|
|
GDL | |
|
| |
|
|
|
GDL | The Prüfcode CompileMarkSeparationdeclare fehler%,comi&,t$,n$,erfolg%
cls
comi&=opencom(Com1:,4096,4096)
erfolg%=SetCom(COM1:9600,N,8,1)
if erfolg% <> 0
Let t$=Schnittstellenfehler
Let n$=Schnittstelle konnte nicht geöffnet werden,
oder wird von einer anderen Anwendung verwendet.
MessageBox(n$,t$,64)
closecom(comi&)
end
else
print Rs232 erfolgreich geöffnet und eingestellt
endif
fehler%=writecom(comi&,chr$(12)+chr$(34))
print Es wurden +str$(fehler%) + Zeichen gesendet
@ComError(comi&)
whilenot 0
waitinput
wend
closecom(&)
have over again something ausprobiert. have The interface through the Systemsteuerung on another Baudrate tuned. with subscr.10 goes everything correct.with the actually Ver. crashes WinME then already with setcom ex. under WinXP there no Problems.
Hello Georg |
|
|
| |
|
|
|
Michael Wodrich | @Roland: had You do not on another Delphi-Version changed? The problem could there lying.
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 04/07/07 ▲ |
|
|
|
|
GDL | Hello Roland,
could you me Please with Api Call help on. with the Api wars I the self not there.thanks.
Hello Georg |
|
|
| |
|
|
|
GDL | Hello Roland,
büde,büdde hilf me with your Apiaufrufen moreover.thanks.
Hello Georg |
|
|
| |
|
|
|
RGH | Hello, I can you of course whom Source to the both functions supplying, but whether the really weiterhilft, venture I To bezweifeln. I have yet no Solution found. CompileMarkSeparationProcedure FnOpenCom;
var C1:Char255;
I:LongInt;
IPar1:integer;
Begin
LesePara(ParStack,,,1);
StrCopy(C1,pchar(ParStr));
LesePara(ParStack,,,0);
IPar1 := ParLng;
LesePara(ParStack,),0);
GCID := CreateFile(C1,GENERIC_WRITE or GENERIC_READ,
0,NIL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,LongInt(0));
If GCID > 0 Then Begin
SetUpComm(GCID,IPar1,ParLng);
End;
ParLng := GCID;
ParTyp := 3;
Found := True;
End;
Procedure FnSetCom;
var C1:Char255;
CID: LongInt;
DCB:TDCB;
Begin
If (XPos(,,Par) = 0)
OR (XPos(,,Par) > XPos(),Par)) And (XPos(),Par) > 0) Then Begin
// Nur ein Parameter: ALte Version!
CID := GCID;
LesePara(ParStack,),1);
StrCopy(C1,pchar(ParStr));
end else begin
// Neue Version
LesePara(ParStack,,,0);
CID := ParLng;
LesePara(ParStack,),1);
StrCopy(C1,pchar(ParStr));
End;
ParLng := -1;
If BuildCommDCBA(C1,DCB) Then Begin
If SetCommState(CID,DCB) Then Begin
ParLng := 0;
End;
End;
ParTyp := 2;
Found := True;
/../function-references/XProfan/end/'>End;
Info: Char255 is meanwhile one Zeichenarray in the Size 32767. (The name stammt yet from middle-aged times to Version 7). The to that carry coming APIs are CreateFile, SetupComm, BuildCommDCBA and SetCommState.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/29/07 ▲ |
|
|
|
|
RGH | Michael Wodrich
@Roland: had You do not on another Delphi-Version changed? The problem could there lying.
in principle already. so a drop had we already time. there having the new TurboDelphi a structure in a shape akin, as tappt im dunkeln first NT-based Systemen gives, during Delphi 5 The something smaller ones structure according Win9x relative.
with the structure DCB, The here to that employment comes, find I in the API-Help but no Notes on Changes between 9x and NT.
I stand means still to one puzzel.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 04/29/07 ▲ |
|
|
|
|
GDL | thanks Roland, Perhaps can Yes iF so what begin.I Search already The whole Time after a useful RS 232 dll.
Übrigens Dll. you have Yes whom Source from the gehenden Subscriptionsdateien To Subscript 10. is not possible that you there with the middle-aged Delphiversion a Dll for RS232 command beget.ex XProfan 9 was still too the Nullstring bow eliminating. then could so did i furthermore XProfan without Problems benefit.
Hello Georg |
|
|
| |
|
|