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. amhunt

    Round up floating point numbers

    For positive numbers: double roundedResult,x=12.345; roundedResult= floor(x * 100.0 + 0.5) / 100.0; -mark-
  2. amhunt

    Help: Program function!

    A little more detail regarding the median. The median in the case of an even number of samples is the mean of the two middle samples. For example: The sample set: {1 ,4, 5, 6, 9, 21} has a median equal to: 5 + 6 (the two middle numbers) divided by 2 yielding the result of 5.5. You...
  3. amhunt

    Converting COFF library to OMF library

    After spending many hours researching this problem I discovered that unfortunately in my case it can't readily (or even close to readily) be done. I found 2 very good artiles at bcbdev.com written by Harold Howe that discuss the in's and out's of using VC++ dll's from BCB land. In particular...
  4. amhunt

    Graphs and arrays - do they work for beginners?

    Create a new application (I used Builder 4.0 for the following code.) Insert the following into the Unit1 header file (Unit1.h): int x,y; int xMin,xMax; int yMin,yMax; and int __fastcall scaleX(int x); int __fastcall scaleY(int y); void __fastcall drawHistogram(); as shown...
  5. amhunt

    Converting COFF library to OMF library

    I am in the unfortunate position of having to use a library (blix.lib) created by VC++ ver 6. This library is in "COFF" format and must be converted to OMF format in order for tlink to process it. Inprise provides a utility program (COFF2OMF.EXE) to do the conversion. It runs quietly...
  6. amhunt

    Execute an exe within a c++ app

    I use: if(WinExec(&quot;complete path to desiredProgram.exe&quot;, SW_SHOWNORMAL) < 32) { ShowMessage(&quot;I can't run: desiredProgram.exe&quot;); // Take whatever other failure action here } else { // Take whatever success action here } -mark-

Part and Inventory Search

Back
Top