Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: bodhi
  • Content: Threads
  • Order by date
  1. bodhi

    problem with iterated new operator

    Hi all, I'm writing a language file parsing utility and have a hit a brick wall using the new operator. I have a struct for keywords as follows : struct KEYWORDBIN { INT keywordindex; CHAR name[MAX_STR_SIZE]; BOOL iscasesensitive; COLOUR colour...
  2. bodhi

    Problem with dynamically allocating arrays.

    I'm writing a data parsing utility and am coming unstuck (spectacularly) when I try to parse a keyword set. I have a struct as follows for a keyword group : // Keyword Bin : struct KEYWORDBIN { INT keywordindex; CHAR name[MAX_STR_SIZE]; BOOL iscasesensitive; COLOUR colour...
  3. bodhi

    Geometry problem

    I am provided with two endpoints and the tangent to an endpoint (or both endpoints as the curve must be uniform). I need to draw a uniform curve (section of a perfect circle)from one endpoint to the other as a 4 node bezier curve (two anchors being the two endpoints and two handles determining...
  4. bodhi

    Throwing an exception within a destructor..

    Was reading the other night about SEH in 'official' C++ and it mentioned in the article that you should *never* throw an exception within a destructor. The explanation was vague at best and I was hoping that someone had come across this or could explain the dangers/problem... I'd never heard...
  5. bodhi

    General Syntax Highlighting queries

    I'm currently researching a basic syntax highlighter for preloaded files in an app. This doesn't need to be 'live' (as in a text editor) because the file will be loaded read-only. As I understand it from a SOTW the procedure for this is as follows : - Scan the file placing all tokens into a...
  6. bodhi

    CD Ejection - UNC/Networked computer.

    As part of an installation program I need control of the CD-Drive and in particular want to open it from software. This is fine on a local machine but, as best I can determine not possible on a networked machine. I've tried this with mmi where I mapped \\Server\Share to a drive letter and also...
  7. bodhi

    Font Size w/ Ownerdraw.

    I am trying to Ownerdraw menu's with icons etc... and have been stuck at this for ages. Having shunted it to one side for a while it's now crunch time and I need to see if this is doable. Unless I'm missing the obvious there seems to be no way to retrieve the current menu font details... I...
  8. bodhi

    Pretty Little Polynomial and Curly Pi.

    Just a joke story - The old ones are the best.... Pretty Little Polynomial and Curly Pi -------------------------------------- Wherein is related how that polygon of womanly virtue, young Polly Nomial(our heroine) is accosted by that notorious villain ** Curly Pi **, and factored (Oh horror!)...
  9. bodhi

    A useful side benefit of sprintf...

    This may be common knowledge but I only came across it the other day. The fact that sprintf, etc.. return the number of bytes can be fairly useful particularly in things like string parsing to keep track of your position. For example.. VOID MYCLASS::stringdecode (INT *b) { CHAR *iptr,*optr...
  10. bodhi

    Enabling a Child Window with a Disabled Parent......

    Hi all, I am writing a utility app which has a parent window and a child editbox window. For educational purposes I have written the whole thing from ground up. I have something like : class myparentclass { public: blah blah.... private: class EDITBOX *myeditbox; blah...
  11. bodhi

    2-dim array access problem - or maybe creation problem ;-)

    Hi all, I am trying to use a 2-dimensional array [x][y] in which I need to dynamically allocate the x-dimension. I have created the array as follows: ...blah blah....tmp assigned. x = tmp; #define MAX_LINE_LENGTH 500 char (*styledata)[MAX_LINE_LENGTH]; styledata = new char[x][MAX_LINE_LENGTH]...

Part and Inventory Search

Back
Top