Search found 9 matches

by essess
Wed Oct 01, 2014 6:09 pm
Forum: Coding Questions
Topic: Structure/EndStructure and embedded ascii strings (.s{})
Replies: 4
Views: 1874

Re: Structure/EndStructure and embedded ascii strings (.s{})

I was looking for a way to see whats allocated behind the scenes for me in case I can't figure out from docs/examples. Something like valgrind in the C world. If I 'leak' something because of bad assumptions, I'd like to figure it out without spending tons of time searching
or posing questions that ...
by essess
Wed Oct 01, 2014 1:29 am
Forum: Coding Questions
Topic: Structure/EndStructure and embedded ascii strings (.s{})
Replies: 4
Views: 1874

Re: Structure/EndStructure and embedded ascii strings (.s{})

hmm..
I thought the .b[] suffix indicated dynamic allocation of an array ?

I assumed the above based on the example in the help:

....
y.w
Name.s[10] ; 10 Names available (from 0 to 9)
EndStructure


If not, I think you just helped a whole lot!
ShowMemoryViewer() is neat too! (I'm new to PB ...
by essess
Tue Sep 30, 2014 11:59 pm
Forum: Coding Questions
Topic: Structure/EndStructure and embedded ascii strings (.s{})
Replies: 4
Views: 1874

Structure/EndStructure and embedded ascii strings (.s{})

Hello,

When compiling in unicode mode and trying to interface to an ascii based .dll I have a problem where structure offsets are modified for me (due to character width adjustments). I settled on this solution, but it seems too ugly for me and I was hoping that someone else could point out a ...
by essess
Fri Jul 18, 2014 3:10 am
Forum: Applications - Feedback and Discussion
Topic: Mental Math Problem Set Generator
Replies: 0
Views: 1888

Mental Math Problem Set Generator

Hello -
I just started doing [ this mental math course ] and decided to rip out a little app to generate problem sets for me to print out and work through. It's handy to simply fold up the paper (or a few) and stuff it in your pocket and pull it out throughout the day when you have some free time ...
by essess
Wed Feb 19, 2014 2:28 pm
Forum: Coding Questions
Topic: command line arguments behavior
Replies: 10
Views: 4221

Re: command line arguments behavior

Yes! exactly. You phrased it much better than I did. :) I tried to figure out a way around it, but the ide silently inserts the executable name. If it didn't do that, and let me construct my own commandline, then I could do the 'cmd /c' trick if I needed to apply redirection. I could set it up as an ...
by essess
Tue Feb 18, 2014 5:12 pm
Forum: Coding Questions
Topic: command line arguments behavior
Replies: 10
Views: 4221

Re: command line arguments behavior

I'm trying to understand why redirection is not applied when launched from the ide. Hence the reason, that '< test.txt' is interpreted as arguments. This is unexpected behavior for me.

I tried to include the simplest code possible to demonstrate this behavior. All the code does is enumerate the ...
by essess
Sun Feb 16, 2014 10:39 pm
Forum: Coding Questions
Topic: command line arguments behavior
Replies: 10
Views: 4221

Re: command line arguments behavior

I have no problem with OpenConsole.

My problem is with redirection and how it's interpreted different from the command line (expected) vs. from the ide (unexpected). Is this intended behavior ? To phrase it more directly: I cannot use redirection when launching from the ide, right ?

If I am ...
by essess
Wed Feb 12, 2014 5:48 pm
Forum: Coding Questions
Topic: command line arguments behavior
Replies: 10
Views: 4221

Re: command line arguments behavior

Yes, I do not want the literal redirection stuff to show up in the command line - I want it to do redirection - I'm not interested in using '<' (sorry, I forgot to mention that). I'm wondering if this is intended, or did the designer of the ide wish to have it's behavior identical to launching from ...
by essess
Wed Feb 12, 2014 4:14 pm
Forum: Coding Questions
Topic: command line arguments behavior
Replies: 10
Views: 4221

command line arguments behavior

Hello,
Using this code:

EnableExplicit
OpenConsole()
PrintN( ProgramFilename() )
Define cnt.i = CountProgramParameters()
While cnt
PrintN( ProgramParameter() )
cnt - 1
Wend
Input()
; cmdline arguments:
; com1 < test.txt


I get different behavior when using the ide to run my program:

C:\prj ...