Re: open_dll prob

new topic     » goto parent     » topic index » view thread      » older message » newer message

------=_NextPart_000_002A_01BFFE0B.84DF8640
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

well...u dont want open() :)))
open() can purty much open ANY file, regardless, to be read in
and processed in a binary manner...
to open morfit.dll like you -want- to use it in this case requires
getting open_dll() functioning..

my first guess is that morfit.dll was not found...
perhaps it wasnt in the path, or the directories that
euphoria would normally search within while hunting
for a file to open as dll...=20

if memory serves, open_dll() and open() do NOT look=20
in the same places...

i seem to remember finding that out one day by
accident while working with win32lib and winsock.dll...

another reason open_dll() may have failed is a corrupt dll file...
or a dll file not in 'normal' expected format for opening...

i have seen dll's that had compression applied to them
with various utilities that claim there is no 'apparent' difference
to the dll as far as functionality, but yet the dll is 10% or more
smaller after using these exotic compression programs...
*cough* they dont work right *cough*

i would check to make sure open_dll() is firstly finding morfit.dll,
and then i would verify morfit.dll is not corrupted...

an error of 0 is not really descriptive enuff to help u much more then =
that :/

imho open and open_dll should return better error codes...
1 for success, 2 for not found, 3 for invalid format or unexpected =
format,
4 for file is corrupt, 5 for unexpected EOF, etc...0 just doesnt help =
much ;)

hopefully i have helped even a little ;) --Hawke'
  ----- Original Message -----=20
  From: =A9koda=20
  To: EUPHORIA at LISTSERV.MUOHIO.EDU=20
  Sent: Thursday, August 03, 2000 6:21 AM
  Subject: open_dll prob


  m3d_dll =3D open_dll("morfit.dll")

  tstest=3Dopen("morfit.dll","r")

  open_dll() returns 0, open() does open it! what's wrong? (it's in =
MorfitEU.ew)

  =20

  which 3d engine in euphoria is the best, the fastest? =
morfit,exotica,...?


------=_NextPart_000_002A_01BFFE0B.84DF8640
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>well...u dont want open() =
:)))</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>open() can purty much open ANY file, =
regardless, to=20
be read in</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and processed in a binary =
manner...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to open morfit.dll like you -want- to =
use it in=20
this case requires</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>getting open_dll() =
functioning..</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my first guess is that morfit.dll was =
not=20
found...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>perhaps it wasnt in the path, or the =
directories=20
that</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>euphoria would normally search within =
while=20
hunting</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for a file to open as dll... =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if memory serves, open_dll() =
</FONT><FONT=20
face=3DArial size=3D2>and open() do NOT look </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>in the same places...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i seem to remember finding that out one =
day=20
by</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>accident while working with win32lib =
and=20
winsock.dll...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>another reason open_dll() may have =
failed is a=20
corrupt dll file...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>or a dll file not in 'normal' expected =
format for=20
opening...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i have seen dll's that had compression =
applied to=20
them</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>with various utilities that claim there =
is no=20
'apparent' difference</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to the dll as far as functionality, but =
yet the dll=20
is 10% or more</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>smaller after using these exotic =
compression=20
programs...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*cough* they dont work right =
*cough*</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>i would check to make sure open_dll() =
is firstly=20
finding morfit.dll,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and then i would verify morfit.dll is =
not=20
corrupted...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>an error of 0 is not really descriptive =
enuff to=20
help u much more then that :/</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>imho open and open_dll should return =
better error=20
codes...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1 for success, 2 for not found, 3 for =
invalid=20
format or unexpected format,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>4 for file is corrupt, 5 for unexpected =
EOF,=20
etc...0 just doesnt help much ;)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>hopefully i have helped even a little =
;)=20
--Hawke'</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:tone.skoda at SIOL.NET" =
title=3Dtone.skoda at SIOL.NET>=A9koda</A>=20
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20
  title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, August 03, 2000 =
6:21=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> open_dll prob</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3D"Courier New" size=3D2>
  <P>m3d_dll =3D open_dll("morfit.dll")</P>
  <P>tstest=3Dopen(</FONT><FONT face=3D"Courier New"=20
  size=3D2>"morfit.dll","r")</FONT></P>
  <P><FONT face=3D"Courier New" size=3D2>open_dll() returns 0, open() =
does open it!=20
  what's wrong? (it's in MorfitEU.ew)</FONT></P>
  <P><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</P>
  <P><FONT face=3D"Courier New" size=3D2>which 3d engine in euphoria is =
the best,=20
  the fastest? =

------=_NextPart_000_002A_01BFFE0B.84DF8640--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu