Click here to Skip to main content
15,914,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #include "everything.h" Pin
Mukkie7-Nov-01 9:30
Mukkie7-Nov-01 9:30 
Generalread the color Pin
6-Nov-01 8:58
suss6-Nov-01 8:58 
GeneralRe: read the color Pin
Nish Nishant6-Nov-01 9:08
sitebuilderNish Nishant6-Nov-01 9:08 
GeneralRe: read the color Pin
Christian Graus6-Nov-01 10:07
protectorChristian Graus6-Nov-01 10:07 
GeneralReboot windows 95 machines Pin
RobJones6-Nov-01 8:54
RobJones6-Nov-01 8:54 
GeneralRe: Reboot windows 95 machines Pin
Nish Nishant6-Nov-01 9:01
sitebuilderNish Nishant6-Nov-01 9:01 
GeneralRe: Reboot windows 95 machines Pin
RobJones6-Nov-01 9:06
RobJones6-Nov-01 9:06 
GeneralImage Acquisition Pin
Chambers6-Nov-01 7:15
Chambers6-Nov-01 7:15 
Hi all, I am back with yet another question (and its really bugging me!). I have successfully implemented some TWAIN support. That is, I can access the device drivers for the scanner etc. and select a device in the event of there being more than one. I can get the device session manager up too, from where I can get preview the picture etc. and I can actually get it to scan the area I want. However, when it comes to getting this image up onto the screen is where I`m having difficulty. I have looked at Rajiv's wrapper on this very web-site, and its really helped me get this far, however his code is very complicated (with v.few comments) when it comes to displaying the image on the screen, and completely differs from the way that I do it in my program. I create a DIBSection from the BITMAPINFO resource (which I can obtain in my program). However, when I try to create a DIBSECTION it returns a HBITMAP and there is merely a black rectangle(the same size and shape as the one I selected using the DSM after the preview). I have probably got the pointer to bits somewhere too amongst the void* I managed to obtain the BITMAPINFO from, but don`t know what I have to do to get at the right ones and get this blinking DIBSection of a scanned image going. Please help.

Cheers guys (for reading all that anyway)
Alan.Confused | :confused:

AEGC
GeneralRe: Image Acquisition Pin
Chris Losinger6-Nov-01 7:21
professionalChris Losinger6-Nov-01 7:21 
GeneralRe: Image Acquisition Pin
#realJSOP6-Nov-01 7:46
professional#realJSOP6-Nov-01 7:46 
GeneralRe: Image Acquisition Pin
Chambers7-Nov-01 2:25
Chambers7-Nov-01 2:25 
GeneralRe: Image Acquisition Pin
Chris Losinger7-Nov-01 2:49
professionalChris Losinger7-Nov-01 2:49 
GeneralRe: Image Acquisition Pin
Chambers7-Nov-01 5:00
Chambers7-Nov-01 5:00 
GeneralImage Color Management (ICM) Pin
6-Nov-01 7:03
suss6-Nov-01 7:03 
GeneralLog deletes in BoundsChecker Pin
peterchen6-Nov-01 7:00
peterchen6-Nov-01 7:00 
Generalsys/socket.h Pin
6-Nov-01 5:42
suss6-Nov-01 5:42 
GeneralRe: sys/socket.h Pin
Tim Smith6-Nov-01 6:22
Tim Smith6-Nov-01 6:22 
GeneralRe: sys/socket.h Pin
Anders Molin6-Nov-01 7:11
professionalAnders Molin6-Nov-01 7:11 
GeneralMessage from external app should: Open document and goto line # Pin
Steve Schaneville6-Nov-01 4:48
professionalSteve Schaneville6-Nov-01 4:48 
GeneralRe: Message from external app should: Open document and goto line # Pin
6-Nov-01 6:32
suss6-Nov-01 6:32 
GeneralRe: Message from external app should: Open document and goto line # Pin
Steve Schaneville6-Nov-01 6:56
professionalSteve Schaneville6-Nov-01 6:56 
GeneralRe: Message from external app should: Open document and goto line # Pin
Ben Burnett6-Nov-01 7:12
Ben Burnett6-Nov-01 7:12 
GeneralRepeat the song... (VFW.lib) Pin
Rickard Andersson206-Nov-01 4:31
Rickard Andersson206-Nov-01 4:31 
GeneralRe: Repeat the song... (VFW.lib) Pin
Rassman6-Nov-01 4:52
Rassman6-Nov-01 4:52 
GeneralRe: Repeat the song... (VFW.lib) Pin
Ben Burnett6-Nov-01 9:53
Ben Burnett6-Nov-01 9:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.