Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change CEdit rect height Pin
l a u r e n12-Jan-02 21:16
l a u r e n12-Jan-02 21:16 
GeneralEditBox in ToolBar - Only numbers Pin
Jawache12-Jan-02 11:49
Jawache12-Jan-02 11:49 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Christian Graus12-Jan-02 11:52
protectorChristian Graus12-Jan-02 11:52 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Jawache12-Jan-02 12:11
Jawache12-Jan-02 12:11 
GeneralRe: EditBox in ToolBar - Only numbers Pin
Michael Dunn12-Jan-02 13:54
sitebuilderMichael Dunn12-Jan-02 13:54 
GeneralUnicode Pin
12-Jan-02 11:07
suss12-Jan-02 11:07 
GeneralRe: Unicode Pin
Christian Graus12-Jan-02 11:41
protectorChristian Graus12-Jan-02 11:41 
GeneralLots of easy COM questions!! Pin
12-Jan-02 11:03
suss12-Jan-02 11:03 
Please help!!! Confusion reigns!

http://www.codeproject.com/com/comintro.asp provides a good introduction to COM. The only thing I was wondering, is how do I figure out information from the DLL. For instance, how can I find out what namespace thing is in - for instance how ado is in the ADODB namespace.

Likewise, if I decided to import the Excel typelibrary how do I know which objects are in there?? - ie how to get at the smart pointers - What are they called? Normally id look at the source code but can;t do this with DLL's.

I know theres a tool where type libraries can be loaded into and analysed but I cant make any sense of the IDL.

Im also working through a COM book by Alan Gordon. I dont understand why in his clients he adds header files from the server project. Surely this defeats the object of providing components in executable form?

If I was to buy a component would I just receive the DLL? Can COM components be implemented in .lib files. What is the difference with a Lib and a DLL??

Oh, and one more question- IF I want to get at a COM interface is it correct just to #import it from stdafx.h and then decalre the smart pointers - that feels a bit hacky?

Im having a right nightmare with component development! Id like to do some more work with ADO and with MSXML. Presumably to use MSXML I just #import the necessary DLL - but I cant figure out what to do from there. I have similar problems with ADO - when I import msado15.dll I get errors before going any further:

c:\source\tester\debug\msado15.tlh(405) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\source\tester\debug\msado15.tlh(1306) : error C2629: unexpected 'short ('
c:\source\tester\debug\msado15.tlh(1306) : error C2238: unexpected token(s) preceding ';'
Error executing cl.exe.

What is the tlh file?? Why is it even used when im not importing it! Im confused Frown | :(

Regards
Ben


GeneralPopulating a CTreeCtrl when I open a new document Pin
Stephane Routelous12-Jan-02 10:57
Stephane Routelous12-Jan-02 10:57 
GeneralRe: Populating a CTreeCtrl when I open a new document Pin
Michael Dunn12-Jan-02 14:36
sitebuilderMichael Dunn12-Jan-02 14:36 
GeneralGUI question Pin
Djibril12-Jan-02 7:58
professionalDjibril12-Jan-02 7:58 
GeneralColorizing Edit Control using Win32 API Pin
olliman12-Jan-02 7:48
olliman12-Jan-02 7:48 
GeneralRe: Colorizing Edit Control using Win32 API Pin
Nish Nishant12-Jan-02 16:56
sitebuilderNish Nishant12-Jan-02 16:56 
GeneralRe: Colorizing Edit Control using Win32 API Pin
Kannan Kalyanaraman12-Jan-02 23:12
Kannan Kalyanaraman12-Jan-02 23:12 
GeneralRequest for collaboration Pin
Joaquín M López Muñoz12-Jan-02 7:01
Joaquín M López Muñoz12-Jan-02 7:01 
GeneralRe: Request for collaboration Pin
Nish Nishant12-Jan-02 8:10
sitebuilderNish Nishant12-Jan-02 8:10 
Questionselected item in TreeCtrl? Pin
12-Jan-02 3:26
suss12-Jan-02 3:26 
AnswerRe: selected item in TreeCtrl? Pin
Nish Nishant12-Jan-02 3:40
sitebuilderNish Nishant12-Jan-02 3:40 
GeneralRe: selected item in TreeCtrl? Pin
12-Jan-02 14:17
suss12-Jan-02 14:17 
GeneralRe: selected item in TreeCtrl? Pin
l a u r e n12-Jan-02 21:19
l a u r e n12-Jan-02 21:19 
Generalbackground picture in vc++ Pin
12-Jan-02 3:21
suss12-Jan-02 3:21 
GeneralRe: background picture in vc++ Pin
Nish Nishant12-Jan-02 3:42
sitebuilderNish Nishant12-Jan-02 3:42 
GeneralRe: background picture in vc++ Pin
12-Jan-02 5:34
suss12-Jan-02 5:34 
GeneralRe: background picture in vc++ Pin
Rickard Andersson2012-Jan-02 7:35
Rickard Andersson2012-Jan-02 7:35 
GeneralRe: background picture in vc++ Pin
Michael Dunn12-Jan-02 6:31
sitebuilderMichael Dunn12-Jan-02 6:31 

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.