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

missing TKRBep.dll in my own project

Ear MongHeng's picture

Hi friend,
I create my own project Open cascade with ms 2010. but when i run it,it has a error.

My code :

// ReadStepFile.cpp : Defines the entry point for the console application.

#include "stdafx.h"

Standard_Integer _tmain()
STEPControl_Reader reader;
IFSelect_ReturnStatus stat = reader.ReadFile("");

Standard_Integer sti = reader.NbRootsForTransfer();

return 0;

Error :

The program can't start because TKBRep.dll is missing from your computer. Try re installing the program to fix this problem.

Hans's picture

Look at my "workaround"-Thread. Should help you

Hans's picture

Ups, here is the URL http://www.opencascade.org/org/forum/thread_23705/?forum=4 :)

Ear MongHeng's picture

Hi my senior Hans
After i get your advise, i can resolve my problem and suddenly i find other solution. i just copy all *.dll file in casroot into C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin(my path).
one question what is difference of this step and your step.

thank you in advanced.

Hans's picture

This step was described in my thread, too :)

The difference: With the *.bat files you setup an environment for VisualStudio and the systems searches for the *.dlls required by your *.exe in this evironment-parts.

Without those bats it searches for the required *.dll in the system-environment and in the location-folder of your *.exe.

I hope my description is some kind of correct. This is how i understand it :)