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

Search:

Type: Posts; User: Johndc

Search: Search took 0.03 seconds.

  1. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    I guess I learned something new today :) ... I don't have to use InitCommonControlsEx(), I could add a manifest instead.

    From msdn:
    Windows XP: If a manifest is used, InitCommonControlsEx is not...
  2. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    Thanks Endurion,
    This seems to do the trick...

    The app was just an example, I didn't add all the functionality to the dialog. The original projects has many more controls and code to handle them....
  3. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    I've attached a little sample app that illustrates my problem.
    Try compiling it and then run it. The app will not display a dialog, but if you edit the dialog and delete the TAB Control leaving all...
  4. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    I assigned all the numbers myself. I added the defines to d3dres.h, then re-used the same numbers in my resource.h file in the main exe project.

    Still no luck :confused:
  5. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    Yes I do that just before I call the DialogBox Function. I created the Dialog in the Resource Editor.



    LPCTSTR pstrTemplate;

    pstrTemplate = MAKEINTRESOURCE( IDD_MULTIMONITORSETTINGS...
  6. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    I did get most of this code from a DX9 Sample Framework, so I know it works. The difference between the Sample Framework and my code is that wrapped it inside a DLL.
    The wierd thing is that the...
  7. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    int result = DialogBox(m_hInstance, pstrTemplate, hwndParent, ScreenSettingsDlgProcStub );

    The result is -1, but the GetLastError() returns 1421.

    But it's probably this function that returns...
  8. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    Re: DialogBox Error

    That didn't do it...I've searched everywhere for a solution. I found one entry in here about this issue from 2001, but no one could help there either.
  9. Thread: DialogBox Error

    by Johndc
    Replies
    13
    Views
    1,664

    DialogBox Error

    I'm getting an error 1421 "Control ID Not Found" when adding a TAB Control to my dialog. If I delete the TAB Control from my dialog it works fine. All the IDC's seems to be fine.

    I've tried to use...
  10. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Thanks for your help Sam. I just finished the...

    Thanks for your help Sam.
    I just finished the tutorial and I'm about to start some different approaches for my automation control.
    I'll let you know what happens :)

    (I live of Sycamore and...
  11. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Thanks I will look at that. I derived my...

    Thanks I will look at that.

    I derived my automation class from CWnd. I did this because I wanted to add a tray icon.

    John
  12. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    You're right it does take it out again :( Is it...

    You're right it does take it out again :(
    Is it a setup in the Project to tell it to link to the .tlb file?
  13. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Forget what I said, I'll try and insert the line:...

    Forget what I said, I'll try and insert the line: 1 TYPELIB "myprogram.tlb" in my .rc file, that should work.

    Apparently when I add the first resource to my project it overides the resource file...
  14. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Yes I did, and it does compile the library, but...

    Yes I did, and it does compile the library, but it doesn't insert the "TYPELIB".

    Maybe I can just open the .res file and import the .tlb file into it and build again so it will re-link.

    John
  15. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Even though I did use the ClassWizard and added...

    Even though I did use the ClassWizard and added Methods and Properties it still didn't create my Typelib.

    Here is my odl file:
    // NaviCenter.odl : type library source for NaviCenter.dll

    //...
  16. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    I there anyway to add code or run something that...

    I there anyway to add code or run something that would add the "TYPELIB" back. There must be a process that I can go thru that would recreate that "TYPELIB"...

    John
  17. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Ok, try this...entirely Visual C++ question. ...

    Ok,

    try this...entirely Visual C++ question.

    1. Create a new project using the wizard and MFC AppWizard(dll) with Automation turned on.

    2. Then compile this project in Release Configuration....
  18. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    I just looked around on your website. You have...

    I just looked around on your website. You have some Automation Control examples that I'll study a bit closer...maybe they will help.

    John
  19. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    I will try to be more specific. Navision is an...

    I will try to be more specific.

    Navision is an accounting package that Microsoft bought last year.
    It has it's own development environment, very Delphi, Pascal and VB like.

    To be able to...
  20. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    Hi Sam, here is what happened: I want to create...

    Hi Sam,
    here is what happened:
    I want to create an Automation Control in Visual C++ 6.0.

    1. I use the AppWizard to create a MFC DLL with Automation enabled.
    2. I create a New Class for my...
  21. Replies
    1
    Views
    639

    Does nobody create Automation Controls in C++??!...

    Does nobody create Automation Controls in C++??!
    I can't find anything on the web on how to do this. No tutorials or anything!

    Everybody probably uses VB I guess :(
  22. Replies
    1
    Views
    639

    Help with Automation Control

    I want to create an Automation Control in Visual C++ 6.0.
    1. I use the AppWizard to create a MFC DLL with Automation enabled.
    2. I create a New Class for my Automation Interface.
    3. I use the...
  23. Thread: DLL Problem

    by Johndc
    Replies
    21
    Views
    11,769

    DLL Problem

    Hi,
    I have a problem with my automation program.

    I created a new MFC dll using the VS6 MFC AppWizard (dll) and started building my automation control. I tested my program by loading my automation...
  24. How do I calculate the normals for a heightmap?

    Never mind, I found the answer somewhere else.

    John
Results 1 to 24 of 24





Click Here to Expand Forum to Full Width

Featured