Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Date Conversion Pin
Not Active7-Dec-01 17:23
mentorNot Active7-Dec-01 17:23 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant2-Jan-02 6:56
Lilian Chan-Grant2-Jan-02 6:56 
GeneralRe: Date Conversion Pin
Ravi Bhavnani2-Jan-02 7:11
professionalRavi Bhavnani2-Jan-02 7:11 
GeneralRe: Date Conversion Pin
Michael Dunn2-Jan-02 7:30
sitebuilderMichael Dunn2-Jan-02 7:30 
GeneralRe: Date Conversion Pin
Lilian Chan-Grant4-Jan-02 8:01
Lilian Chan-Grant4-Jan-02 8:01 
GeneralHex values in a string Pin
Tom Wright7-Dec-01 9:27
Tom Wright7-Dec-01 9:27 
GeneralRe: Hex values in a string Pin
vprashu7-Dec-01 10:51
vprashu7-Dec-01 10:51 
GeneralWTL & Automation Pin
Jens Sorensen7-Dec-01 9:21
Jens Sorensen7-Dec-01 9:21 
Hi All,
Question: How can I support Automation in my WTL application?? E.g., I would Like to be able to do a

Obj.Visible = true (or false) and it will display the app., just like in IE??


Here is what I tried but it does not work:

I'm trying to create a WTL Application that supports Automation, but I have been unsuccessful so far. Here is what I do.

1. Create a WTL project called “Test” which is a “SDI Application”, and I create it as “Create as a COM Server” and I don’t “Use a view Window”

I compile it and it works just fine. The application is up and running. Now I insert a COM Object called “Application”, this COM Object contains one property, which is called “Visible”, and it’s a Get & Put property. I compile the project and it compiles just fine. Then I create a .VBS file and it looks like this

Set Obj = CreateObject(“Test.Application”)

Obj.Visible = True

The “Obj.Visible” generates an error:

Error: Library not registered
Code: 8002801D

However if I do an:

MsgBox IsObject(Obj)

Then it will return TRUE in the Message Box. However if I try and Register the Control from VS (Tools->Register Control) then I will get the following Error:

Test.exe was loaded, but the DllRegisterServer Entry point was not found. Test.exe does not appear to be a .DLL or .OCX (which is correct, its an .exe)

Any help would be great..
Thanks,
Jens

GeneralRe: WTL & Automation Pin
Michael Dunn7-Dec-01 16:57
sitebuilderMichael Dunn7-Dec-01 16:57 
GeneralRe: WTL & Automation Pin
Jens Sorensen7-Dec-01 17:30
Jens Sorensen7-Dec-01 17:30 
GeneralMenu on RightMouseButton Pin
Giancarlo Amati7-Dec-01 9:19
Giancarlo Amati7-Dec-01 9:19 
GeneralRe: Menu on RightMouseButton Pin
User 66587-Dec-01 10:37
User 66587-Dec-01 10:37 
GeneralRe: Menu on RightMouseButton Pin
Derek Waters9-Dec-01 12:45
Derek Waters9-Dec-01 12:45 
QuestionCPop3Connection - How? Pin
Rickard Andersson207-Dec-01 9:12
Rickard Andersson207-Dec-01 9:12 
GeneralConsole Application Question Pin
Nick Parker7-Dec-01 8:56
protectorNick Parker7-Dec-01 8:56 
GeneralCatching a Window Exit Pin
7-Dec-01 6:28
suss7-Dec-01 6:28 
GeneralRe: Catching a Window Exit Pin
Sprudling7-Dec-01 7:00
Sprudling7-Dec-01 7:00 
GeneralRe: Catching a Window Exit Pin
Michael Dunn7-Dec-01 7:21
sitebuilderMichael Dunn7-Dec-01 7:21 
Generalownerdrawn window Pin
shangjuun7-Dec-01 6:02
shangjuun7-Dec-01 6:02 
GeneralRe: ownerdrawn window Pin
Ravi Bhavnani7-Dec-01 6:16
professionalRavi Bhavnani7-Dec-01 6:16 
QuestionSTL leaks ? Pin
pba_7-Dec-01 6:00
pba_7-Dec-01 6:00 
AnswerRe: STL leaks ? Pin
Erik Funkenbusch7-Dec-01 12:59
Erik Funkenbusch7-Dec-01 12:59 
GeneralRe: STL leaks ? Pin
pba_10-Dec-01 7:40
pba_10-Dec-01 7:40 
GeneralHelp with I/O Pin
dmt7-Dec-01 5:19
dmt7-Dec-01 5:19 
GeneralRe: Help with I/O Pin
David Chamberlain7-Dec-01 7:38
David Chamberlain7-Dec-01 7:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.