
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Hey, Chris. Yeah, I figured that out about 5 minutes after I posted here. That's exactly what I did, and it works like a charm. Thanks for the response... Later, Chris Shaffer "Chris Zakrewsky" <[EMAIL PROTECTED]@ustation.se> wrote in message news:<[EMAIL PROTECTED]>... > Change > > > char *current_title; > > to > > char current_title[255]; > > HTH > /Chris Z. > > > "Chris Shaffer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hello, > > > > I'm writing an MDL app that adds some info to the main window title > > (project number). I've got the code in place that reads the project > > number from a config file, and I want to pre-pend it to the current > > title of the window. So, the title would end up being something like > > this: > > > > "ProjNo - FileName.dgn (2D - V8 DGN) - Microstation V8.1" > > > > Now, I'm trying to use the mdlWindow_titleGet() funciton, and it keeps > > failing (with a System Fault 5). Here is the relevant code: > > > > > > char *current_title; > > int bufferSize = 255; > > . > > .[other code here] > > . > > mdlWindow_titleGet(current_title, bufferSize, > > mdlDialog_overallTitleBarGet()); > > > > Any idea what I'm doing wrong? > > > > Thanks in advanced. > > > > Chris Shaffer > > Matrix Resources
| <-- __Chronological__ --> | <-- __Thread__ --> |