certain files can't be located
certain files can't be located
hello
i am trying to upgrade an application to work with 2.5.1 and i am examining my dsp file in a text editor. my other application is now compiling ok but this application seems to refer to additional files:
..\..\dwgdirect110\exservices\exgienhancedmetafile .cpp
..\..\dwgdirect110\exrender\exgsgdidevice.cpp
..\..\dwgdirect110\exservices\exodstorage.cpp
i appreciate this is a big leap, but my 1.14 application did not have these problems when migrating. i have tried to locate these files or comments about them in the forum / chm file but nothing came up.
can some one clarify how this aspect in dwgdirect has changed? hat are the new files to include and direct me to the right help topics for any code changes i might have to make? thank you.
update:
i located this information in the 1.14 help file:
"exgienhancedmetafile.cpp and exodstorage.cpp in examples/exservices/ are no longer needed in client applications. these source files should be removed from client projects. ole support is now available in a separate library/dll (see below), and metafile support has been incorporated into the windows gdi and opengl devices. "
so i removed the two cpp files. i also removed the other cpp file but it has ramifications. now my application doesn't compile. i get these build errors to begin with:
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(235) : error c2146: syntax error : missing ';' before identifier 'getdevicepalette'
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(235) : error c2501: 'odgspalette' : missing storage-class or type specifiers
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(238) : warning c4183: 'getdevicepalette': member function definition looks like a ctor, but name does not match enclosing class
..\..\dwgdirect251\extensions\exrender\win\exgsbit mapdevice.h(393) : see reference to class template instantiation 'exgsbitmapdevice<t>' being compiled
c:\my programs\seq2dwg dwg direct 251\seq2dwg.cpp(8) : fatal error c1083: cannot open include file: 'exgsgdidevice.h': no such file or directory
last edited by
andrew.truckle@cartosurveys.co.uk; 5th february 2008 at 11:15 pmfff">.
another update
i removed some headers and code from my application:
// this will generate a bitmap preview for us using dwg direct.
odgsdeviceptr cseq2dwgapp::gsbitmapdevice()
{
odgsdeviceptr pdevice;
pdevice = exgsbitmapdevice<exgsgdidevice>::createobject();
return pdevice;
}
now it compiles, but ofcourse i now don't have this bitmap preview code anymore. please advise what libraries/headers/code i require to support this with 2.5.1. thank you.
look at codamfcappapp::gsbitmapdevice().
it uses odgsmodule::createbitmapdevice()
sergey slezkin
yes, i noticed that. i did get further by looking at odwriteex ....
but i can't get it compile.
what do i need for this method being present to compile? i added a #include for <gs.h> what else? at the moment i get thes ecompile errors:
--------------------configuration: seq2dwg - win32 debug--------------------
linking...
exgswin32device.obj : error lnk2001: unresolved external symbol "public: __thiscall odcommondeviceprops:

dcommondeviceprops(void)" (??0odcommondeviceprops@@qae@xz)
exgswin32device.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odcommondeviceprops::generatepropmap(class odrxdictionary *)const " (?generatepropmap@odcommondeviceprops@@ubexpavodrx dictionary@@@z)
exgswin32device.obj : error lnk2001: unresolved external symbol "public: virtual __thiscall odcommondeviceprops::~odcommondeviceprops(void)" (??1odcommondeviceprops@@uae@xz)
debug/seq2dwg.exe : fatal error lnk1120: 3 unresolved externals
error executing link.exe.
seq2dwg.exe - 4 error(s), 0 warning(s)
last edited by
andrew.truckle@cartosurveys.co.uk; 6th february 2008 at 04:58 amfff">.
i was missing the gs_wingdi.lib file in my debug project. now it compiles.
but it won't let me debug and says that jit needs to be enabled?