• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 305
  • Last Modified:

[c++] is it possible to do this, but compile it mingw?

0
Troudeloup
Asked:
Troudeloup
  • 19
  • 14
  • 6
13 Solutions
 
jkrCommented:
http://savannah.gnu.org/projects/ocrad/ ("ORCAD") definitely will compile with MinGW, it is a GNU project and MinGW uses the GNU compiler.
0
 
TroudeloupAuthor Commented:
or GNU compiler, to be more precise
0
 
TroudeloupAuthor Commented:
i am trying to develop my own special purpose OCR,

so I am going one step at a time.
other people's project are nice, but I don't learn much by using them.

is it possible to do it with mingw?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
jkrCommented:
Technically: Yes. The problem is the amount of work you have to invest when building everything from scratch, but if you ask "Is it possible?" the answer is "Yes". The effort is another thing, however.
0
 
TroudeloupAuthor Commented:
actually I think I misunderstood this :

from

jaime_olivares:

Once you have captured the screen in a bitmap represented by a HBITMAP handler, and selected it into an HDC context, you can extract each pixel with the GDI's GetPixel function:
http://msdn2.microsoft.com/en-us/library/ms532282.aspx



if you are in a Windows environment, you can use these functions in any Windows C++ compiler with Windows SDK, not only Microsoft's.
If you want to do this for other operating system, like Linux, then the answer is totally different. Capturing technique is different and bitmap object is different.
0
 
TroudeloupAuthor Commented:
how do I use windows sdk with mingw?
0
 
jkrCommented:
That's why I suggested a GNU OCR framework. The purpose of frameworks is to encapsulate the OS-specific part, so you don't have to deal with that stuff but with a more abstract hi-level API or class library that looks the same on all platforms.
0
 
jkrCommented:
You will find the documentation regarding that at http://www.mingw.org/docs.shtml
0
 
TroudeloupAuthor Commented:
ok there are two leads:

windows SDK + mingw (is that right? )
gnu.ocr + mingw


0
 
TroudeloupAuthor Commented:
oh i wish jaime_olivares is still reading;

i wish i can get confirmation of this

windows SDK + mingw
0
 
TroudeloupAuthor Commented:
gun.ocrad has one member on the dev team and the software version of 0.10 ?


0
 
jkrCommented:
Yes, either you go with a library or directly with the Windows SDK, that's the two choices you have.
0
 
evilrixSenior Software Engineer (Avast)Commented:
JOOI: Why do you want to use gcc rather than VS if you still plan to use the Windows PDK? What do you hope to gain by doing this? If you want your code to be fully POSIX compliant you will need to forgo the wonders of the PDK in favor of POSIX functions. This would then severely limit what you can do unless you then use x-platform libraries (such as boost) to fill in the gaps.
0
 
TroudeloupAuthor Commented:
is windows SDK tied with visual studio?
0
 
TroudeloupAuthor Commented:
i am not sure if I can use windows sdk with gcc,
0
 
TroudeloupAuthor Commented:
Yes, either you go with a library or directly with the Windows SDK, that's the two choices you have


is it a comment on


windows SDK + mingw (is that right? )
gnu.ocr + mingw




or this

windows SDK + mingw

0
 
evilrixSenior Software Engineer (Avast)Commented:
>> is windows SDK tied with visual studio?
Strictly speaking no. You can download the SDK separate from the compiler.
0
 
TroudeloupAuthor Commented:
can you show me how to use windows SDK ?

first, what's the full name of the download?

I found thishttp://www.microsoft.com/downloads/results.aspx?pocId=C0037913-9E11-4A2D-8FD1-0BA441296CBC&freetext=windows%20sdk&DisplayLang=en
0
 
evilrixSenior Software Engineer (Avast)Commented:
>> can you show me how to use windows SDK ?
Um, it's big -- VERY BIG, that's not really possible here :)

Start from here: -
http://msdn2.microsoft.com/en-us/library/aa139672.aspx

All functions are documented here: -
http://msdn2.microsoft.com/en-us/library/aa139672.aspx
0
 
evilrixSenior Software Engineer (Avast)Commented:
>> first, what's the full name of the download?
You need to pick the correct download for your development platform. There is a PDK for each version of Windows -- including service packs!
0
 
jkrCommented:
>>is windows SDK tied with visual studio?

No, but MinGW is special, since the library format is incompatible.
0
 
evilrixSenior Software Engineer (Avast)Commented:
>>is sp1 sdk ok to use on sp2?

XPSP2 PSDK Full Download with Local Install

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm
0
 
evilrixSenior Software Engineer (Avast)Commented:
>> No, but MinGW is special, since the library format is incompatible.
Indeed. The ABI is different. You are better sticking to VS unless you have a real reason not to!
http://en.wikipedia.org/wiki/Application_binary_interface
0
 
TroudeloupAuthor Commented:
ok, i'd have to ask some other questions about gcc and Vs
0
 
evilrixSenior Software Engineer (Avast)Commented:
>> ok, i'd have to ask some other questions about gcc and Vs
ok :)
0
 
TroudeloupAuthor Commented:
oh another question:


if I download visual studio 2008 express , do I need to download windows sdk?
0
 
evilrixSenior Software Engineer (Avast)Commented:
Nope. I don't think so.
0
 
evilrixSenior Software Engineer (Avast)Commented:
Oh hold on, the Express edition -- maybe!
0
 
TroudeloupAuthor Commented:
can you suggust a small code that you know requires the sdk?

i ll try it on express
0
 
evilrixSenior Software Engineer (Avast)Commented:
0
 
TroudeloupAuthor Commented:
yeah, lol
0
 
evilrixSenior Software Engineer (Avast)Commented:
I just started installing it and it stated it was installing SDK headers!
0
 
TroudeloupAuthor Commented:
do you mean MSDN Express library for visual studio 2008?
0
 
evilrixSenior Software Engineer (Avast)Commented:
VS 2008 Express states it is installing SDK headers during install Try it and see, if it doesn't install SDK just download it.
0
 
TroudeloupAuthor Commented:
oh yeah I was at the 3 boxes at last post


now I read


Microsoft windows sdk for visual studio 2008 headers and libraries (x86)









0
 
evilrixSenior Software Engineer (Avast)Commented:
Indeed :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 19
  • 14
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now