Go Back   Winamp & Shoutcast Forums > Search Forums

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: ClausG
Forum: NSIS Discussion 11th September 2008, 13:44
Replies: 9
Views: 2,079
Posted By ClausG
Do you mean the following? !define SameText...

Do you mean the following?

!define SameText "SomeText"
!define SameTextSize 8
System::Alloc ${SameTextSize}
Pop $R4
System::Call "MyDll::ReadMem(.r14, ${SameTextSize}) .r13"
; fill...
Forum: NSIS Discussion 11th September 2008, 05:41
Replies: 9
Views: 2,079
Posted By ClausG
Thank you, Anders, for your help. I'm doing now: ...

Thank you, Anders, for your help. I'm doing now:
!define SameText "SomeText"
!define SameTextSize 8
System::Alloc ${SameTextSize}+1
Pop $R4
System::Call "MyDll::ReadMem(.r14, ${SameTextSize})...
Forum: NSIS Discussion 10th September 2008, 11:50
Replies: 9
Views: 2,079
Posted By ClausG
Okay, I have replaced System::Alloc...

Okay, I have replaced
System::Alloc ${SameTextSize}
Pop $R4
with
System::Call "*$R4(&t8,i 0)"

I'm not sure if I understand right: I cannot StrCmp my R4? It works (and worked) like a charm...
Forum: NSIS Discussion 10th September 2008, 06:04
Replies: 9
Views: 2,079
Posted By ClausG
Mmmh, no answers? No, my question isn't...

Mmmh, no answers?

No, my question isn't answered so far. As you can see, I allocate 9 bytes in $R4 and read the first 8 bytes via MyDLL::ReadMem. To compare with "SameText" the string in $R4 must...
Forum: NSIS Discussion 9th September 2008, 13:34
Replies: 9
Views: 2,079
Posted By ClausG
Sorry, there's a little bug in my code. i forgot...

Sorry, there's a little bug in my code. i forgot to pop $R4 after allocation:
!define SameText "SameText"
!define SameTextSize 9
System::Alloc ${SameTextSize}
Pop $R4
...
Forum: NSIS Discussion 9th September 2008, 09:12
Replies: 9
Views: 2,079
Posted By ClausG
Terminating string

Hello,
I need to read a string with fix size and compare it:
!define SameText "SameText"
!define SameTextSize 9
System::Alloc ${SameTextSize}
System::Call "MyDll::ReadMem(.r14,...
Showing results 1 to 6 of 6

 
Forum Jump