Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hi Roger,

First of all sorry to reply late. I was very busy in a project.
Well, when I compile with #import "Dll path".. it creates a .tli and .tlh file in my debug directory. I checked those files by opening them in VS. None of them defines INetFwProfile interface. But I want to make use of INetFwProfile which as per microsoft is in the hnetcfg.dll which I am using with #import.

As far as code is concern it goes like this..

////////////////////////////////////////////////////////////////////// HRESULT hr = S_OK;

// Initialize COM.
hr = CoInitialize(NULL);
if (SUCCEEDED(hr))
{
hr = S_OK;
fwComInitialized = TRUE;
}
else
{
printf("CoInitialize failed: 0x%08lx\n", hr);
goto error;
}

INetFwProfile* fwProfile = NULL;
//////////////////////////////////////////////////////////////////////

Here I have not written Cocreateinstance() yet. Before that only its not complinig and last line give errors as mentioned below.

error C2065: 'INetFwProfile' : undeclared identifier
error C2065: 'fwProfile' : undeclared identifier
error C2106: '=' : left operand must be l-value

Does it mean hnetcfg.dll does not contain INetFwProfile. As far I know .dll contains only implementation and when you compile .tlh gets created with contains the declaration of the interface.

Do I have to include any .h also or have to give path of any other file in Include directories from Options in VC++ 6 compiler. I dont thinks so...

--------------
Vaibhav...
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 
GeneralRe: Reading Cookies Pin
Liger_Zero_X5-Jul-04 19:55
Liger_Zero_X5-Jul-04 19:55 
GeneralRe: Reading Cookies Pin
Michael Dunn5-Jul-04 20:06
sitebuilderMichael Dunn5-Jul-04 20:06 
GeneralHelp with inheritance Pin
Sirrius5-Jul-04 16:16
Sirrius5-Jul-04 16:16 
GeneralRe: Help with inheritance Pin
Jose Cezar S. Ynion5-Jul-04 17:11
Jose Cezar S. Ynion5-Jul-04 17:11 

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.