Search found 44 matches

by Paul Dwyer
Fri Jun 17, 2005 7:57 am
Forum: Coding Questions
Topic: Threads and multiple parameters....
Replies: 5
Views: 2177

use a single parameter as a pointer to a structure with whatever parameters you want.

Fill a structure with the parameters for the job the thread is designed to do and pass a pointer to it to the thread.
by Paul Dwyer
Fri Jun 10, 2005 4:07 am
Forum: Coding Questions
Topic: What is the ImageID? Pointer? hBitmap?
Replies: 4
Views: 1499

Made Some Progress

It seems that

StartDrawing(ImageOutput())

Will pass me an hDC to the pic and if I pass that the new app can BitBlt off the hDC to get the data and it works. I suspect there are more operations happening here than necessary though. ImageOutput() seems to deliver me yet another type of image ID and ...
by Paul Dwyer
Fri Jun 10, 2005 1:42 am
Forum: Coding Questions
Topic: What is the ImageID? Pointer? hBitmap?
Replies: 4
Views: 1499

Thanks1, but still confused

The LoadImage docs say

Load the specified image. If #PB_Any is used as '#Image' parameter, the new image identifier will be returned as 'Result'. The image can be in BMP, icon or any other format supported by the ImagePlugin library. If the function fails, 0 is returned, else all is fine. The ...
by Paul Dwyer
Thu Jun 09, 2005 9:34 am
Forum: Coding Questions
Topic: What is the ImageID? Pointer? hBitmap?
Replies: 4
Views: 1499

What is the ImageID? Pointer? hBitmap?

I want to create a DLL that loads a png or jpg and passes this back to the calling application. This application might not be a PB app so I need to know how to use this number.

So, I have a number returned by LoadImage, it's global so it can be passed back but what is it?

An hDC, hBitmap, Pointer ...
by Paul Dwyer
Fri Jun 25, 2004 3:44 am
Forum: Linux
Topic: Latest Linux version
Replies: 4
Views: 2387

Cheers

Thanks, I'll have to sort through my old email at home and find my login name!
by Paul Dwyer
Fri Jun 25, 2004 3:10 am
Forum: Linux
Topic: Latest Linux version
Replies: 4
Views: 2387

Check the user account?

Sorry, My mind is in reverse today,

what do you mean?
by Paul Dwyer
Thu Jun 24, 2004 2:18 pm
Forum: Linux
Topic: Latest Linux version
Replies: 4
Views: 2387

Latest Linux version

What is the current version of PB for linux and where/how can I get it.

I don't think I have a version since 3.50.

I seem to recall having to email someone to ask for that one but I really can't remember.

Any pointers in the right direction?

Cheers
by Paul Dwyer
Mon Jun 21, 2004 4:40 am
Forum: Coding Questions
Topic: Linux Beginner
Replies: 3
Views: 1282

I'll re read

I used the install file and copy pasted the cp commands to put everything where I assume it's supposed to be, I noticed and pbcompiler and fasm went to /usr/bin and something else went to /usr/share. I'll check when I get home. I don't recall moving the libs though and that's what the error was ...
by Paul Dwyer
Sat Jun 19, 2004 3:53 am
Forum: Coding Questions
Topic: Linux Beginner
Replies: 3
Views: 1282

Linux Beginner

I've installed as per the install file for linux, but I really have no clue what I'm doing on linux. Any getting started docs around? I assume that I need to find some editor of my own like a built in one.

I tried to compile one of the examples and got

Can't load any PureLibraries ! Please re ...
by Paul Dwyer
Wed Nov 26, 2003 10:27 am
Forum: Coding Questions
Topic: Need help converting 'trainer' to PureBasic
Replies: 25
Views: 10243

Fred,

My understanding is that C passes parameters by value and not by reference which is why you pass a pointer. You pass the value of the 32bit address. You can pass actual values on the stack too. One very common one is a constant. The windows API is full of thousands of such constants to be ...
by Paul Dwyer
Wed Nov 26, 2003 1:03 am
Forum: Coding Questions
Topic: Need help converting 'trainer' to PureBasic
Replies: 25
Views: 10243

Now I'm confused... 8O

Some Windows API functions (or Dlls) require you to send constants by value and not a pointer to that value. If you don't have the constants declared then you can just pass the value "ByVal 5" or something.

How would you handle this in PB?

Thanks
by Paul Dwyer
Tue Nov 25, 2003 4:48 am
Forum: Coding Questions
Topic: Need help converting 'trainer' to PureBasic
Replies: 25
Views: 10243

:?:

How do you pass ByVal in PB????

Is there a workaround? That will break a lot of code converted from other basics
by Paul Dwyer
Mon Nov 17, 2003 9:54 am
Forum: General Discussion
Topic: Console App: hiding password input text??
Replies: 6
Views: 2655

Thanks Seldon!

Plouf, Because it's a consol application not a windows application
by Paul Dwyer
Mon Nov 17, 2003 2:37 am
Forum: General Discussion
Topic: Threaded Server Question
Replies: 8
Views: 3144

Why stop at strings? :roll:
by Paul Dwyer
Mon Nov 17, 2003 2:17 am
Forum: General Discussion
Topic: Console App: hiding password input text??
Replies: 6
Views: 2655

Thanks!

That sort of points me in the right direction. I want people to be able to backspace so I'll have to catch that.

Is there a way to catch the current location of the cursor on the screen so I can decriment it and move it back a place. I know I can set it's location but if I don't know where ...