Search:
Type: Posts; User: Johndc
Search:
Search took 0.04 seconds.
-
December 16th, 2004, 11:06 AM
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...
-
December 16th, 2004, 10:16 AM
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....
-
December 16th, 2004, 01:31 AM
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...
-
December 15th, 2004, 01:09 PM
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:
-
December 15th, 2004, 12:38 PM
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...
-
December 15th, 2004, 12:11 PM
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...
-
December 15th, 2004, 11:46 AM
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...
-
December 15th, 2004, 11:20 AM
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.
-
December 15th, 2004, 01:56 AM
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...
-
March 6th, 2004, 07:29 PM
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...
-
March 6th, 2004, 03:55 PM
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
-
March 6th, 2004, 03:31 PM
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?
-
March 6th, 2004, 02:32 PM
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...
-
March 6th, 2004, 12:25 PM
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
-
March 6th, 2004, 12:31 AM
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
//...
-
March 5th, 2004, 10:18 PM
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
-
March 4th, 2004, 10:59 PM
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....
-
March 4th, 2004, 10:33 PM
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
-
March 4th, 2004, 10:28 PM
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...
-
March 4th, 2004, 07:23 PM
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...
-
March 3rd, 2004, 01:02 PM
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 :(
-
March 3rd, 2004, 11:39 AM
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...
-
March 2nd, 2004, 11:08 PM
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...
-
December 17th, 2003, 06:44 PM
Never mind, I found the answer somewhere else.
John
|
Click Here to Expand Forum to Full Width
|