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

  • Users: AMosmann
  • Content: Threads
  • Order by date
  1. AMosmann

    Thread Programming

    Please don't send me to msdn, I tried this. Maybe my English is too bad, but I did not find the answers I looked for. I have a main thread, that starts a thread to read from file into an object, and another one, that displays the object, both of them should be killable from the main thread. I...
  2. AMosmann

    Error C1010

    Sorry, must be simple, but I do not know: What are possible reasons for Error C1010: Unexpected end of file while searching precompiled header? I used 2 empty files, let me say f.h and f.cpp, put it into project and wanted to rebuild it, and this error occurs. Why? What is the minimal text I...
  3. AMosmann

    list::iterator & const

    if I want to declare a copy-constructor or a operator= like X::X(const X &x); X &X::operator={const X &x}; x has a member std::list<AnyType>; if I do the following: X::X(const X &x){ std::list<AnyType>::iterator it=x.anylist.begin(); ... }; the compiler tells me: error C2679: binary...
  4. AMosmann

    I tried to define like this #def

    I tried to define like this #define AA &quot;A&quot; //AA a defined Value TRACE(&quot;#%s#\n&quot;,AA); //result #A# #define BB AA //BB as a temp storage of AA TRACE(&quot;#%s=%s#\n&quot;, BB , AA );//#A=A# #define AA &quot;a&quot; //new Value to AA TRACE(&quot;#%s#(%s)#\n&quot;,AA , BB...
  5. AMosmann

    howto catch access violation

    I look for a possibility to catch an access violation like try int *p; *p=1; catch (CWhatever *e) { if (e->m_cause==CWhatever::ecAccessViolation){ TRACE(&quot;There are big problems, lucky guy&quot;); } e->Delete(); } Does anyone have such an Idea? (-...
  6. AMosmann

    howto: Preprocessor Directives inside #define statements

    Hi, I want to write a #define-macro that, depending on other defines, TRACEs some text into a file. No way to find an explaining, how to use precompiler directives inside a #define- Macro. A define like #define ZTRACE(LEVEL,STRING) #ifndef TRACELEVEL #define TRACELEVEL 1 #endif gives an error...
  7. AMosmann

    howto: MACRO doesnt work

    Try to write a macro ZTRACE, that I would use instead of TRACE This Macro should, depending on TRACELEVEL and TRACEFILE of a paragraph, write the Information into a file. The file should be cloded after each writing. Background is, that in my Debug-Process I got to write some data, so that 200...
  8. AMosmann

    HowTo:open a form from another and read its members after closing

    Hi all, I work with VBA and ms access. I am looking for a possibility to start a dialog from another and after its closing (depending on the state of the buttons) to read its values. Sorry, I normal play MVC++ and Delphi, but in this field I am a beginner. Thank you [sunshine] Greetings Andreas
  9. AMosmann

    ACCESS ComboBox (Kombinationsfeld), HowTo Add Items

    Hi, I have to program some forms using standard controls. I work with Win2k and MS Office 2k The problem I have is not to find any function to add a line to the combobox (Kontrollfeld), there is no Add or AddItem- function. The microsoft help does everything but help. Ist this a special control...
  10. AMosmann

    MACRO: HowTo Where can I read about it?

    I want to write a macro that works like TRACE, but writing that strings in files. My problem is, that the (pre)compiler translates XTRACE(MACROHELPFILE,CString(&quot;QualityList.m_n Count: %i&quot;,QualityList.m_nCount)); CString a;a.Format(&quot;Das ist ein Test %i&quot;,3)...
  11. AMosmann

    MACRO: are there macros, that store function-names etc.?

    I want to test a big block of functions. For that I decided to write a MACRO called XTRACE, that will show a string (like TRACE). The problem in TRACE is, that it only will show 200 lines. this XTRACE should show the time when it is called, the Function from where it is called, a string and...
  12. AMosmann

    howto pointer to an array of char [roll2]

    please tell me: How can I define a pointer to an array of MyType, how to define an array of Pointer to MyType, how to define a pointer to an array of pointer to MyType and how to allocate memory for all this? //pointer to array of MyType MyType *(MyVars[]) MyVar = ((MyType *)[]) new...
  13. AMosmann

    howto: private classes in classes

    How can I declare a private class in another class, f.e. class clo{ private: class cli{ long mi; } cli i1; ... void f(cli *x); } clo::f(cli *x){ x.mi=0815; } Greetings Andreas
  14. AMosmann

    howto create private classes

    I want to built a private class in another class like class CBigBrother{ class CPocketOfBigBrother{ CPen Pen1,Pen2; } Write(CPocketOfBigBrother PocketLocal); CPocketOfBigBrother Pocket; } CBigBrother::Write(CPocketOfBigBrother PocketLocal){ if (PocketLocal.Pen1.Color==red){...
  15. AMosmann

    the mystery of streams

    Can anyone give me a way how to use streams? I program MVC++ for 2 month, used streams from time to time but: sometimes the compiler doesnt find the functions (no matching overlad ...) seems it depends on the sequence of the includes now I try to use >> operator with strings like stream >>...
  16. AMosmann

    how can I downsize a buffer? memcpy-Problems

    Hi, I tried to downsize a buffer by copying the interesting content it to another, kill the first and set the pointer to the new buffer, something like MyClass (*)instance[]; void *p; p=new MyClass[CorrectSize]; memcpy (p, instance, CorrectSize); //up to now it works as I like it, the debugger...
  17. AMosmann

    Thread-Programming

    I tried to use the following: UINT XX::YY(LPVOID pParam) UINT TestThread(LPVOID pParam) ... CWinThread *pThread=::AfxBeginThread(XX::YY, GetSafeHwnd(),THREAD_PRIORITY_NORMAL); CWinThread *test=AfxBeginThread(TestThread,GetSafeHwnd(),THREAD_PRIORITY_NORMAL); the second version starts, the...

Part and Inventory Search

Back
Top