Click here to Skip to main content
16,005,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can anybody tell me the way of getting this answer Pin
Don Box15-Jan-08 20:00
Don Box15-Jan-08 20:00 
AnswerRe: Can anybody tell me the way of getting this answer Pin
David Crow16-Jan-08 2:50
David Crow16-Jan-08 2:50 
GeneralDialog in Dll Pin
narayanagvs15-Jan-08 18:41
narayanagvs15-Jan-08 18:41 
GeneralRe: Dialog in Dll Pin
_AnsHUMAN_ 15-Jan-08 18:56
_AnsHUMAN_ 15-Jan-08 18:56 
Generalproblem with IHTMLDocument2::write() Pin
Shino C G15-Jan-08 17:32
Shino C G15-Jan-08 17:32 
QuestionMFC VC6 SDI Containing RichEdit50W? Pin
Kyudos15-Jan-08 11:49
Kyudos15-Jan-08 11:49 
AnswerRe: MFC VC6 SDI Containing RichEdit50W? Pin
Kyudos15-Jan-08 13:08
Kyudos15-Jan-08 13:08 
GeneralHelp in MFC Application-SDI Pin
Eyungwah15-Jan-08 10:27
Eyungwah15-Jan-08 10:27 
Hello All:

I have some hardware with given .DLL & .H files. I have created an MFC Application with Single Document Interface that have the following drop-down as follow.
File
-Regester.
-Write Register.
My goal in to have the CView display what is On the Register when select -Register or -Write Register.

Could someone please help direct me to the right path??

Here is the Header contains:

#include <string>

#ifdef BUILD_SCANPORT_DLL
#define DLLEXPORT2 __declspec(dllexport)
#else
#define DLLEXPORT2 __declspec(dllimport)
#endif

#define SETBIT 1
#define CLRBIT 0
#define CSR0 0x00 //scanner register locations
#define CSR1 0x01

DLLEXPORT2 int readreg(int reg); //some prototypes
DLLEXPORT2 void writereg(int reg, int value);
DLLEXPORT2 void writebit(int reg, int value, bool clear);
DLLEXPORT2 int checkwarmup();
DLLEXPORT2 float checkbattery();

typedef enum ScanStatus {
SCAN_OK,
SCAN_FAIL_FILE_ERROR,
SCAN_FAIL_USB_OPEN_ERROR,
SCAN_FAIL_USB_XFER_ERROR
};

DLLEXPORT2 ScanStatus scanport(bool doClean, bool doSharpen, const char* outFile);

Thanks in advance for your help

Eyungwah
GeneralRe: Help in MFC Application-SDI Pin
Iain Clarke, Warrior Programmer15-Jan-08 21:55
Iain Clarke, Warrior Programmer15-Jan-08 21:55 
GeneralWindoze beep is driving me crazy - please help me! Pin
Vaclav_15-Jan-08 8:25
Vaclav_15-Jan-08 8:25 
GeneralRe: Windoze beep is driving me crazy - please help me! Pin
Mark Salsbery15-Jan-08 8:27
Mark Salsbery15-Jan-08 8:27 
GeneralRe: Windoze beep is driving me crazy - please help me! Pin
Vaclav_15-Jan-08 8:33
Vaclav_15-Jan-08 8:33 
JokeRe: Windoze beep is driving me crazy - please help me! Pin
Iain Clarke, Warrior Programmer16-Jan-08 0:14
Iain Clarke, Warrior Programmer16-Jan-08 0:14 
General[Partially solved] Windoze beep is driving me crazy - please help me! Pin
Vaclav_16-Jan-08 9:03
Vaclav_16-Jan-08 9:03 
GeneralPaint on non client area of a window Pin
Miss_F15-Jan-08 6:05
Miss_F15-Jan-08 6:05 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 6:26
Mark Salsbery15-Jan-08 6:26 
GeneralRe: Paint on non client area of a window Pin
Miss_F15-Jan-08 6:40
Miss_F15-Jan-08 6:40 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 6:54
Mark Salsbery15-Jan-08 6:54 
GeneralRe: Paint on non client area of a window Pin
led mike15-Jan-08 8:06
led mike15-Jan-08 8:06 
GeneralRe: Paint on non client area of a window Pin
Mark Salsbery15-Jan-08 8:25
Mark Salsbery15-Jan-08 8:25 
GeneralRe: Paint on non client area of a window Pin
led mike15-Jan-08 8:51
led mike15-Jan-08 8:51 
GeneralRe: Paint on non client area of a window Pin
Miss_F15-Jan-08 8:34
Miss_F15-Jan-08 8:34 
GeneralRe: Paint on non client area of a window Pin
Maximilien15-Jan-08 9:45
Maximilien15-Jan-08 9:45 
GeneralHack two awesome window management apps together? Mouse/Window movement stuff inside Pin
Dee Olutayo15-Jan-08 5:27
Dee Olutayo15-Jan-08 5:27 
Questionprogrammer Pin
razi_Seyyedi15-Jan-08 5:11
razi_Seyyedi15-Jan-08 5:11 

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.