Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: malloc/free to new /delete error Pin
Roger Allen6-Jul-04 4:08
Roger Allen6-Jul-04 4:08 
GeneralRe: malloc/free to new /delete error Pin
mcsherry8-Jul-04 21:47
mcsherry8-Jul-04 21:47 
GeneralLR_DEFAULTSIZE|LR_LOADFROMFILE in WinCE Pin
Anonymous5-Jul-04 22:42
Anonymous5-Jul-04 22:42 
Questionhow to set CTabCtrl background color? Pin
alma5-Jul-04 22:41
alma5-Jul-04 22:41 
Generalinitailize parallel port Pin
Member 12191245-Jul-04 22:12
Member 12191245-Jul-04 22:12 
GeneralRe: initailize parallel port Pin
Rory Solley5-Jul-04 23:06
Rory Solley5-Jul-04 23:06 
GeneralRe: initailize parallel port Pin
Ryan Binns5-Jul-04 23:11
Ryan Binns5-Jul-04 23:11 
General#import for COM Dll Pin
Vaibhav Sanghavi5-Jul-04 21:44
Vaibhav Sanghavi5-Jul-04 21:44 
Hi All,

I want to use a COM dll.
So I am first calling CoInitialize();
Then #import "Dll path" no_namespace
Then I am declaring the required inteface pointer and then calling CoCreateInstance();

But the compiler give me an error saying the interface is undelcared. But it generates the .tlh and .tli files in my debug directory of the project. And I think .tlh file conatains all definations. So ow what is wrong in my approach?
Do I need any .h file also in addition to .dll. Confused | :confused:

Please reply early.

--------------
Vaibhav...
GeneralRe: #import for COM Dll Pin
Roger Stoltz5-Jul-04 22:13
Roger Stoltz5-Jul-04 22:13 
GeneralRe: #import for COM Dll Pin
Vaibhav...5-Jul-04 22:28
sussVaibhav...5-Jul-04 22:28 
GeneralRe: #import for COM Dll Pin
Roger Stoltz6-Jul-04 0:27
Roger Stoltz6-Jul-04 0:27 
GeneralRe: #import for COM Dll Pin
Vaibhav Sanghavi11-Jul-04 23:39
Vaibhav Sanghavi11-Jul-04 23:39 
GeneralRe: #import for COM Dll Pin
Roger Stoltz12-Jul-04 14:52
Roger Stoltz12-Jul-04 14:52 
GeneralRe: #import for COM Dll Pin
Vaibhav Sanghavi12-Jul-04 18:55
Vaibhav Sanghavi12-Jul-04 18:55 
GeneralRe: #import for COM Dll Pin
Michael P Butler6-Jul-04 1:17
Michael P Butler6-Jul-04 1:17 
GeneralMSHFlexgrid ~ custom Autoresize Pin
V.5-Jul-04 21:27
professionalV.5-Jul-04 21:27 
Generalinheritance Pin
xcavin5-Jul-04 21:11
xcavin5-Jul-04 21:11 
GeneralRe: inheritance Pin
bneacetp5-Jul-04 21:45
bneacetp5-Jul-04 21:45 
GeneralRe: inheritance Pin
Vaibhav Sanghavi5-Jul-04 21:54
Vaibhav Sanghavi5-Jul-04 21:54 
Generalregistry handling in my software Pin
ask_you5-Jul-04 18:22
ask_you5-Jul-04 18:22 
GeneralRe: registry handling in my software Pin
Jose Cezar S. Ynion5-Jul-04 19:09
Jose Cezar S. Ynion5-Jul-04 19:09 
GeneralRe: registry handling in my software Pin
ask_you5-Jul-04 19:27
ask_you5-Jul-04 19:27 
GeneralReading Cookies Pin
Liger_Zero_X5-Jul-04 16:26
Liger_Zero_X5-Jul-04 16:26 
GeneralRe: Reading Cookies Pin
Jose Cezar S. Ynion5-Jul-04 17:18
Jose Cezar S. Ynion5-Jul-04 17:18 
GeneralRe: Reading Cookies Pin
Michael Dunn5-Jul-04 17:28
sitebuilderMichael Dunn5-Jul-04 17: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.