Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCView, CFormView etc Pin
12-Aug-01 0:20
suss12-Aug-01 0:20 
GeneralRe: CView, CFormView etc Pin
Bret Faller13-Aug-01 7:45
Bret Faller13-Aug-01 7:45 
GeneralVARIANT data type. Pin
11-Aug-01 21:34
suss11-Aug-01 21:34 
GeneralRe: VARIANT data type. Pin
13-Aug-01 10:27
suss13-Aug-01 10:27 
GeneralRe: VARIANT data type. Pin
Carlos Antollini13-Aug-01 10:44
Carlos Antollini13-Aug-01 10:44 
GeneralCEdit help Pin
aarong11-Aug-01 20:53
aarong11-Aug-01 20:53 
GeneralRe: CEdit help Pin
Stephen McGeown12-Aug-01 2:37
Stephen McGeown12-Aug-01 2:37 
GeneralATL hell - import object to MFC project part III Pin
Christian Graus11-Aug-01 18:30
protectorChristian Graus11-Aug-01 18:30 
I thought I'd just done something wierd last time, because I created a new object and was able to use it right away using the code I posted before. But now I've created a new ATL project, on a different machine and the same thing is happening.

I create an ATL object, I create a method, and I compile it. I use MinDependency, making sure I specify -GX for try/catch unwinding and remove _ATL_MIN_CRT if necessary.

Then I #import the .tlb file in my stdafx of a brand new, stock standard dialog project. I call CoInitialise(NULL) before anything else in InitInstance, and in ExitInstance I call CoUninitialise().

Then in my OnInitDialog I try something like IMyClassPtr ptr(_uuidof(MyClass)); and if I do it in a try catch block I get a Message Box up with the _com_error ErrorMessage(), which is Class Not Registered ( or something similar, maybe Object Not Registered ? ).

I have tried RegSrv32 to register it myself, verified it has the proper Registry entries ( to the best of my knowledge, the name is stored under the IID with some other info ), and this despite VC++ putting up a 'registering server' type message when I compile. I've tried other methods of creating the file and my pointer is always NULL. The book I am working from seems to assume what I am doing will *always* work, because it gives no further info. Is there something glaringly obvious I am doing wrong ?

Thanks again...

Christian

Secrets of a happy marriage #27:

Never go to bed if you are mad at each other. It's more fun to stay up and fight.
GeneralRe: ATL hell - import object to MFC project part III Pin
11-Aug-01 21:07
suss11-Aug-01 21:07 
GeneralCWnd::MoveWindow(...) in CScrollView doesn't work Pin
Craig Miller11-Aug-01 18:16
Craig Miller11-Aug-01 18:16 
GeneralSelf Extracting Exe Pin
sankar11-Aug-01 15:42
sankar11-Aug-01 15:42 
GeneralMFC SDI application: opening documents Pin
11-Aug-01 9:37
suss11-Aug-01 9:37 
GeneralRe: MFC SDI application: opening documents Pin
12-Aug-01 6:40
suss12-Aug-01 6:40 
GeneralRe: MFC SDI application: opening documents Pin
Stephen McGeown12-Aug-01 11:16
Stephen McGeown12-Aug-01 11:16 
Generalchange tabstop Pin
11-Aug-01 9:09
suss11-Aug-01 9:09 
GeneralRe: change tabstop Pin
11-Aug-01 9:39
suss11-Aug-01 9:39 
GeneralRe: change tabstop Pin
11-Aug-01 12:16
suss11-Aug-01 12:16 
GeneralCustom Draw in CListView Pin
11-Aug-01 7:52
suss11-Aug-01 7:52 
GeneralRe: Custom Draw in CListView Pin
Michael Dunn11-Aug-01 7:55
sitebuilderMichael Dunn11-Aug-01 7:55 
GeneralRe: Custom Draw in CListView Pin
11-Aug-01 8:02
suss11-Aug-01 8:02 
GeneralRe: Custom Draw in CListView Pin
11-Aug-01 8:09
suss11-Aug-01 8:09 
QuestionHow to search for multiple file types? Pin
James Spibey11-Aug-01 5:44
James Spibey11-Aug-01 5:44 
QuestionHow can I do to know how datas is in my serial buffer when I use CreateFile ? Pin
youssef11-Aug-01 5:36
youssef11-Aug-01 5:36 
AnswerRe: How can I do to know how datas is in my serial buffer when I use CreateFile ? Pin
Tim Deveaux11-Aug-01 7:32
Tim Deveaux11-Aug-01 7:32 
GeneralRe: How can I do to know how datas is in my serial buffer when I use CreateFile ? Pin
youssef11-Aug-01 23:28
youssef11-Aug-01 23:28 

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.