English
Assembler Forum

Completed: String-Return

 

Matthias
Arlt
my first try with Assembler style itself dank Franks Einführungskurs rather as virtual...! now have I but the following trouble or. NEN fallacy drin:

an ASM-routine determined a String and writes this in a area. the Reading works with invoke MessageBox , 0, addr buffer, etc. fine. If I now instead of spending in a Messagebox whom String in the Profan-Program weiterverarbeiten wants, How commit I this correctly? (addr buffer goes Yes only to one invoke...)

Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
12/12/06  
 




Jörg
Sellmeyer
If you whom String one area have, müßtest You it with text$=String$(B#,Addr&) read can. where Addr& = 0 is, if the String at the beginning the Bereichs standing.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/12/06  
 




Michael
Dell
in the rule is Buffer yes a DWord (Long) the on a Speicherbereich shows.
then ought to as last commands mov eax, buffer wealthy.

I persöhnlich would in XProfan a area or a with Chr$(0) gefüllten String$ as additional Parameter transfer and this then z.B.: with invoke MemCopy... The data transfer, the has then whom benefit the You all memory in the function to that end there enable can. thereby can You then with eax yet a Error Code give back, so becomes the too in the WinAPI often made.
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/12/06  
 




Matthias
Arlt
@Jörg
just as I thought indeed, but...

declare txt#
dim txt#,256

where means lying my Error ???

@Michael
thanks, I werds time with MemCopy try. time see...
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
12/12/06  
 




Michael
Dell
I see, here could one simple Return txt# to mov eax, para3 wealthy. If not working declariere txt2# with the equal werten How txt# and write Return txt2# and to the function print string$(txt2#,0).
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/12/06  
 




Jörg
Sellmeyer
ought to that here not hdl&,spalte&,Addr(txt#)) hot?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
12/12/06  
 




Matthias
Arlt
so, any mutants durchprobiert (txt#...txt2#...addr(txt#)...), but Result unfortunately How had. During under Profan7 still yet unbrauchbare characters with string$(txt#,0) read go, happens under XProfan to the Messagebox mere garnichts. try with invoke MemCopy... hit because of Access violation ditto fehl. the puzzle over goes means moreover...
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
12/12/06  
 




Frank
Abbing
lea eax, para3
mov lvi.pszText, eax
mov lvi.cchTextMax, 256


must heissen:

m2m lvi.pszText, para3
mov lvi.cchTextMax, 256


or

mov eax, para3
mov lvi.pszText, eax
mov lvi.cchTextMax, 256


para3 is Yes the Zeiger on a String and the Listviewmessage expects too a Zeiger on a String.

mov eax, para3
AsmEnd


is really balderdash, because the Returnwert = txt# is.
Übrigens can you rather whom Debugger in lieu of of/ one Messagebox benefit, circa Zahlenwerte or Strings view. Probier time:

PrintDec eax


or

PrintStringByAddr para3


P.s.: lovely, that you my course fallen has.
 
12/12/06  
 




Matthias
Arlt
@Frank
best Thanks, functions perfect ! have me very helped !!!

otherwise works the DLL-create already integrally well. I have your XPIA quasi as Standalone-Tool in PRFellow eingebunden and bastle me so on right comfortable point from the editor out my DLLs (for presently yet Profan7) together. Ggf. load I the time as PRFellow-expansion here high...

Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
12/12/06  
 




Frank
Abbing
lovely, the can certainly the a or others use. PrFellow glad itself Yes still grosser popularity.
 
12/12/06  
 




Matthias
Arlt
I have meanwhile another further Completed: one Stringvergleich. Folgender code functions of course as such, supply but always mismatched back. even if Pufferinhalte definitiv same are:

...
cld
mov ecx,sizeof Buffer2
lea esi,Buffer1
lea edi,Buffer2
repe cmpsb

jnz mismatched
jz same
...

have already unterschiedlichste mutants durchprobiert, but unfortunately erfolglos...!?

Matthias
 
WinXP SP2, Win7 - XProfan 10/11/FreeProfan32 - Xpia
12/17/06  
 




Frank
Abbing
repe cmpsb is veraltert. Nimm in lieu of which rather The APIs lstrcmp(), or. lstrcmpi(). Safer and plenty faster.
 
12/17/06  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

19.142 Views

Untitledvor 0 min.
p.specht02/21/19
Wilfried05/21/16
Peter Max Müller10/10/14
iF04/28/13
More...

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