Re: Message: 4211476 : JTC x DLL

"w w" <[email protected]> Wed, 09 Apr 2003 08:52:19 -0300
Newsgroups gmane.comp.lib.jtc
Message-ID <[email protected]>
<html><div style=3D'background-color:'><DIV>
<P>Hi,</P>
<P>i) I have&nbsp;created the dll with proper compiler flags /MD. This is=
 Ok with flags =B4ORBACUS=B4 and <FONT face=3DArial>'JTCThread'.</FONT><B=
R><BR><FONT color=3D#000000 size=3D1><FONT size=3D3>ii) Warning occurrate=
 the "DLL" create:</FONT></FONT></P>
<P><FONT color=3D#000000 size=3D1><FONT face=3D"Geneva, Arial, Sans-serif=
" size=3D3>./src\Distrib.h(39) : warning C4275: non dll-interface class '=
JTCThread' used as base for dll-interface class 'Distrib'</FONT></P>
<P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>C:\Ooc\include\JTC/T=
hread.h(41) : see declaration of 'JTCThread'</FONT></P>
<P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>./src\Distrib.h(42) =
: warning C4251: 'orb' : class 'OB::ObjVar&lt;class CORBA::ORB&gt;' needs=
 to have dll-interface to be used by clients of class 'Distrib'</FONT></P=
>
<P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>iii) The execution "=
main" program&nbsp;use&nbsp;my "DLL". The program crashes after an access=
 violation.</FONT></P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>
<P>Have I forgotten something?</P></FONT>
<P><FONT face=3D"Geneva, Arial, Sans-serif" size=3D3>--------------------=
-------------------------------------------------------</P></FONT></FONT>=
</DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Philipp Stadler <[email protected]>
<DIV></DIV>&gt;To: "w w" <[email protected]>
<DIV></DIV>&gt;Subject: Re: [JTC-Users] Message: 4211476 : JTC x DLL=20
<DIV></DIV>&gt;Date: Wed, 09 Apr 2003 06:25:49 +0200=20
<DIV></DIV>&gt;=20
<DIV></DIV>&gt;Hi w w,=20
<DIV></DIV>&gt;=20
<DIV></DIV>&gt;as you see in the header of my mail this problem occured q=
uite a=20
<DIV></DIV>&gt;time ago... So don't accurately remember the solution, but=
 I think=20
<DIV></DIV>&gt;it was a problem concerning the creation of the JThreads D=
ll.=20
<DIV></DIV>&gt;=20
<DIV></DIV>&gt;My hints:=20
<DIV></DIV>&gt;i) Check that you have created the dll with proper compile=
r flags=20
<DIV></DIV>&gt;(/MD or /MDd - for the Debug version).=20
<DIV></DIV>&gt;=20
<DIV></DIV>&gt;ii) The JThread Dll is created by adding a .def file which=
 is=20
<DIV></DIV>&gt;created during compilation. This is accomplished by runnin=
g a perl=20
<DIV></DIV>&gt;script (\config\makedef.pl) on the dump of the import libr=
ary. This=20
<DIV></DIV>&gt;file shall be in the same directory as the import library.=
 Check=20
<DIV></DIV>&gt;that this file is created and use. It should look like:=20
<DIV></DIV>&gt;LIBRARY jtc200=20
<DIV></DIV>&gt;EXPORTS=20
<DIV></DIV>&gt; ?end@?$_Iosb@H@std@@2W4_Seekdir@12@B=20
<DIV></DIV>&gt; ?cur@?$_Iosb@H@std@@2W4_Seekdir@12@B=20
<DIV></DIV>&gt; ?beg@?$_Iosb@H@std@@2W4_Seekdir@12@B=20
<DIV></DIV>&gt; ?binary@?$_Iosb@H@std@@2W4_Openmode@12@B=20
<DIV></DIV>&gt; ?trunc@?$_Iosb@H@std@@2W4_Openmode@12@B=20
<DIV></DIV>&gt; ?app@?$_Iosb@H@std@@2W4_Openmode@12@B=20
<DIV></DIV>&gt; ?ate@?$_Iosb@H@std@@2W4_Openmode@12@B=20
<DIV></DIV>&gt; .....=20
<DIV></DIV>&gt;=20
<DIV></DIV>&gt;Best regards, Philipp=20
<DIV></DIV>
<DIV></DIV></div><br clear=3Dall><hr>MSN Messenger: converse com os seus =
amigos online.  <a href=3D"http://g.msn.com/8HMQBRBR/2746">Instale gr=E1t=
is. Clique aqui. </a> Get 2 months FREE*. </html>
_______________________________________________
JTC-Users Mailing List - [email protected]
http://www.orbacus.com/mailman/listinfo/jtc-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html