Hi Jim, Well maybe Im just dumb, but I found it a real nightmare... As Stephane says, its now quite an old application and (i reckon), its become quite bloated and somewhat convoluted (the include directory has various thousands of files). I didnt find it that intuitive, actually, I found that while it had some very sophisticated geometrical stuff in it (well the demo programs looked great!!!) it could be occasionally quite difficult to do some quite simple things. (Something as simple as text annotations to my graphics, for example, was something that I never got to look nice in the version that I used.) Actually I must admit that its a pretty impressive piece of code, but frankly you MAY be better off knocking up yr own library of classes to start using OpenGL, unless you really need to use the sophisticated geometry support that OPEN CASCASE has. Good Luck!!
carks
Posts
-
Open CASCADE -
The world is on fireis yr car a citroen? Dave
-
E-GreetingsWell yr rite of course its obviously more personal to write something on a card, unless yr like me and leave everything 'til the last minute, when snail mail woudnt arrive in time for christmas!! Thanks
-
E-GreetingsIm looking for entertaining, inventive E-Greetings? Anybody found anything really good yet? Cheers
-
MFC/C++ vs .NETThis is an interesting question for me too steve. Im in a very similar situation to you steve (in terms of the type of work I do), Im still writing in C++/MFC Visual Stidio Version 6, and I still havent been able to justify in my own mind, the change to .NET. Id be very interested to hear other opinions... Anybody? Cheers
-
The First TestAnybody know if there is live commentary of the cricket provided over the web (to foreign countries)? having read around a bit it seems that both the ABC and the BBC dont have rights to webcast their radio cricket commentary to other countries... Anyway, good luck to the australians!!! Cheers, Dave
-
All member variables contain same valueDifficult to say without seeing the code... Can you post it?
-
EditorGDay all, I was just thinking the other day hell im getting old! I still use Emacs, allmost in the same form as i used it when I started programming for money in 1984!!! Is there any consensus for what is the best C++ programmers editor around? Cheers Dave
-
Generic List and n-criteria sortingHi, I think that each "certain data type" must have a common base class, which could be as simple as class CBase { ... Constructor/Destructor... UINT m_type; // The class type. UINT GetType () { return m_type; }; }; Suppose you had various other classes CA, CB, CC, CD derived from CBase Then the comparison routine for the sort could switch in the following way int Compare( const void *e1, const void *e2 ) { // handle element e1 switch ( ((CBase *)e1)->GetType() ) { case TYPEA: CA *A = (CA *)e1; --- set some criteria based on CA info --- break; case ... etc. // handle element e2 switch ( ((CBase *)e2)->GetType() ) { case TYPEA: CA *A = (CA *)e1; --- set some criteria based on CA info --- break; case ... etc. // Now make the comparison based on information generated in the // last 2 steps. --- comparison code --- } Id be interested to hear if anybody can think of a more general/elegant way to do it! Cheers, Dave
-
crash on the end of release modeHi, ptrIdxName = m_csIdxFile.GetBuffer( L_tmpnam + 1 ); This line looks dangerous! L_tmpnam may not be initialized. which would assign an unpredictable amount of mem. in release mode. The memory pointed to by ptrIdxName might easily be corrupted by the "GetTempFileName" call on the next line... the problem might only manifest itself when the class destructor deallocates the memory at object destruction time. Why not try a simpler way of doing this instead of GetBuffer/ReleaseBuffer like... TCHAR filename[MAX_PATH]; GetTempFileName( ,,, filename ); m_csIdxFile = filename; Cheers, Dave
-
List of files in a directoryIf you use MFC you might look at CFileFind Cheers,
-
change entry point addressHi Spirit, First id like to declare that Ive never used the functions that you're using in this code snippet but here's my two bobs worth. 1) It looks like MapViewOfFile is returning NULL (which it does in case of error). (so pDosHeader->e_lfanew evaluates to 0x3c... sounds feasible?) 2) Reading to doco it looks like the "dwDesiredAccess" flag isnt "addable" (Ths do saye "This parameter can be one of the following values"). It also says that FILE_MAP_WRITE by iself gives RW access. Try playing with the MapViewOfFile args and check the returned value for NULL maybe Cheers
-
File Size LimitsYes thats it PJ! I am using VC6. (I guess its time to shell out for an upgrade!) Thanks so much for the help :)
-
File Size LimitsThat sounds something like whats happening, but does anybody know of any settable limmitations of this type that exist?
-
File Size LimitsIm trying to read a large text file with a CStdioFile object (the file's around 2.3 Gb, OS Windows XP, File System NTFS). After reading for a while an exception is thrown during a CStdioFile::ReadString call which says something like "Controler Invalid" I simplified the code so that its doing nothing more than loopìng around the ReadString call, and the error persists. Could there be an inherent limit on the size of a file readable using CStdioFile (I dont belive that 2.3 Gb is too big for NTFS ?!?) Thanks, Dave
-
Web Services from VC++ 6.0Hi All, Ive got a project which was developed in Visual C++ version 6.0. Now Ive got to make it access a web service to get data from a database... First of all im COMPLETELY ignorant on these matters, but i suppose we've all got to take the plunge sometime... I know that in the Visual Studio .NET version there are some tools to "automatically" generate the volumes of code required to do the web service method accessing stuff, but I dont want to change to .NET just to do this little thing! Is there a simple generalized web service accessing API which wraps all the crap required to access a web service into a few simple routines? Ive been looking around the net but im not convinced that Ive found the perfect solution. Thanks in advance for any pointers, Dave