Type: Posts; User: alpha137
Search took 0.01 seconds.
January 17th, 2003, 06:08 AM
thanks for your fast reply but I don't understand.
To keep it small and simple I've tested it under VB:
Public WithEvents inner As InnerObject
Private Sub DoIt()
January 17th, 2003, 04:59 AM
Hi COM gurus,
here comes a nice question for you:
I've a simple COM object (named for example InnerObject) which fires events.
Now I'm aggregating this inner object in a second object (say...
January 14th, 2003, 12:23 PM
I need your help with the following problem, please:
I have a ATL composite control which hosts an ActiveX on its dialog. Now I want the composite control (the outer) to aggregate the...
December 25th, 2002, 01:37 PM
I agree that your statement will run against Microsoft databases (MS SQL Server, Access, ...). It may run against Oracle but I'm not sure. But I would be totally surprised if it would...
December 16th, 2002, 03:38 PM
That's not possible:
First - try to formulate the SQL commands. It will be something like
select max(...) from ...
insert into values (..., ...)
How to put the...
December 13th, 2002, 11:51 AM
After creating the process call WaitForSingleObject and pass the handle of the new process as first parameter.
WaitForSingleObject will block your current thread / will not return until the process...
December 13th, 2002, 11:46 AM
Use the GetPrinter function and retrieve an PRINTER_INFO_2 structure.
The pDevMode member of this structure will point to a DEVMODE structure that will give you access to various printer data.
December 13th, 2002, 11:33 AM
If you want to be database independent there is no other way then creating a counter table in the database:
create table my_counters (
Now insert a...
December 13th, 2002, 11:15 AM
I can imagine that depending on your mask FindFile and FindNextFile will find the "." and ".." directories, too.
As long as you have no special handling for these you will get an endless loop.
December 13th, 2002, 11:01 AM
See Microsoft Knowlegde base Q162159: "TREESCRL Scrolls in a Tree Control During Drag-and-Drop"
November 1st, 2002, 11:52 AM
Another solution is to call SetThreadLocale at application startup (for example in InitInstance).
This function sets the locale of your application / main thread to the language of your choice and...
October 24th, 2002, 04:47 PM
Call CoInitialize[Ex] or OleInitialize at the beginning of your _tmain (and CoUninitialize or OleUninitialize at the end).
October 24th, 2002, 03:27 PM
I like to use a freeware XML parser and generator named CMarkup (look at www.firstobject.com). It is a C++ implementation - very fast, easy to use and comes with some samples.
If you want to have...
October 23rd, 2002, 03:40 PM
I'm quite sure that it is impossible to have a variable number of arguments in COM the same way as in C/C++. va_list / the ellipsis is a C/C++ specific construct and COM is a binary standard which...
October 23rd, 2002, 04:02 AM
I actually don't know if and how the compiled format of a string table differs from the format of a message table. But I'm sure that these are at least different ressource types.
If you don't have...
October 22nd, 2002, 03:25 PM
The Windows SDK function to query locale settings is GetLocaleInfo.
October 22nd, 2002, 03:08 PM
If you specify FORMAT_MESSAGE_FROM_HMODULE in the dwFlags parameter then the FormatMessage function will scan the module specified in the second parameter lpSource for a message table ressource (a...
October 22nd, 2002, 02:39 PM
I haven't downloaded the source code before so now I'm a little bit puzzeled about the implementation of PostNcDestroy.
You needn't to find the dialog (which is finding "this"!) - you can optimize...
October 22nd, 2002, 02:50 AM
To my opinion it is sufficient to have the "delete this" on PostNcDestroy.
Your modeless dialogs will once be destroyed - either by explicitly calling DestroyWindow or when your main application...
October 20th, 2002, 04:19 AM
Well, there are a lot of those folks out there.
This reduces the number of the first group to only a few, ok? ;)
But now to your problem:
"delete this" in PostNcDestroy is absolutely perfect!...
October 19th, 2002, 10:56 AM
If you are using new to create an object the memory for this object is allocated on the heap and stays valid until you free this memory block.
So you code is:
for(int i = 0; i < 10; i++)...
October 19th, 2002, 05:07 AM
Your code will work as long as you are taking special care of what your a doing with the ITextHost interface pointer.
But my question is why are you taking the risk of running into a problem?
October 19th, 2002, 04:47 AM
The dialog will also show up in the taskbar when you apply the WS_EX_APPWINDOW style:
CMyDialog* pDlg = new CMyDialog;
October 19th, 2002, 04:32 AM
First you should state explicitly your parameters as out-parameters in the IDL:
HRESULT GetData([out] VARIANT* feature, [out] short* sof);
Then you should initialize the variant before...
October 14th, 2002, 04:39 PM
There is also a "error look up" tool which ships with Visual Studio (...\Microsoft Visual Studio\Common\Tools\errlook.exe) and appears usually in the Tools-menu.
Copy and paste (or drag and drop)...
Click Here to Expand Forum to Full Width