Search found 82 matches

by Sub-Routine
Sun Aug 27, 2006 3:46 pm
Forum: Announcement
Topic: OLE/COM Interface generator v0.2
Replies: 28
Views: 20679

Thank you! I wish you would have done this about six months ago ;)

Rand
by Sub-Routine
Sun Aug 06, 2006 9:48 pm
Forum: Coding Questions
Topic: Unicode; should I?
Replies: 1
Views: 924

Unicode; should I?

Should I be using the Unicode flag when I compile my programs? What are the advantages and disadvantages?

My program does not seem to notice when I run it either way, same amount of GIGO.

Rand
by Sub-Routine
Sun Aug 06, 2006 1:19 pm
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321081

Re: PureLVSort library

gnozal wrote:At the moment, TailBite (the tool used to compile the library) does not support unicode.
Bummer :(

Thanks for looking.

Rand
by Sub-Routine
Sat Aug 05, 2006 3:45 pm
Forum: PureFORM & JaPBe
Topic: PureLVSORT library : sorting ListIconGadgets (and more)
Replies: 438
Views: 321081

PureLVSort library

Thank you for all your great programs Gnozal!

I would like very much to use this library but it locks my program. I believe it is the Unicode setting I am using as the example also freezes when Unicode executable is checked. It would be great if you can find time to look into this.

Rand
by Sub-Routine
Wed May 31, 2006 8:55 pm
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 689819

@Sub-Routine : sorry, I could not reproduce the problem.[/quote]

I haven't seen it again, either. jaPBe started up again and is running fine so I am not worried.

BTW, I don't think I chimed in a thank you at you yet, so
Thank You for taking jaPBe to the next level!

Rand
by Sub-Routine
Wed May 31, 2006 12:31 am
Forum: PureFORM & JaPBe
Topic: jaPBe 3.13.4 [IDE for PB 4 and PB 5]
Replies: 1545
Views: 689819

I had a jaPBe freeze yesterday. I copied a block (~30 lines), pasted it, accidentally pasted it again, hit Ctrl+Z (undo) and jaPBe froze. Task Manager showed 50% use (I have a dual P4) and I finally had to end the process.

I use the automatic backup and do plenty of saves so I didn't lose much ...
by Sub-Routine
Thu May 25, 2006 3:00 am
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

Every string returned by a PB function will be in Unicode format if you are compiling with "Create Unicode Executable" option enabled!

So deselect it and the Ansi2Uni function will work the same way as it did in PB 3.94

And it does.

Then forgive me for the uninformed question. What is wrong ...
by Sub-Routine
Wed May 24, 2006 12:30 am
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

Thanks Esteban, it looks like it should work. Do I have to deselect Unicode executable? I get a Unicode string returned.

Rand
by Sub-Routine
Sun May 21, 2006 4:04 pm
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

Why not simply use the same Uni 2 Ansi conversion function you did with PB 3.94 for the returned string?

I didn't think the COMLIB would work with PB4. I'll give it a shot.

Result.s = PeekS(*ResultPointer, #PB_Any, #PB_Unicode)

Thank you, this works.

I thought setting PB to use Unicode was ...
by Sub-Routine
Sat May 20, 2006 4:59 pm
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

The way I read this is that the second parameter to
GetModelStringForDevice()
should be a pointer to a buffer and so the interface declaration should probably read as follows:
GetModelStringForDevice(a.p-BSTR,b)

Then pass the address of the string buffer as the second parameter when invoking ...
by Sub-Routine
Sat May 20, 2006 4:08 pm
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

Here is the description of the function:

Code: Select all

[VOffset($178)] HRESULT GetModelStringForDevice([in] BSTR deviceID,
     [out, retval] BSTR* Result)
I can call several other functions successfully, but none that return a string.

Rand
by Sub-Routine
Sat May 20, 2006 2:58 pm
Forum: Coding Questions
Topic: Unicode, pseudotypes and PB4
Replies: 11
Views: 3014

Unicode, pseudotypes and PB4

I hope someone can help me, please.

I have a program that works well in PB 3.94 by calling Uni2Ascii and Ascii2Uni (COMLIB). I am struggling with some of the conversion to PB4.

I used the Interface Generator from aXend to produce this:
Interface ISDM3 Extends IDispatch
GetModelStringForDevice(a,b ...
by Sub-Routine
Sun May 07, 2006 7:56 pm
Forum: Coding Questions
Topic: Trackbar and SetGadgetState
Replies: 23
Views: 5118

Re: Trackbar and SetGadgetState

I have a trackbar that is used as an indicator, ie, changed using SetGadgetState(). What EventType/#WM_???? tells me it has changed? I want to update a text control when the bars value changes, possibly from several places so I want to capture an event.

That all seems so complicated to me. If you ...
by Sub-Routine
Sat Apr 29, 2006 9:59 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] StringGadget maximal length
Replies: 3
Views: 1638

Yes, a Flag to use with StringGadget...
by Sub-Routine
Sat Mar 11, 2006 1:18 am
Forum: Coding Questions
Topic: Moving data to procedure and text manip
Replies: 5
Views: 1303

You should realize that the first element in a linked list is x(0), I think that may be a mistake in your PB4 example.

Example for 3.94:
NewList x.s()

Procedure test_list()
AddElement(x())
x() = "Inside Procedure"
; Debug x()
EndProcedure

For X = 0 To 2
AddElement(x())
x() = "Outside ...