English
Forum

File PCMCIA-ticket reading

 

Andreas
Spelter
Moin moin,

I get a Textdatei supplied The data contains The I grafisch present would like. The File has always whom same names and comes on of/ one PCMCIA-ticket therefore. with my Program would like I now several this Files one à ¶ Open characters circa these together vergleichen to.

means starte I my Program and read The first File with folgendem Programmteil one and let tappt im dunkeln draw:
CompileMarkSeparation
assign #1,sDatei$
reset #1
input #1,sZeile$ Datum lesen
sDatei$=mid$(sZeile$,13,4)+"-"+mid$(sZeile$,10,2)+"-"+mid$(sZeile$,7,2)+"_"+mid$(sZeile$,1,2)+"-"+mid$(sZeile$,4,2)
...
input #1,sZeile$
rX%=val(substr$(sZeile$,2,","))
rY%=val(substr$(sZeile$,5,","))
moveto (rX0%+rX%*3.5),(rY0%-rY%*1.5)

whilenot @eof(#1)

    input #1,sZeile$
    rX%=val(substr$(sZeile$,2,","))
    rY%=val(substr$(sZeile$,5,","))
    lineto (rX0%+rX%*3.5),(rY0%-rY%*1.5)

endwhile

close #s=s2>1

after now then The first curve drawn is, must The PCMCIA-ticket means from the Notebook out and in a printer with of/ one new File described and be very here begins my trouble: windows 2000 refusing the ticket To deaktivieren, it behauptet always tappt im dunkeln would yet uses what about me solle it later again try. but too hours later goes it not yet, first if I my Program finish can I The ticket deaktivieren. If I The ticket with aktivem Program simply so entferne I get schimpfe Windows at next einstecken the ticket piepst windows then of course, finds The ticket but nevertheless not and my Program then self-evident neither. means ticket again out, again Mecker Windows, ticket again mere and everything is again well. I can The ticket reading but thereafter again not deaktivieren and the whole game begins again of in front.

If my Program not runs can I The ticket jedesmal deaktivieren or under windows-Gemecker simply so Remove at next sandwich becomes tappt im dunkeln immediate recognized.

somehow shining means my close #1 The ticket not freizugeben. it'll but really jedesmal go through.

what can I against this Error do?

greetings
Andreas
 
11/30/04  
 



now, i see the trouble.

Einfache question for beginning: If assign/close there Perhaps something verbasselt - try still extern on the file To come.

either probierst You it first with the Profanschem copy or then with the Command.com / Cmd copy.

Virtually:
CompileMarkSeparation
shell "cmd /c copy file.txt c:\tmp.txt"
assign #1,"C:\tmp.txt"
.
re>
so get at least out obs really on the Profane or on the OS lying.

salvo, iF
 
11/30/04  
 



Hello Andreas...

unfortunately have I none blassen Schimmer of PCMCIA - but Perhaps helps something Brainstorming.

try still time with z.B.
CompileMarkSeparation
to the Closing the File your Arbeitsverzeichnis on your Festplatte To lay.
 
11/30/04  
 




Jörg
Sellmeyer
Hello Andreas,
Perhaps reicht already one FileMode 0 for Readonly to the Assign.
Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/01/04  
 




Andreas
Spelter
thanks for hints, everything probiert, nothing helps:

as long as my Program active is can I The ticket not deaktivieren, self then not if I The File from the ticket with shell cmd... on The Festplatte copies and of there red have.

yet More ideas?

Andreas

PS: Have straight another Notebook with windows 98 found, the position itself with my Program not so pingelig on: ticket out, ticket mere, reading goes.
 
12/01/04  
 



I Have you here time ne dll gebastelt - versuchs time so.

important thereby is the The DLL not by usedll loaded becomes - separate only by extern.
The DLL has too only a function CP Filename1 Filename2 CopyFileMode.

with the einstellbaren CopyFileMode can You Yes time rummspielen.

It can but his the The DLL komischen Pfaden not klarkommt.
Teste it Please first How I on LW C. means by me klappte it wonderful.

so GEHTS:
CompileMarkSeparation
cls
print external ("cp.dll","cp","c:S2.BMP","C:s4.bmp",0)+" Bytes"
waitkey
end
Open Access
open_access_ReadOnly          = $0000; { ---- ---- ---- -000 }
open_access_WriteOnly         = $0001; { ---- ---- ---- -001 }
open_access_ReadWrite         = $0002; { ---- ---- ---- -010 }
Open share rights
open_share_DenyReadWrite      = $0010; { ---- ---- -001 ---- }
open_share_DenyWrite          = $0020; { ---- ---- -010 ---- }
open_share_DenyRead           = $0030; { ---- ---- -011 ---- }
open_share_DenyNone           = $0040; { ---- ---- -100 ---- /font>
salvo, iF

7 kB
Hochgeladen:12/02/04
Downloadcounter87
Download
 
12/02/04  
 




Andreas
Spelter
thanks for trouble, but these DLL does not work for me.

- under windows 98 depends itself the program simply lane
- under windows 2000 there always two Fehlermeldungen and is then lane
- under Windows XP created it either a File with wirrem Filenames and falschem Content or is to two Fehlermeldungen lane

I had for these try too really only this program Translated:

cls
print external (cp.dll,cp,c:est1.txt,c:est2.txt,0)+ Bytes
waitkey
end

Andreas

11 kB
Hochgeladen:12/02/04
Downloadcounter324
Download
11 kB
Hochgeladen:12/02/04
Downloadcounter323
Download
13 kB
Hochgeladen:12/02/04
Downloadcounter332
Download
13 kB
Hochgeladen:12/02/04
Downloadcounter333
Download
 
12/02/04  
 



which Profan have?

If <xprofan, then make instead of

print external (cp.dll,cp,c:est1.txt,c:est2.txt,0)+ Bytes

simply

f1$=c:est1.txt
f2$=c:est2.txt
print external (cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes

salvo, iF
 
12/02/04  
 




Andreas
Spelter
I work here with Profan 7.0 under Windows XP.

with the detour over The variables has it once almost functions: it watts The right File copies, the target having too whom right names end the File get however some Lines deleted and irgendwelcher nonsense appended.

with all further try passierte however nothing more, neither to one Neustart Windows, the program depends itself now always to Test lane.

Andreas

cls
declare f1$
declare f2$
print Test
f1$=c:est1.txt
f2$=c:est2.txt
print external(cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes
waitkey
end
 
12/02/04  
 




Jörg
Sellmeyer
Hi,
you mußt In any drop either Großbuchstaben for Literale using or whom Backslash twice write.
otherwise interprets Profan the as tabulator.
means:
C:TEST.TXT
c:\Test.txt
If it objectively already with print Test depends, falls me though too nothing to a.
Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/02/04  
 



Related to the Print <- was wirklichn blödes example. would be Yes not The 1. Language with Escsequenzen.

Machs still differently - if The application exits his must - then finish tappt im dunkeln still. makes we one ploy. red your Exe the File simply over ne 2. instance copy. Solle still your exe itself self Call with nem parameter.

shell par$(0)+ -copyit

your exe position in the beginning the Program solid the it with nem Parameter launched watts:

if trim$(par$(1))=-copyit

copy bla bla
END

endif

and copies the File. The exe The it copied is still then exits.

what there now the Difference his should between the appeal of/ one CMD or of/ one own exe white so did i not - but one attempt isses worth.

salvo, iF
 
12/02/04  
 




Andreas
Spelter
It's all right forth: the copy functions now, but the File at copy changed:

Andreas

cls
declare f1$
declare f2$
print Test
f1$=d:\Test1.txt
f2$=d:\Test2.txt
print external(cp.dll,cp,addr(f1$),addr(f2$),0)+ Bytes
waitkey
end

1 kB
Hochgeladen:12/03/04
Downloadcounter94
Download
4 kB
Hochgeladen:12/03/04
Downloadcounter110
Download
 
12/03/04  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.238 Views

Untitledvor 0 min.
Ludwig Albien01/04/13
Paul Glatz08/03/12

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie