Okay , that sounds complicated. Basically why i need it to store the output given out in a certain class is because i need to use it for cppunit testing later on. Basically, each class in my project will give out a certain output based on the document it reads
For example, classA gives an output of 333.
ClassB gives an output of 434.
what i was trying to do is to try to save this values in a way that when i write my cppunit, i can use it to check if it is equal to the hardcoded input.
here, the first operand has the side effect of calling getnextthingie and assigning the result to c. c!=EOF is evaluated as loop condition.
Personally, I love the idea that Raymond spends his nights posting bad regexs to mailing lists under the pseudonym of Jane Smith. He'd be like a super hero, only more nerdy and less useful. [Trevel] | FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server
I am using main "standard" property sheets for tabbed application.
I would like to have another property sheet embedded in the main tab(s).
I got as far as using CStatic variable in the page, but now I am stuck.
I tried this (snippet)
position = pDoc->GetFirstViewPosition();
COpenHRView *pOpenHR = (COpenHRView*) pDoc->GetNextView(position);
m_sstv.Detach(); // added this when Attach asserted – no go asserts
m_sstv.Attach(pOpenHR->m_pPropFrame1->GetSafeHwnd()); // asserts– attach only once
Thanks for reading. Any constructive help as always is appreciated.
But the Problem is, that I get the current size of my form with GetWindowRect(). If it has already been scaled to small, some of the form controls will not be shown...I need the height and width of my Form as I see it in the form Editor...
One way I could think is store your original dialog rectangle in some variable and use those values in InitDialog() Function. The other dirty way, you can check the the dialog box co-ordinates in .rc file. and set the Dialogbox rectangle to those value in InitDilaog fuction().
The easy answer is: you don't have to convert, just assign it. But it depends on your UNICODE setting. I suggest you read this article[^] to get a better understanding on character encodings. This will help you a lot in the future.