bitmap export
bitmap export
hi,
i am trying to export drawings to bitmap and used excustobjs as a reference but i am having trouble loading the winbitmap.gs module.
the following line executes ok but the pgsmodule pointer is null.
odgsmoduleptr pgsmodule = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"));
i have added all the odrx static module maps to my services class and added a reference to gs_winbitmap.lib.
i am using managed c++ and library version 2.06.8
what am i missing?
thanks
have you called init_static_module_map?
sergey slezkin
hi sergey,
thanks for the quick response.
i call odrx_init_static_module_map before calling odinitialize for my services class
i also have the following included..
odrx_declare_static_module_entry_point(bitmapmodul e);
odrx_begin_static_module_map()
odrx_define_static_appmodule(odstring("winbitmap.g s"), bitmapmodule)
odrx_end_static_module_map()
but as i say the call to odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs")) returns null
hi,
an update to my problem.
after digging around i worked out that loadmodule supresses the error unless setting the silent parameter to false.
i did so and found out i am getting a file not found error even if i specify the full path as below.
odgsmoduleptr pgsmodule;
try
{
pgsmodule = odrxdynamiclinker()->loadmodule(dd_t("c:\\winbitmap_2.06_8.gs"), false);
}
catch(oderror e)
{
odstring s = e.description(); // file not found error
}
any suggestions as to why it would do this?
thanks
bitmap export
hi,
i still have had no luck trying to find the cause of this issue but i need a solution.
no matter what i have tried the line
odgsmoduleptr pgs = odrxdynamiclinker()->loadmodule(dd_t("winbitmap.gs"), false);
returns a null pointer.
i am trying to write a .net dll in c++ that can be run from c#. the dll is a c# port that used ddx but due to speed and limitations needed to be re-written using the dd libraries. i have re-written nearly all the code with no other issues and need only to get this part working to finish the project
i have attached a simple mockup application that reproduces my problem.
please can someone have a look and let me know why this does not work..
i am using vs2005 sp1 and dd 2.6.8
thanks in advance for any assistance with this
attached files (20.8 kb, 4 views)
your problem may well be manifest related, like here:
you may also try to attach the same manifest to the main application.
vladimir
hi,
i had previously tried this approach but did it again anyway.
however this did not work ether.
it is running on winxp sp2 not 2003 server as was the issue in the other post.
i looked at the project you attached. you are using static libraries there. odrx_init_static_module_map call is present, but corresponding module declarations are not.
see e.g \examples\win\odamfcapp\odamfcapp.cpp (look for odrx_define_static_appmodule)
vladimir
hi vladimir,
thanks for looking,
the declarations are there in the cadservices.h file.
i had tried putting them in different files but it had no impact..
there is an error in therse declarations: odrx_define_static_appmodule(odstring(" ...
should be just odrx_define_static_appmodule(l" ...
that is - odstring cannot be used in declarations.
vladimir
thanks vladimir,
this now works....
quote:
originally posted by
will.ogden@changing-workplace.com
thanks vladimir,
this now works....
hi (sorry i did not know your name)
would you please give me the source to export bitmap?
i will be helpful for me because i am new to use oda library and can not understand the conversion process.
thanks billion times in advance for this help.
see \examples\excustobjs\cmd_bmpout.cpp - implementation of bmpout command.
sergey slezkin
hi sergey
thanks for your reply.
i have checked it but how can i create odedcommandcontext* pcmdctx?
thanks--
hi sergey
i can export dwg to bmp.
thanks--
last edited by
yamagata@ustage.net; 16th december 2008 at 11:15 pmfff">.