<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mario's correct. The error message you receive about not being able to
find an ordinal in VTKCOMMON.DLL means that you are linked against the
shared lib/DLL build of VTK. You have to rebuild VTK with the CMake
setting BUILD_SHARED_LIBS set to OFF. Then you have to rebuild your
project with the same setting.<br>
<br>
You can use the dependency walker tool (depends.exe) to view what DLL's
and what exports your EXE depends on. You can download it from <a
 href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</a><br>
<br>
Hope this helps,<br>
David<br>
<br>
<br>
Mario Medved wrote:
<blockquote cite="mid20050411093530.365973625A2@gw.xlab.si" type="cite">
  <pre wrap="">Hi,

Your demo program clearly tries to load the DLLs at the beginning of the
execution and something goes wrong. I would recompile the VTK again using
the "STATIC LIB" option which will create static Borland lib files and you
will not need any DLLs, since you will include the libs directly in your
project. 

Bye,
Mario


-----Original Message-----
From: Wienand Drenth [<a class="moz-txt-link-freetext" href="mailto:w.drenth@chello.nl">mailto:w.drenth@chello.nl</a>] 
Sent: 9. april 2005 9:35
To: Mario Medved; <a class="moz-txt-link-abbreviated" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
Subject: Re: [vtkusers] vtk42 using with Borland 5 builder

Hi Mario,

As far as I know, I don't use any DLL's. But perhaps they are linked 
unnoticed? The error I get is a pop-up window, even before the form 
constructor is invoked. It says some like: cannot find ordinal 55?? in 
VTKCOMMON.DLL. Perhaps this does ring a bell?

I have tried to put some breakpoints, but the program terminates even 
before it enters some of my code. The sample project is just the 
standard Borland think you get when starting a new project. In my case I 
just made a form with a button, and when clicking that button that 
example should execute. I tried Dean's suggestion, and placed that dll 
in the .exe directory, but with no result. :(

Cheers,
Wienand



Mario Medved wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

 

    </pre>
    <blockquote type="cite">
      <pre wrap="">Thanks for the reply. I did it the way you described and somehow I 
managed to get the example code (with the Sphere) compiled!! 
   

      </pre>
    </blockquote>
    <pre wrap="">That is a very good start:)))


 

    </pre>
    <blockquote type="cite">
      <pre wrap="">quite happy about that. However, next I wanted to run the program but 
that was less sucessfull. I recieved some vague dll error.
   

      </pre>
    </blockquote>
    <pre wrap="">To the best of my knowledge, you do not need any DLLs, because the LIBS are
static, so all the code is contained in there. When you deliver the EXE,
    </pre>
  </blockquote>
  <pre wrap=""><!---->you
  </pre>
  <blockquote type="cite">
    <pre wrap="">do not need to deliver VTK dlls.

 

    </pre>
    <blockquote type="cite">
      <pre wrap="">Did I do something wrong with Cmake? For that I just used the default 
settings, and when Cmake finished I just typed 'make' and things started 
compiling. What could that dll error be related to?
   

      </pre>
    </blockquote>
    <pre wrap="">Can you give me more details about the error. You should pinpoint the line
in your code which causes the error (use breakpoints)?

 

    </pre>
    <blockquote type="cite">
      <pre wrap="">Thanks for your time!
   

      </pre>
    </blockquote>
    <pre wrap="">No problem!

Bye,
Mario


 

    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>


  </pre>
</blockquote>
</body>
</html>