[V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
Hi,this code work in V8 2004 and when i try to use it in V8i, microstation crash on the mdlDisplayPath_getInfoString.extern "C" DLLEXPORT char* GetInfoBulle(ElementId idElt){ ElementRef elemRef;...
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
seb:This code works in V8 2004 and when I try to use it in V8iWhat C++ tools did you use with MIcroStation V8 2004 Edition?What C++ tools do you use with MicroStation V8i?This table shows MicroStation...
View ArticleRe: Move view to second application window by macro / VBA
Hi,In the Mstn VBA help, take a look at ActiveModelReference.MasterUnit, ActiveModelReference.SubUnit,ActiveModelReference.SubUnitPerMasterUnit, ActiveSettings... --Robert
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
seb,I am surprised the compiler did not complain about this. Modify your 2nd and 3rd parameters from MSWChar* to MSWCharP and MSWCharCP respectively.e.g.LocateFunc_providePathDescription( DisplayPathP...
View Article[V8i C++] CReating a PopunMenu using IPopupMenuManager
I've got a class that implements IPopupMenuProvider, and now I want to add it as a provider: CMyPopupMenu *myMenuProvider = new CMyPopupMenu();IPopupMenuManager::GetManager().AddViewPopUpMenuProvider(...
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
What's the declaration of class CMyPopupMenu? I'm interested in inheritance, not its innards.
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
class CMyPopupMenu : IPopupMenuProvider{}
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
Bruce,What is the end goal to add a view popup or an edit popup menu? thanks,
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
I would like a ( I think ) a popup "edit" menu, with only the choices I need. I've experimented with an "EditAction" popup, but it contains too many unrelated entries. I thought maybe a view popup...
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
Bruce Reeves SRNS:class CMyPopupMenu : IPopupMenuProvider{ };The default class inheritance in C++ is private. The compiler message is correct. Try...class CMyPopupMenu : public IPopupMenuProvider{...
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
Jon Summers:[There's no reason to allocate memory dynamically for a string of known length. Why not write MSWChar chaineW [MAX_DISPLAYPATH_INFO_STRING];?If i write this, MS crash directly, it's the...
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
seb:If i write this, MS crash directlyWell, if you can't allocate a simple string then there's something badly wrong somewhere!How do you build your C++ project?Using bmake?Using Viz Studio?
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
It's a C++ dll with only extern "C" DLLEXPORT function (creating with bmake -a +dBUILD_USING_VS2008 makefile.mke)I call the function with a C# addin using [DllImport("libPourDotNet.dll")]...
View ArticleRe: [V8i mdl] MS crash when i try to use mdlDisplayPath_getInfoString function
The value of MAX_DISPLAYPATH_INFO_STRING in msdisplaypath.h is apparently wrong. It should be 4096 characters. Change your chaineW variable to be 4096 characters .HTH,KeithBTW, the example above leaks...
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
I tried your recommendation, with no better results:class CMyPopupMenu : public IPopupMenuProvider{};and I also tried:struct MyPopupTest : IPopupMenuProvider{...};static MyPopupTest myPopupTest;They...
View Article[v8i VBA] Reading Message Center Response to a Key-in
In a recent foray into RealDWG issues, I ended up with a session that was not set properly for the version of DWG opened. I needed a file to be opened with RealDWG 2012 but MicroStation was still in...
View ArticleRe: [v8i VBA] Reading Message Center Response to a Key-in
I already came up with a solution. Here it is:Sub checkRealDWGVersion() Dim RealDWGVersion As String Dim msgCenterResponseArray As Variant CadInputQueue.SendCommand ("Version")...
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
Bruce Reeves SRNS:I tried your recommendation, with no better results:class CMyPopupMenu : public IPopupMenuProvider{};But does eliminate the compiler message? What libraries do you link with?
View ArticleRe: [V8i C++] CReating a PopunMenu using IPopupMenuManager
Yes. the compiler doesn't complain with either approach (public IPopupMenuProvider or struct {} ). The problem is the linker. I'm linking...
View Article