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 strongm 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: *

  1. bNasty

    serialization

    VCL classes are derived from TPersistent class - providing means of serializing objects. Probably not exactly the same thing as in VC++, but should be appropriate.
  2. bNasty

    Self-deleting

    You can not delete .exe file if that app is running, because Windows is using Memory-mapped files when executing apps, which means that .exe file is always open and never copied into RAM completly.
  3. bNasty

    Confuse!! C++ is not for windows based program

    >>What is the difference between C++ and C++ Builder? USE C++ BUILDER! You'll make your life easier when working on Win app. C++ Builder is a C++ compiler like any other, but with some language extensions to enable RAD. Essentially, it looks and works just like Delphi, but you write your code...
  4. bNasty

    GUI for DOS

    Huh, first thing that comes to my mind, try Borland's TurboVision. It has all the GUI elements you'll need and is object-oriented (almost ;) I don't know where to get it now, but it was shipped along with BorlandC++ V3.1 as far as I remember...
  5. bNasty

    cannot create pre-compiled; code in header

    Everything is just fine with precompiled-headers! :) And it speeds-up compiling significatnly! All you have to do is to : - include system header files above #pragma hdrstop - include your header files (frequently changed) below #pragma hdrstop and it should be fine!
  6. bNasty

    convert 4 bytes to IEEE-754 float

    If I undestood your problem correctly, there should be no problem if data layout in memory is correct. For example : BYTE bFloatData[4]; float fValue = *((float *)bFloatData);
  7. bNasty

    cannot create pre-compiled; code in header

    After you finish with editing "student.h" file, put it above #pragma hdrstop directive
  8. bNasty

    c++ builder and directx 9

    As for books : check Amazon. Very good DX9 books have been released recently. Don't worry about MSC++ - oriented coverage, it is the same thing as in BC++, you won't have any problems reading them
  9. bNasty

    algorithm needed

    Two sugestions : 1. While loading, store numbers in sorted array (or list) and use binary-search to find duplicates. It will reduce time significantly. or 2. If the range is not too high, use a separate bit-string structure for fast lookup
  10. bNasty

    Long vs INT variables

    By standard, long is always 32-bits! Int can have any size, it's machine-dependantbut, but nowadays on a PC is usually also 32-bits.
  11. bNasty

    Recursion and stack overflow

    If you are using fill-algorithm, consider something more efficient. My advice : A* without heuristics. The fastest possible and no recursion!
  12. bNasty

    Windows programming & Bloodshed C++

    DevC++ is not RAD tool. So, you can do two things : write pure WinAPI apps, or download and use some of GUI libraries. Check the Google, there are loads of them (FLTK comes to mind...)
  13. bNasty

    Borland memory manager bugs???

    Essentialy, the size shouldn't matter, since app was crashing inside Borlandmm.dll! That's just unacceptable! Memory manager must allocate me one byte if I ask for! But anyway, I got around the problem by overriding global new/delete operator and using LocalAlloc() inside it. It works just fine...
  14. bNasty

    Borland memory manager bugs???

    Hello, I have a very strange crash in BCB. My app is allocating big number of small objects (using 'new'), but suddenly, it started crashing in Borlandmm.dll! Surely, there is a plenty of memory, and, anyway, it shouldn't crash, but it does and I can't do anything about it! Does anyone know of...
  15. bNasty

    Using Microsoft C++ 6.0 for DOS based program??

    How about using old BorlandC++ as a compiler by making your project of "MAKE" type, and in your .make file override MS compiler and use old Borland stuff? Just a guess, haven't tried it, but some other APIs (like Mophun) are using the same approach - separate compiler/linker through...
  16. bNasty

    NEWBIE QUESTION ABOUT C/C++

    For Windows, BloodShed Dev-C++ is pretty good one! Full IDE + compiler. And it's free... Btw, it says "C++", but every C++ compiler can compile pure-C code.
  17. bNasty

    displaying data

    papar->Add(AnsiString("Data[")+IntToStr(a)+"]["+IntToStr(b)+"]="+AnsiString(Data[a][b]));
  18. bNasty

    can't link program where my own templates are used

    Try to do this : if all of the code for template classes is not already in the class itself, instead of writing template code in .cpp file, put it in e.g. ".inl" file (inline). Then at the end of your template-header file put #inlude "Array.inl". Do it for every header file...
  19. bNasty

    Alpha blending

    You need to retrieve Windows version. In Builder, it's a global "int Win32Platform" variable. If it's VER_PLATFORM_WIN32_NT, than it's an NT derivative, usually 2000/XP nowadays. For more detailed info look at the Win32API help on this subject.
  20. bNasty

    How to execute an application in custom screen resolution?

    Find a sample for initializing full-screen OpenGL application. All the steps you need to perform are in there.

Part and Inventory Search

Back
Top