hello Jon, sorry for my late reaction, Be Communities is many times unavailable for me (I did a post about that in another thread). Yes I did study your pages, thanks. they are very usefull. But the problem is not so much in the code itself.
At the moment, thanks to private message from Mark, and since I re-installed MicroStation in a more conventional path, it is getting better, so I'm heading right, I hope, and when I understand Everything I will report. regards, Jan Willem
I am getting confused on the convert to project? I did not build a project so there are no other files to send. Maybe if you start from a blank using the MDLProjectWizard you will have more luck. See the BDN blog for that tool.
Rgds,
Mark Anderson [Bentley]
mark anderson [Bentley]
Visit me at https://communities.bentley.com/communities/other_communities/bentley_innovation/default.aspx
Jan: How do you create a VStudio project after the makefile compiles? Maybe there is a mysterious setting that I didn't think of.
Have you looked at the web pages I mentioned previously?
Regards, Jon Summers LA Solutions
In answer to Mark Anderson:
hello Mark, thank you for your files. But I got those already, they are the original example. (which is from your hand, as I saw now, that is funny).
I can assure you: yes, it IS tough. It won't and it won't and it won't and it won't. I had followed the steps you are indicating: first, just using the makefile without VStudio. Yes, that compiles. Then turn this into a VStudio-project. There is the problem, it does not debug. Do I have an option wrong? I have the feeling that the dll does not contain debug-info for some reason, although I compile in debug-mode. Furthermore I have the settings "Debugger type: Native Only", "Debug Information Format: Program Database for Edit & Continue (/ZI)", "Optimization: Disabled (/Od)", "Run-time library: Multi-threaded Debug DLL (/MDd)"
The code is the mere cellexp-example (with only some experimental messageboxes added) and thus has the necessary code-conversions. The Programmer's Guide tells about them, but of course it doesn't tell how to go to VStudio, and there is my problem. How do YOU create a VStudio project after the makefile compiles?
I also tried to first start MicroStation and then attach to it, as you suggested, but that makes no difference.
Wouldn't it be possible to post the whole of the project, incl .sln and .vcproj ? Maybe there is a mysterious setting that I didn't think of. Or another VStudio-mdl-project.
Btw, and MicroStation crashes on this line:
mdlDialog_open (NULL, DIALOGID_CellExp); which may be an indication of the problem, it can't get the resources in the .ma or something.
thanks, Jan Willem
Thanks for answers Phil...
Regards...
DanPaul:May these examples be available for BDN members before next select update?
We had looked into that, but given the distinct possibility of something changing, backed off of the idea (at least for now).
DanPaul: I'm waiting for mselementfacet.h that is not public now... Will this be published?
I'm waiting for mselementfacet.h that is not public now...
Will this be published?
Yes i know, there is only comented out part that seems to use it
/* MstnColorMap colorMap[MAX_CMAPENTRIES]; IViewportP sampleVp = Bentley::Ustn::IViewManager::GetManager().GetFirstOpenView(); if (sampleVp) for (int indexColor =0;indexColor { colorMap[indexColor] = Bentley::Ustn::ISessionMgr::GetMasterDgnFile()->GetColorMap()[indexColor]; } colorMap [255] = sampleVp->GetBackgroundColor(); if (userPrefsP->extFlags.invertBackground) colorMap [255] = 0xffffff; */
I'm very interested in examples made using these classes... I'm waiting for mselementfacet.h that is not public now...
DanPaul: May these examples be available for BDN members before next select update?
CellExp looks similar to CellExplorer. The main difference is this:
#include <MicroStationAPI.h>
However, I don't see that it actually uses any of the MicroStationAPI.