CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: alpha137

Page 1 of 4 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    681

    Hello Vita, thanks for your fast reply but I...

    Hello Vita,

    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()
  2. Replies
    3
    Views
    681

    Events of an aggregated object

    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...
  3. Replies
    0
    Views
    682

    COM aggregation for a composite control

    Hi,

    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...
  4. Replies
    10
    Views
    1,286

    Oh, really? I agree that your statement will run...

    Oh, really?
    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...
  5. Replies
    10
    Views
    1,286

    That's not possible: First - try to formulate...

    That's not possible:
    First - try to formulate the SQL commands. It will be something like
    begin transaction
    select max(...) from ...
    insert into values (..., ...)
    end transaction
    How to put the...
  6. Replies
    9
    Views
    5,848

    After creating the process call...

    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...
  7. Replies
    1
    Views
    637

    Use the GetPrinter function and retrieve an...

    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.
  8. Replies
    10
    Views
    1,286

    If you want to be database independent there is...

    If you want to be database independent there is no other way then creating a counter table in the database:

    create table my_counters (
    tablecode int,
    currentvalue int
    )

    Now insert a...
  9. Replies
    9
    Views
    1,060

    Hi, I can imagine that depending on your mask...

    Hi,

    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.
  10. See Microsoft Knowlegde base Q162159: "TREESCRL...

    See Microsoft Knowlegde base Q162159: "TREESCRL Scrolls in a Tree Control During Drag-and-Drop"
  11. Thread: Language

    by alpha137
    Replies
    5
    Views
    968

    Another solution is to call SetThreadLocale at...

    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...
  12. Replies
    2
    Views
    1,135

    Call CoInitialize[Ex] or OleInitialize at the...

    Call CoInitialize[Ex] or OleInitialize at the beginning of your _tmain (and CoUninitialize or OleUninitialize at the end).
  13. Replies
    8
    Views
    1,760

    I like to use a freeware XML parser and generator...

    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...
  14. Replies
    8
    Views
    1,760

    I'm quite sure that it is impossible to have a...

    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...
  15. Replies
    4
    Views
    1,821

    I actually don't know if and how the compiled...

    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...
  16. Replies
    6
    Views
    921

    The Windows SDK function to query locale settings...

    The Windows SDK function to query locale settings is GetLocaleInfo.
  17. Replies
    4
    Views
    1,821

    If you specify FORMAT_MESSAGE_FROM_HMODULE in the...

    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...
  18. I haven't downloaded the source code before so...

    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...
  19. To my opinion it is sufficient to have the...

    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...
  20. Well, there are a lot of those folks out there. ...

    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!...
  21. If you are using new to create an object the...

    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++)...
  22. Your code will work as long as you are taking...

    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?
    Why...
  23. The dialog will also show up in the taskbar when...

    The dialog will also show up in the taskbar when you apply the WS_EX_APPWINDOW style:



    void CMyProgramDlg::OnShow()
    {
    CMyDialog* pDlg = new CMyDialog;
    pDlg->Create(IDD_DIALOG1,...
  24. Thread: About ActiveX

    by alpha137
    Replies
    2
    Views
    714

    First you should state explicitly your parameters...

    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...
  25. Replies
    5
    Views
    1,425

    There is also a "error look up" tool which ships...

    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)...
Results 1 to 25 of 77
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured