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 SkipVought 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. jfmclemore

    exiting threads

    Pete's right - you have to be careful about what your thread is doing when you stop it. If your design allows you can end the thread from outside by calling PostThreadMessage using the thread ID obtained from the CreateThread and posting the WM_QUIT message. Good Luck. John
  2. jfmclemore

    Need least square function!

    I would use a least squares algorithm like the following that accepts vectors x and y (allows sample size variability). Assuming inputs std::vector<double> x, y: ..... if(x.size()!=y.size()) return; int i, j, k, l, exp, sz = x.size(); double tot, tot2, res, X[3][3], scratch[3][3], Y[3]...
  3. jfmclemore

    Curve fit libraries?

    I would use a least squares algorithm like the following that accepts vectors x and y (allows sample size variability). Assuming inputs std::vector<double> x, y: ..... if(x.size()!=y.size()) return; int i, j, k, l, exp, sz = x.size(); double tot, tot2, res, X[3][3], scratch[3][3], Y[3]...
  4. jfmclemore

    Difference between Debug and Release executable?

    Sometimes if optimization is used it can cause problems with certain code - Debug usually has optimization off. The first thing I do when I encounter this symptom is to turn off all optimization in Release build too and see if this resolves the issue. More info on the error would be helpful.
  5. jfmclemore

    executable name

    Would it be possible to: 1. Create an executable that took the file name(s) as a parameter and loaded that file. 2. Create a second executable that called the first, specifying the file(s) to load. If so you would have a lot of flexibility. You could, for instance, point the second executable...
  6. jfmclemore

    How can XLS files be used in VC++?

    Assuming you're using Visual Studio.NET: 1. Create the project with automation enabled 2. Right click on your project in the class view and select &quot;add class&quot; 3. Choose MFC class from TypeLib 4. You can then either select the library file or choose the library from the registry - I...

Part and Inventory Search

Back
Top