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 Mike Lewis 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. SeekerOfKnowledge

    Calling recvfrom() is failed... why?

    I think that the buff (second arg should be As ref ?) ====== SeekerOfKnowledge ======
  2. SeekerOfKnowledge

    Need a testing tool to change messages on the fly

    Hi Panasophic I would be grateful if you send the code to Baturlan@hotmail.com Thanx ====== SeekerOfKnowledge ======
  3. SeekerOfKnowledge

    Need a testing tool to change messages on the fly

    Hi all. I was asked to suggest a way to test the system I am working on by intercepting data being sent to it and then changing it in various ways, such as blocking the packets, multiplying them several times, and changing it's contents, all in regard to the packet internal identification (a...
  4. SeekerOfKnowledge

    Can I Get a report including version numbers ?

    I need to create a recursive report, starting at the Root Project and going down, of all files in the database, including Name, Last Check-IN time AND VERSION NUMBER. I have found no obvious way to do this via the VisualExplorer. Is there a way to accomplish this task through the command...
  5. SeekerOfKnowledge

    Simple questions again

    two answers : 2. std is a namespace, something like a pacjage in ADA (if you know this language). It is an area of code that encapsulates type definitions, variables, etc. You can omit the "std::" prefix by s "use" statement as follows: using namespace std; at the begining of...
  6. SeekerOfKnowledge

    Concurrent write to a file by multiple processes - How

    I am interseted in improving the performance of the current solution implemented : All processes that need to write data to the file (binary file, large quantities of data), write the records to shared memory, where the data is collected a-synchronousely by a special process that writes the...
  7. SeekerOfKnowledge

    get data type of variable

    MFC gives this ability for classes inheriting from CObject. I think you can implement this quite easily through templates yourself. the problem is that this does not apply to simple types such as an integer. ====== SeekerOfKnowledge ======
  8. SeekerOfKnowledge

    Debug & DLLs

    In the Post_Build of project A (Project Settings menu) add the copy command that copies the dll and it's .lib file to Projetc B's directory. Another alternative is to set the serach path for project B so that it points to A/Debug or A/Release, too. ====== SeekerOfKnowledge ======
  9. SeekerOfKnowledge

    System idle time

    Use either SetTimer for coarse time-measure (up to 55 msesc i think) or something like SetWaitableTimer for more precise and thread-oriented approach ====== SeekerOfKnowledge ======
  10. SeekerOfKnowledge

    System idle time

    It is possible to set a timer to signal you when no action (i.e. no keyboard input and no mouse move) has happened in a given time , and to re-set it each time such input arrives. That is the screen-saver way. Another question is to "know" when the system is idle. You can set the...
  11. SeekerOfKnowledge

    Finding closest CPoint to an array of random CPoint objects

    double MinDistance = sqrt((spt.y-CPoins[0].y)**2 + (spt.x-CPoins[0].x)**2); //this computes the distnace between the first // point in the array to the point the user eneterd // and initializes it as the MinDistance // now loop over all the rset of the points and //...
  12. SeekerOfKnowledge

    enums and output

    This is C++, not Ada, so you do not have String S = Color'Image(color); You can do it by preparing a static array of strings that corresponds to the string values of the enum type: string S[] = {&quot;Black&quot;,&quot;Red&quot;,&quot;Orange&quot;...}; and printing: cout << S[color]; This...
  13. SeekerOfKnowledge

    how do I change the backround color for dialog boxes?

    The above code will not the desired result. You need to : a - Return the brush in CTestDlg::OnCtlColor and not in CAboutDlg::OnCtlColor. b - check the nCtlColor parameter, that indicates which control asks for the brush to paint itself. You should check for the value that indiactes...
  14. SeekerOfKnowledge

    Templates, Classes and unresolved symbols

    I do not know exactly what the reason might be for this bug, but try to do the following : Put the implementation inside the class definition: template <class T> class Queue { public: Queue() {}; ~Queue() {}; void Display(int value){}; }; This might help.. Try to lose the typedef...
  15. SeekerOfKnowledge

    Templates, Classes and unresolved symbols

    Put the implementation of the template method in the cpp file, either after the class definition or inside it. This should solve the problem
  16. SeekerOfKnowledge

    I need help with setting a timer with MFC!!

    You can use any of a set of options: 1-use SetTimer and give the address of a callback function that performs the read 2- use SetWaitableTimer and wait on it, each time the timer is signalled, read what you need and return to wait (this must be in a separate thread) You can also use the...
  17. SeekerOfKnowledge

    writing an expression with #define

    First, I do not think you need to declare x as a variable. #define x(wal) cout<<wal and later int h; x(h); will output h to cout, no need to re-declare x. Second, the reason the variable x is inc'd twice is because the define uses text replacement and plants &quot;x++&quot; whenever...
  18. SeekerOfKnowledge

    Requesting Information about..

    I need information about Perfromance Analysis tools for AIX, profiling, monitoring, coverage, etc. Also, Testing tools, for ADA and for C++ in that environment that help in designing and running tests of all kinds: from unit tests to system tests. Can you direct me to suitable solutions ?
  19. SeekerOfKnowledge

    A general question about Win32 API EXE

    Yes and No. it won't need any MFC dll's, but it will need the Run-time libraries (i.e. MSVCRT*.lib,dll). I do not know about the setup routine, it depends where you want to deploy and what is the expected setup of those machines
  20. SeekerOfKnowledge

    '=' : left operand must be 1-value

    the message is &quot;l-value&quot; not &quot;1-value&quot; and it means that the left operand must be an entity that can receive a value, not a constant, token etc.

Part and Inventory Search

Back
Top