高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】invalid input error in oddbgsmanagersetupactivelayoutvie
"invalid input" error in oddbgsmanager::setupactivelayoutvie
"invalid input" error in oddbgsmanager::setupactivelayoutviews()
hello,
when porting application that was using version 1.10 to upgrade to 2.1.0 to have the support of acad2007 files, i got an "invalid input" error when calling oddbgsmanager::setupactivelayoutviews() and setuplayoutviews(). i use a device derived from odgsbasevectorizedevice as well as a class to process the geometry derived from odgigeometrysimplifier. the "invalid input" error was trapped using oderror. i don't know what invalid input means (device not valid, database context not valid).
my application is similar to simpledevice and odvectorizeex example, in fact basically the same thing. i use odvectorizeex to compare code in case something changes from one version to another, this example build without error with the last library and setupactivelayoutviews is working well.
the only difference i see for now is that my app is a dll so im using the vc8md lib instead of vc8mt.
any help would be appreciated.
thanks
i fixed my probleme using odgsinitialize(). it works now.
|