Click here to Skip to main content
15,907,687 members
Home / Discussions / COM
   

COM

 
QuestionIs COM controls compatible with .NET Pin
vimal_q10-Oct-07 21:26
vimal_q10-Oct-07 21:26 
AnswerRe: Is COM controls compatible with .NET Pin
CPallini10-Oct-07 21:57
mveCPallini10-Oct-07 21:57 
Questionstep by step COM use Pin
Shaileshvb10-Oct-07 21:03
Shaileshvb10-Oct-07 21:03 
AnswerRe: step by step COM use Pin
CPallini10-Oct-07 21:11
mveCPallini10-Oct-07 21:11 
QuestionHow to reset the Excel menu bar?! or delete a custom menu? Pin
akohan10-Oct-07 17:16
akohan10-Oct-07 17:16 
AnswerRe: How to reset the Excel menu bar?! or delete a custom menu? Pin
akohan11-Oct-07 7:33
akohan11-Oct-07 7:33 
QuestionGUID registration / unregistration Pin
cheekymuppet10-Oct-07 7:40
cheekymuppet10-Oct-07 7:40 
QuestionDocument imaging 12.0 OCR running error Pin
lalaBoss9-Oct-07 23:58
lalaBoss9-Oct-07 23:58 
Hi all
I need to OCR a picture box image, the image of the picture box is created by setting bitmap pixels:

Bitmap ^ bmpPenImage = gcnew Bitmap(siPenImageWidth, siPenImageHeight);

/* Here I use bmpPenImage->SetPixel(iBaseX,iBaseY,System::Drawing::Color::White);
   and bmpPenImage->SetPixel(iBaseX,iBaseY,System::Drawing::Color::Black); to set
   the image pixels according to some condition in a for */

pictureBox1->Image::set(bmpPenImage);
bmpPenImage->Save(L"savedImage.bmp",System::Drawing::Imaging::ImageFormat::MemoryBmp);

MODI::Document ^ aDocument = gcnew MODI::Document();
aDocument->Create(L"savedImage.bmp");
aDocument->OCR(MODI::MiLANGUAGES::miLANG_ENGLISH, true, true);
MODI::Image ^ anImage = (MODI::Image ^)aDocument->Images[0];
MODI::Layout ^ aLayout = anImage->Layout;
MODI::Word ^ aWord = (MODI::Word ^)aLayout->Words[0];
label1->Text = aWord->Text;
aDocument->Close(false);

As you can see i'm using a lame approach by saving the image and then reading it again in the lack of something else Frown | :( But this approach gives me the following runtime error:

COMException: OCR Running error

I would appreciate it if someone could help me with maybe a different approach? I can't find much info about document imaging 12. in Visual C++ 2005.

Thanks alot
AnswerRe: Document imaging 12.0 OCR running error Pin
lalaBoss11-Oct-07 11:52
lalaBoss11-Oct-07 11:52 
QuestionCOM Out of Process Servers Pin
Richard Andrew x649-Oct-07 11:46
professionalRichard Andrew x649-Oct-07 11:46 
AnswerRe: COM Out of Process Servers Pin
CPallini9-Oct-07 21:26
mveCPallini9-Oct-07 21:26 
QuestionRunning a thread in COM object Pin
kulile8-Oct-07 23:12
kulile8-Oct-07 23:12 
QuestionProblem with creating a component Pin
rajeev828-Oct-07 16:46
rajeev828-Oct-07 16:46 
AnswerRe: Problem with creating a component Pin
CPallini8-Oct-07 22:58
mveCPallini8-Oct-07 22:58 
GeneralRe: Problem with creating a component Pin
rajeev828-Oct-07 23:42
rajeev828-Oct-07 23:42 
GeneralRe: Problem with creating a component Pin
CPallini8-Oct-07 23:59
mveCPallini8-Oct-07 23:59 
GeneralRe: Problem with creating a component Pin
rajeev829-Oct-07 0:23
rajeev829-Oct-07 0:23 
GeneralRe: Problem with creating a component Pin
CPallini9-Oct-07 0:58
mveCPallini9-Oct-07 0:58 
GeneralRe: Problem with creating a component Pin
rajeev829-Oct-07 2:27
rajeev829-Oct-07 2:27 
GeneralRe: Problem with creating a component Pin
CPallini9-Oct-07 2:45
mveCPallini9-Oct-07 2:45 
GeneralRe: Problem with creating a component Pin
rajeev829-Oct-07 3:01
rajeev829-Oct-07 3:01 
Questioninterview questions Pin
neelu77794-Oct-07 21:45
neelu77794-Oct-07 21:45 
AnswerRe: interview questions Pin
Shaileshvb10-Oct-07 23:38
Shaileshvb10-Oct-07 23:38 
QuestionHow does ActiveX read and write cookie Pin
martinvan4-Oct-07 20:41
martinvan4-Oct-07 20:41 
QuestionLearning stage of COM Pin
Shaileshvb4-Oct-07 1:57
Shaileshvb4-Oct-07 1:57 

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.