digitalmars.D.learn - dll's
- lee (39/39) Jan 14 2007 I'm trying to write a short dll that exports a single function. I used
I'm trying to write a short dll that exports a single function. I used
followed the instructions given in the manual, and produced both a dll file
and a lib file. When I try to import the library into an application I get an
error, however: "The application failed to initialize properly...". I tried
copying the example given in the manual, and I still got the same error. I
then tried executing the dll example application provided in the sample
folder. This also produced the same error.
Attached are copies of the dll source code I'm using. If anyone has any advice
concerning the creation and use of dll's I'd appreciate it.
begin 644 dll_main_function.d
M+R\ =&AE(&9O;&QO=VEN9R!I<R!A;B!E>&%M<&QE(&EM<&QE;65N=&%T:6]N
M<RD-"D)/3TP 1&QL36%I;B`H2$E.4U1!3D-%(&A?:6YS=&%N8V4L(%5,3TY'
M(')E87-O;BP 3%!63TE$(')E<V5R=F5D*0T*>PT*"7-W:71C:"`H<F5A<V]N
M7VEN:70 *"D["0DO+R!I;FET:6%L:7IE(&=A<F)A9V4 8V]L;&5C=&]R. T*
M"0D)7VUI;FET(" I.PD)+R\ :6YI=&EA;&EZ92!M;V1U;&4 ;&ES=#H-" D)
M" D)"5]M;V1U;&55;FET5&5S=', *"D["2\O(')U;B!M;V1U;&4 =6YI="!T
M7U1(4D5!1%]!5%1!0T Z"2\O(&UU;'1I<&QE('1H<F5A9', 87)E(&YO="!S
`
end
begin 644 dll_exported_functions.d
M=6YC=&EO;B`H*0T*>PT*"7!R:6YT9B`H(F1L;"!F=6YC=&EO;B!C86QL960N
`
end
 Jan 14 2007








 
  
  
  lee <llee goucher.edu>
 lee <llee goucher.edu>