Type: Posts; User:
... or just specify your main window as a parent for your child. :)
Any proof on that? My understanding is, any Office app is an out-of-proc COM server, so I would not expect any problem with this.
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
However my simple sample works fine with dll.
Office 2010: C:\Program Files (x86)\Microsoft Office\Office14\MSWORD.OLB
Your situation is not about where the error device is outputting to, but it's exactly about whether your code has an intention to write to it. Whatever the device really is, if you don't need to...
I would dare to disagree. :) It highly depends on the way how you design data types and interfaces. Please consider the plain C sample (monolithic, not a LIB or DLL) attached.
In a case like yours I always implement a sample app that basically tests what I doubt about.
You may yourself make sure that ShowWindow works as expected with regular overlapped window (frame...
Are you sure you use correct terms in regard to what you do and what you want?
First of all, your program does not compile.
Second thing, catType is a pointer, and your intention is evidently to compare not pointers but strings. So you have to use string comparison...
This is what I told you about, exactly it is: you have to redesign your call interfaces until unit testing becomes easy going and natural.
Man, it seems you don't listen. Not any code can be unit tested. If you can't mock the type you have to mock, you either change your code or switch to a smarter unit test framework.
Good questions, and I believe all of them should be directed to MS. :) What I said is just my in-mind how-it-would-be construct based on my many years of programming Windows, and I never saw this...
I don't get what you talk about. You test only what you test, you mock everything else. The framework you use ideally helps you to generate mocked interfaces. If it does not, you either find another...
So you have to put aside your current task and learn about basics of parsing strings (not char pointers) to numbers, floats in particular.
You should never guess, but always read error messages...
The PSN_SETACTIVE is sent by Property Sheet control. It seems the control re-sends the message in case it considers the previous message lost due to some reason. The lengthy operation (or Sleep) you...
Please see the attached sample that passes file handle to dll within the same process. The code does just fine:
EXE: last error 32
D:\Temp\87>net helpmsg 32...
To be sure the program is running as instructed you have to analyze your requirements and make a plan how you make sure not only about normal cases but error cases/input as well. Please don't get me...
Using Apache Bench for Simple Load Testing
What kind of assistance do you need with this?
Whatever framework you use you have to use types provided by the framework.
In case the framework's on-line documentation is not enough, you always may inspect samples the framework site provides....
There's no such ready to use control in Windows. So anyway you need to find some third party grid control, or make the custom one by yourself.
Edit Control Notifications do not include double click event. To catch one you have to subclass the control and provide your custom handler for WM_LBUTTONDBLCLK message.
CFileDialog is just a thin wrapper over GetOpenFileName. What's the problem to write a function that suits your needs? You do this every single day, don't you? :confused:
Click Here to Expand Forum to Full Width