Contractor UK Bulletin Board  PayStream

Go Back   Contractor UK Bulletin Board > Contractor UK Forums > Technical
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 12th July 2008, 22:16   #1
zeitghost
More fingers than teeth
 
zeitghost's Avatar
 
Join Date: Jul 2005
Posts: 14,808
Default So I'm using this thingie called PSET...

in my Weather fax display program in VB3, see...

And it's setting pixels in a Picture thingie as part of my form...

Quite successfully, it shows the image much as I think it should...

However, it ain't writing it on the bitmap thingie in the Picture... it's doing it somewhere else...

So when I save the bitmap, there isn't one there, or if I've loaded a blank bitmap into the picture and attempted to write on it, then it saves a blank bitmap.

Confused of Gamma Centauri.

Things were much simpler with a 286, dos, MASM, and a hercules display.
zeitghost is offline   Reply With Quote
Old 12th July 2008, 22:27   #2
Diver
Lord of Ruin
 
Diver's Avatar
 
Join Date: Jun 2007
Location: Shhhh!
Posts: 7,150
Default

I have a book or two.

Using Visual Basic 5, with enterprise edition disk + Visual basic (5) in easy steps.

Where shall I post it ?
__________________
I'm not a Gynaecologist........But I'll have a look
Diver is offline   Reply With Quote
Old 13th July 2008, 08:05   #3
Churchill
doGlike
 
Churchill's Avatar
 
Join Date: Aug 2005
Location: On the rug licking my balls.
Posts: 9,984
Default

Quote:
Originally Posted by zeitghost View Post
in my Weather fax display program in VB3, see...

And it's setting pixels in a Picture thingie as part of my form...

Quite successfully, it shows the image much as I think it should...

However, it ain't writing it on the bitmap thingie in the Picture... it's doing it somewhere else...

So when I save the bitmap, there isn't one there, or if I've loaded a blank bitmap into the picture and attempted to write on it, then it saves a blank bitmap.

Confused of Gamma Centauri.

Things were much simpler with a 286, dos, MASM, and a hercules display.
Quote:
Originally Posted by Diver View Post
I have a book or two.

Using Visual Basic 5, with enterprise edition disk + Visual basic (5) in easy steps.

Where shall I post it ?
The clue was in the original post...

Anyway, back to the original question.

Are you constructing a "windows" bitmap?
__________________
A dog with his paw firmly up the of technology...

I'm a <censored> legend!

Paternus Deus, Humana Fraternitas...
All your oil are belong to my V8!

You understand a few of the words but when they're put together to construct a sentence, you're f**ked!
Churchill is offline   Reply With Quote
Old 13th July 2008, 14:52   #4
NickFitz
Super poster
 
NickFitz's Avatar
 
Join Date: Jun 2007
Location: Your local branch
Posts: 2,779
Default

Microsoft's MSDN Library, unsurprisingly, no longer has documentation for VB 3...

How are you attempting to save the image? Are you using the SavePicture statement?

If you are, and this is what's giving you the result you describe, perhaps you need to set the AutoRedraw property of the PictureBox to True?
NickFitz is offline   Reply With Quote
Old 13th July 2008, 20:59   #5
zeitghost
More fingers than teeth
 
zeitghost's Avatar
 
Join Date: Jul 2005
Posts: 14,808
Default

Yup.

Using SavePicture.

If I don't have anything loaded into the Picture, then it goes tits up with an error.

If I have a bitmap loaded, then it just saves it unchanged.

Tried the autoredraw thingie and it didn't do anything.

Ho hum.

I'm sure I'll get my head around it soon.

If I was writing it in VC++, then I'd expect to have created my very own DIB or something & be merrily setting pixels in that...

Ho hum. Squared.

I had a feeling that doing this sort of thing with VB was a bit outside the box...

It's ever so funny that the thing displays perfectly well, but it's not being written to the bitmap.
zeitghost is offline   Reply With Quote
Old 13th July 2008, 21:01   #6
zeitghost
More fingers than teeth
 
zeitghost's Avatar
 
Join Date: Jul 2005
Posts: 14,808
Default

P.S. I'm only using VB3 coz it happens to be on the junk machine in my project room.

I suppose I could load up something a bit more modern... except there's been dire warnings from the IT lot about sticking unaproved stuff on machines...
zeitghost is offline   Reply With Quote
Old 13th July 2008, 23:19   #7
Diver
Lord of Ruin
 
Diver's Avatar
 
Join Date: Jun 2007
Location: Shhhh!
Posts: 7,150
Default

Quote:
Originally Posted by Churchill View Post
The clue was in the original post...

Anyway, back to the original question.

Are you constructing a "windows" bitmap?
Maybe I should have read it?
__________________
I'm not a Gynaecologist........But I'll have a look
Diver is offline   Reply With Quote
Old 14th July 2008, 05:06   #8
NickFitz
Super poster
 
NickFitz's Avatar
 
Join Date: Jun 2007
Location: Your local branch
Posts: 2,779
Default

Quote:
Originally Posted by zeitghost View Post
Yup.

Using SavePicture.

If I don't have anything loaded into the Picture, then it goes tits up with an error.

If I have a bitmap loaded, then it just saves it unchanged.

Tried the autoredraw thingie and it didn't do anything.

Ho hum.

I'm sure I'll get my head around it soon.

If I was writing it in VC++, then I'd expect to have created my very own DIB or something & be merrily setting pixels in that...

Ho hum. Squared.

I had a feeling that doing this sort of thing with VB was a bit outside the box...

It's ever so funny that the thing displays perfectly well, but it's not being written to the bitmap.
Post some code!

We can't debug it if we can't see it

Oh hang on, isn't that the point of Visual BASIC - you can't see the code...

Notwithstanding, GIVE US CODE!
NickFitz is offline   Reply With Quote
Old 14th July 2008, 08:07   #9
zeitghost
More fingers than teeth
 
zeitghost's Avatar
 
Join Date: Jul 2005
Posts: 14,808
Default

I'll have to find a floppy disk first so I can transfer it...
zeitghost is offline   Reply With Quote
Old 14th July 2008, 08:22   #10
DaveB
Super poster
 
DaveB's Avatar
 
Join Date: Oct 2005
Posts: 4,164
Default

Quote:
Originally Posted by zeitghost View Post
I'll have to find a floppy disk first so I can transfer it...
White heat of technology and all that, eh ZG?
__________________
Sometimes the appropriate response to reality is to go insane.
- Philip K. Dick
DaveB is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:59.


Advertisers
PayStream

CUK Navigation

Contractor Alliance
Formed a new Ltd Co?

20% off business insurance
£10 off Bauer & Cottrell contract reviews
Find co-workers & client introductions

Increase your value to clients here

Fast Company Formation
Same day online company formation £75 + VAT

Form your Ltd Co Here

Contractor Services


 
Content Relevant URLs by vBSEO 2.4.0 © 2005, Crawlability, Inc.