Search found 18 matches

by upnorth
Fri Sep 10, 2004 3:14 pm
Forum: Windows
Topic: Help with Screen Saver Preview
Replies: 7
Views: 3537

GreenGiant & Kale:

Thank you both for your help. I will review the examples you indicated and see what I can find out.
by upnorth
Thu Sep 09, 2004 11:52 pm
Forum: Windows
Topic: Help with Screen Saver Preview
Replies: 7
Views: 3537

Help with Screen Saver Preview

Hello,

I am using using Windows 2000 Pro, PB 3.91 registered.

I have created a screensaver for Windows and I wanted to add something for the preview that appears in the little window on the Display Properties\Screen Saver Tab.

Below is my code to test this. I built the code by looking at a bunch ...
by upnorth
Sun Aug 29, 2004 5:32 pm
Forum: Windows
Topic: Video overlay programming ?
Replies: 15
Views: 6689

Perhaps your just not searching for the right thing. What you need is called a "DirectDraw Overlay Surface". I don't know anything about the subject, but here's a couple of links that may help you get started on your search.

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7 ...
by upnorth
Sun Aug 29, 2004 4:36 pm
Forum: Off Topic
Topic: GWbasic
Replies: 3
Views: 1702

Open the file with GWBasic, then save it with the ,a switch like this:

Code: Select all

SAVE"hello.bas",a
Then you can open hello.bas in notepad or another text editor and see all the origrinal formatting.

Hope this helps.
by upnorth
Tue Aug 24, 2004 4:15 pm
Forum: General Discussion
Topic: Program works, exe doesnt?
Replies: 23
Views: 4382

When running within the IDE, PureBasic creates a temporary executable in the Compiliers directory. Engine3D.dll is also in that directory. Perhaps you need to copy Engine3D.dll to the same directory as your final executable.
by upnorth
Tue Aug 24, 2004 3:17 am
Forum: Tricks 'n' Tips
Topic: Fill your PC with sand
Replies: 26
Views: 7850

Thanks for that MadMax.

I like it very much. Gives me some ideas. :D
by upnorth
Sun Aug 15, 2004 4:52 am
Forum: Windows
Topic: PB 3.91 User Libs, PellesC, Polink - Unresolved Symbols
Replies: 6
Views: 3185

@KarLKoX

.Desc files do not have any syntax to add .lib's as far as I know. :?: You can specify any .DLL's that your dependent on, but I am not using any .DLL's. PellesC has all standard C libraries in a single file crtmt.lib. ("C" Runtime Library Multi-Threaded) Fred has his version of this lib in ...
by upnorth
Fri Aug 13, 2004 8:49 pm
Forum: Windows
Topic: PB 3.91 User Libs, PellesC, Polink - Unresolved Symbols
Replies: 6
Views: 3185

Ouch! Nobody wants to talk about this topic heh ?

Well anyway, here's a neat trick. In your C source code for a User Library, you can put this line:

#pragma comment( linker , "/VERBOSE" )

This causes verbose output from the linker when PB is compiling the final program that uses this user lib ...
by upnorth
Thu Aug 12, 2004 7:00 pm
Forum: Windows
Topic: PB 3.91 User Libs, PellesC, Polink - Unresolved Symbols
Replies: 6
Views: 3185

PB 3.91 User Libs, PellesC, Polink - Unresolved Symbols

I have been writing several user libraries in C using PellesC 2.80. Mostly just for learning. Some libraries work fine. In others they will compile fine in PellesC, but will fail when compiling the final program in PB with Unresolved Symbols reported by Polink. Such as ___log ___stderr ___ctypelib ...
by upnorth
Mon Aug 02, 2004 5:51 pm
Forum: Coding Questions
Topic: How can I add/change an environment variable?
Replies: 14
Views: 4482

In the case of certain environment variables, they are system generated and CANNOT be changed. On NT, Windows 2000 and XP USERDOMAIN is one of these. See This Link: http://www.jsiinc.com/SUBA/tip0400/rh0454.htm for a list of them.

USERDOMAIN will always contain the domain name if the workstation ...
by upnorth
Thu Jul 29, 2004 1:10 am
Forum: Coding Questions
Topic: stringgadget scrollbars?
Replies: 6
Views: 2190

I have been doing some experimenting with the EditorGadget and found that both the Vertical and Horizontal Scroll Bars appear only when they are needed. Since EditorGadgets do automatic word wrapping, you have to have unbroken lines of text that extend beyond the right edge of the Gadget before the ...
by upnorth
Wed Jul 28, 2004 1:09 am
Forum: Announcement
Topic: F64 lib Updated.
Replies: 16
Views: 7064

Thank you Jack! Your efforts are greatly appreciated.
by upnorth
Tue Jul 27, 2004 2:19 pm
Forum: Coding Questions
Topic: Whats the size limitation for the StringGadget gadget?
Replies: 20
Views: 4356

Hey fweil & GeoTrail - My first example was meant to show that it could be done with native PB commands and without reallocating the PB String manipulation space. It would get pretty slow loading one line at a time if the text file gets much larger.

If speed is the most important factor, try this ...
by upnorth
Tue Jul 27, 2004 1:39 am
Forum: Coding Questions
Topic: Whats the size limitation for the StringGadget gadget?
Replies: 20
Views: 4356

All this stuff is a lot of work to load a 115k text file into an editor gadget IMHO.

This code will do it in a few seconds if that's fast enough for you.

As for the original question, StringGadgets are better suited for smaller amounts of text, say 32k or maybe even 64k on systems with a lot of ...
by upnorth
Mon Jul 26, 2004 11:33 pm
Forum: Coding Questions
Topic: Whats the size limitation for the StringGadget gadget?
Replies: 20
Views: 4356

I suggest you try ReadString() to read a line at a time from the file and AddGadgetItem() to add those lines to the EditorGadget one at a time. This should avoid the problem of trying to transfer the entire file at once.

I can confirm that the EditorGadget will hold a few megs at least as I have ...