For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

DrawText (and a few other things) ?

Anonymous's picture
Forums: 

Hi !

I noticed that you #undef DrawText on Windows, why ?, do you have any function in Open CASCADE that name clashes with this one ?.

Its no big deal, you just use DrawTextA() or DrawTextW() instead, but maybe you should put info about this in the README file or something.

The code for Open CASCADE is huge, my test application use 45 megs of ram, you compile it with "Maximize speed" option set, maybe you should consider using "Minimize size" instead, it does not have any big impact on speed, but with big projects like this one, it can make a big impact on code size, if you need the extra speed you could always put "Maximize speed" options on the files that need it, I think that it would at least be worth a try, I have not recompiled the libraries myself and tried it yet.

Note: I must say that I am very impressed by Open CASCADE it's a very, very flexible package with all kinds of goodies tucked in there, so thanks for making it open source.

Mikael

Stephane Routelous's picture

Hi !
> Hi !

> I noticed that you #undef DrawText on
> Windows, why ?, do you have any function in
> Open CASCADE that name clashes with this one
> ?.

The problem comes from the class WNT_WDriver. There is a method DrawText.

Stephane