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

    Problem using OpenMP and MPI at the same time

    I would like some advice on how to track down what seems to be a compiler bug in Microsoft Visual Studio (VS) 2008, but I am not sure. It could be something I could fix, but I have no idea how to approach it. I have a hybrid parallel code that uses both MPI, for control of tasks, and OpenMP...
  2. smithpd

    Limit on number of open files in Wiindows XP?

    Thanks again, Salem. Now the proper coding is crystal clear to me. To all: Danny Kalev of the Devx forum has answered the question of why the limit is 509. The real limit is 512. the other three files are stdin, stdout, and stderr. You can find the Devx thread here...
  3. smithpd

    Limit on number of open files in Wiindows XP?

    Salem, Thanks. I looked at the link for FOPEN_MAX and then I looked at <stdio.h> where it is defined. FOPEN_MAX is #defined as 20. How does that explain my being able to open 509? In fact, I do not include <stdio.h>. I do include <cstdlib>, <iostream>, and <fstream>. Are you aware of...
  4. smithpd

    Limit on number of open files in Wiindows XP?

    I have written code that opens a series of files, without closing any of them (for a while), and stores the handles in an array of fsteam* pointers. I've compiled and run the code using Microsoft Visual C++ .NET 2003 under Windows XP. The code is a console application that runs in a CMD...
  5. smithpd

    Missing C++ header files in Visual C++ 2003

    Thank you very much for pointing me in the right direction. I am surprised to be so old fashioned. I learned C++ about 6 years ago. We have a recent graduate working here who has not heard of these things. So, it looks like we need some new books. Well, onward and upward. :) I have an...
  6. smithpd

    Missing C++ header files in Visual C++ 2003

    I have been using Microsoft Visual C++ 6.0, and I just installed the .NET version, Visual C++ 2003. I converted a standard C/C++ console application from 6.0 to 2003 by opening the workspace file and accepting automatic conversion. Link and compile settings seem to be carried over. On...
  7. smithpd

    is vc++ program portable on linux? can i make it portable?

    Commonality of GUI is a major concern, as described above. There are also some minor differences with native C code and libraries. These need to be understood and bracketed out with #DEFINE and #IFDEF / #ENDIF directives. For example, 1. The formats of binary data stored in files may be...
  8. smithpd

    Multiple acounts: Win 2000 different users and In boxes

    Ah, yes. Thanks Alboy. I remember that now. My problem with that approach was that I wanted Administrator and myself (two different users) to share the same mailboxes, and the only convenient way I could find to do that was to select an option that stored the Eudora files in a specified...
  9. smithpd

    Multiple acounts: Win 2000 different users and In boxes

    This recent thread describes multiple accounts through the menu tools / personalities. thread13-24286 1 have used those personalities, but as I recall this method works only when one user has different mail servers he wants to check. All the messages get put into single In and Out boxes...
  10. smithpd

    reading single character from standard input stream

    Thanks, Ian. I was afraid of that from my test results. Does anyone know of another keyboard input library, preferably contained in standard C / C++? If not that, then something free. Maybe with source? I would like to run it on different platforms.
  11. smithpd

    reading single character from standard input stream

    I want to read a single character from the input stream and take immediate action when I do so. For example, char answer; cout << &quot;Type 'y' to continue&quot; << endl; answer = cin.get(); if (answer != 'y') return 0; // continue The problem is that when I use cin.get(), getchar()...
  12. smithpd

    simple casting question- Please help!

    Ha! I just noticed that my program is wrong owing to windows using little endian word format. The bytes of the int stored in temp are reversed. Oh well.:) Glad atoi worked.
  13. smithpd

    simple casting question- Please help!

    Oh, I see you are trying to interpret argv[]. That is easier -- just plain parsing. It is self-contained on the platform. Word length is not an issue. Just convert the sring to an int. No casting needed. #include <stdlib.h> tempint = atoi(temp); You must have an actual int stored in temp...
  14. smithpd

    simple casting question- Please help!

    char* is an address of a byte or byte array. That is, temp points to the first byte of an array of characters. temp, a pointer, cannot be cast into an int. If you happen to have an int stored in the first two or four bytes (sizeof(int)) of temp[], then you can convert the data with // casts...
  15. smithpd

    Binary Search speed-ups

    You can get faster search results if you organize your data differently, if that is an option for you. Things like trees and hash tables.
  16. smithpd

    A function that operates on different data types

    I am reading a disk file that has a header record that defines the data type of a data array that follow in the file. It could be char, short, or long. I look at the header and then malloc() storage for the following data, which returns a pointer to an array of the approprate data type (malloc...
  17. smithpd

    Adding libraries

    OK, I solved this problem.:) There is a C/C++ compiler option that controls which library is used: /ML Single threaded /MLd Single threaded debug /MD Multiple threaded /MDd Multiple threaded debug The /ML's are the default. I needed to change to the /MD's manually so that my part of...
  18. smithpd

    Adding libraries

    OK, I solved this problem.:) There is a C/C++ compiler option that controls which library is used: /ML Single threaded /MLd Single threaded debug /MD Multiple threaded /MDd Multiple threaded debug The /ML's are the default. I needed to change to the /MD's manually so that my part of...
  19. smithpd

    Adding libraries

    Further information: This same problem occurs in both debug and release mode. I have reduced it to two essential lines of code: #include &quot;fftw.h&quot; void main() { fftw_plan p=fftw_create_plan(64, FFTW_FORWARD, FFTW_ESTIMATE); } The typical linker error in release mode is...
  20. smithpd

    Adding libraries

    Hi Ttouch, Thanks for your reply. I am actually the one working on this problem. Cecilia was kind enough to post the question for me, as I was not registered yesterday. The library she mentioned, FFTW2st.lib, is a Win32-based library for Fast Fourier Transforms. Its header file, fftw.h...

Part and Inventory Search

Back
Top