View Full Version : cad2shape
Gerhard
29-03-2006, 06:17 PM
hallo
when I try to work with the vb-example code (Call CAD2Shape DLL Example), I always get this error message: "Unable to initialise DXF/DWG translation module". And the error number 182.
Can you please help me!?
GuthCAD Software Support
29-03-2006, 07:04 PM
Hello Gerhard,
Yes, it is a commonly encountered problem, probably we should display a more helpful error message. Anyway the answer ...
The DLL cannot locate the file ADINIT26.DAT. It expects ADINIT26.DAT to be in the same folder as your application. However in the VB development environment, because you are not actually running your compiled application exe, but the interpreted code, it looks in the wrong place. Three ways to solve it are:
1. Put a copy of ADINIT26.DAT in the VB directory.
or
2. Only run your compiled exe.
or
3. Call init_dwgconvert with the flag value 2, to tell the DLL where to find the ADINIT26.DAT file. E.g.
Flags = 2
lpParam = "c:\cad2shape"
RetVal = init_cad2shape(lpParam, Flags)
There is info. about it in the CAD2Shape user manual:
Developer Version DLL | Functions Reference | Error Codes
Developer Version DLL | Functions Reference | VB Development Note
best regards,
Paul G
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.