 |
|
12th July 2008, 22:16
|
#1
|
|
More fingers than teeth
Join Date: Jul 2005
Posts: 14,808
|
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.
|
|
|
12th July 2008, 22:27
|
#2
|
|
Lord of Ruin
Join Date: Jun 2007
Location: Shhhh!
Posts: 7,150
|
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
|
|
|
13th July 2008, 08:05
|
#3
|
|
doGlike
Join Date: Aug 2005
Location: On the rug licking my balls.
Posts: 9,984
|
Quote:
Originally Posted by zeitghost
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
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!
|
|
|
13th July 2008, 14:52
|
#4
|
|
Super poster
Join Date: Jun 2007
Location: Your local branch
Posts: 2,779
|
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?
|
|
|
13th July 2008, 20:59
|
#5
|
|
More fingers than teeth
Join Date: Jul 2005
Posts: 14,808
|
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. 
|
|
|
13th July 2008, 21:01
|
#6
|
|
More fingers than teeth
Join Date: Jul 2005
Posts: 14,808
|
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... 
|
|
|
13th July 2008, 23:19
|
#7
|
|
Lord of Ruin
Join Date: Jun 2007
Location: Shhhh!
Posts: 7,150
|
Quote:
Originally Posted by Churchill
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
|
|
|
14th July 2008, 05:06
|
#8
|
|
Super poster
Join Date: Jun 2007
Location: Your local branch
Posts: 2,779
|
Quote:
Originally Posted by zeitghost
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!
|
|
|
14th July 2008, 08:07
|
#9
|
|
More fingers than teeth
Join Date: Jul 2005
Posts: 14,808
|
I'll have to find a floppy disk first so I can transfer it... 
|
|
|
14th July 2008, 08:22
|
#10
|
|
Super poster
Join Date: Oct 2005
Posts: 4,164
|
Quote:
Originally Posted by zeitghost
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 06:40.
|  |
| Advertisers |
|
| 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
|
|