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...
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...
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...
I tried to define like this
#define AA "A" //AA a defined Value
TRACE("#%s#\n",AA); //result #A#
#define BB AA //BB as a temp storage of AA
TRACE("#%s=%s#\n", BB , AA );//#A=A#
#define AA "a" //new Value to AA
TRACE("#%s#(%s)#\n",AA , BB...
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("There are big problems, lucky guy");
}
e->Delete();
}
Does anyone have such an Idea?
(-...
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...
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...
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
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...
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("QualityList.m_n Count: %i",QualityList.m_nCount));
CString a;a.Format("Das ist ein Test %i",3)...
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...
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...
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
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){...
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 >>...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.