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

C / C++ / MFC

 
GeneralRe: Porting VC++ Application On Linux/Unix Pin
BaldwinMartin28-Nov-03 22:34
BaldwinMartin28-Nov-03 22:34 
GeneralRe: Porting VC++ Application On Linux/Unix Pin
Tejas H Shah28-Nov-03 23:22
Tejas H Shah28-Nov-03 23:22 
Generalpop3 Pin
BaldwinMartin28-Nov-03 21:02
BaldwinMartin28-Nov-03 21:02 
GeneralReading Email Headers Pin
BaldwinMartin28-Nov-03 19:07
BaldwinMartin28-Nov-03 19:07 
QuestionHow to open remote computer Service Control Manager Pin
Aswin28-Nov-03 18:09
Aswin28-Nov-03 18:09 
GeneralEquivalent VC++ statement to CreateObject function in VB Pin
Roozbeh6928-Nov-03 17:04
professionalRoozbeh6928-Nov-03 17:04 
GeneralRe: Equivalent VC++ statement to CreateObject function in VB Pin
Michael Dunn28-Nov-03 18:52
sitebuilderMichael Dunn28-Nov-03 18:52 
GeneralActive X import Pin
vijisu28-Nov-03 16:02
vijisu28-Nov-03 16:02 
I've imported an ActiveX component in VC++ program as
#import "INPClnt.ocx"

compiler has generated INPClnt.tlh file as below

----------------------------------------------------------

// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (73b0260c).
//
// c:\samples\sampleb\debug\INPClnt.tlh
//
// C++ source equivalent of Win32 type library INPClnt.ocx
// compiler-generated file created 11/28/03 at 18:17:12 - DO NOT EDIT!

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

namespace INPCLNTLib {

//
// Forward references and typedefs
//

struct __declspec(uuid("b2878606-c652-11d4-8481-00c04f369af0"))
/* dispinterface */ _DINPClnt;
struct __declspec(uuid("b2878607-c652-11d4-8481-00c04f369af0"))
/* dispinterface */ _DINPClntEvents;
struct /* coclass */ INPClnt;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(_DINPClnt, __uuidof(IDispatch));
_COM_SMARTPTR_TYPEDEF(_DINPClntEvents, __uuidof(IDispatch));

//
// Type library items
//

struct __declspec(uuid("b2878606-c652-11d4-8481-00c04f369af0"))
_DINPClnt : IDispatch
{
//
// Wrapper methods for error-handling
//

// Methods:
VARIANT_BOOL Startup ( );
VARIANT_BOOL Shutdown ( );
VARIANT_BOOL ProcessBatch (
_bstr_t BatchFilename );
VARIANT_BOOL ProcessImage (
_bstr_t ImageFilename );
_bstr_t GetProperty (
_bstr_t Keyword );
VARIANT_BOOL SetProperty (
_bstr_t Keyword,
_bstr_t Value );
};

struct __declspec(uuid("b2878607-c652-11d4-8481-00c04f369af0"))
_DINPClntEvents : IDispatch
{};

struct __declspec(uuid("b2878608-c652-11d4-8481-00c04f369af0"))
INPClnt;
// [ default ] dispinterface _DINPClnt
// [ default, source ] dispinterface _DINPClntEvents

//
// Wrapper method implementations
//

#include "c:\samples\sampleb\debug\INPClnt.tli"

} // namespace INPCLNTLib

#pragma pack(pop)
----------------------------------------------------------------

and also generated INPClnt.tli

----------------------------------------------------------------

// Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (73b0260c).
//
// c:\samples\sampleb\debug\INPClnt.tli
//
// Wrapper implementations for Win32 type library INPClnt.ocx
// compiler-generated file created 11/28/03 at 18:17:12 - DO NOT EDIT!

#pragma once

//
// dispinterface _DINPClnt wrapper method implementations
//

inline VARIANT_BOOL _DINPClnt::Startup ( ) {
VARIANT_BOOL _result;
_com_dispatch_method(this, 0x7d1, DISPATCH_METHOD, VT_BOOL, (void*)&_result, NULL);
return _result;
}

inline VARIANT_BOOL _DINPClnt::Shutdown ( ) {
VARIANT_BOOL _result;
_com_dispatch_method(this, 0x7d2, DISPATCH_METHOD, VT_BOOL, (void*)&_result, NULL);
return _result;
}

inline VARIANT_BOOL _DINPClnt::ProcessBatch ( _bstr_t BatchFilename ) {
VARIANT_BOOL _result;
_com_dispatch_method(this, 0x7d3, DISPATCH_METHOD, VT_BOOL, (void*)&_result,
L"\x0008", (BSTR)BatchFilename);
return _result;
}

inline VARIANT_BOOL _DINPClnt::ProcessImage ( _bstr_t ImageFilename ) {
VARIANT_BOOL _result;
_com_dispatch_method(this, 0x7d4, DISPATCH_METHOD, VT_BOOL, (void*)&_result,
L"\x0008", (BSTR)ImageFilename);
return _result;
}

inline _bstr_t _DINPClnt::GetProperty ( _bstr_t Keyword ) {
BSTR _result;
_com_dispatch_method(this, 0x7d5, DISPATCH_METHOD, VT_BSTR, (void*)&_result,
L"\x0008", (BSTR)Keyword);
return _bstr_t(_result, false);
}

inline VARIANT_BOOL _DINPClnt::SetProperty ( _bstr_t Keyword, _bstr_t Value ) {
VARIANT_BOOL _result;
_com_dispatch_method(this, 0x7d6, DISPATCH_METHOD, VT_BOOL, (void*)&_result,
L"\x0008\x0008", (BSTR)Keyword, (BSTR)Value);
return _result;
}
---------------------------------------------------------------



now Question is in my main() program how do I call methods.


Could anyone please help me out?
GeneralRuntime error Pin
oun28-Nov-03 15:12
oun28-Nov-03 15:12 
Generalerror message Pin
oun28-Nov-03 15:22
oun28-Nov-03 15:22 
GeneralRe: error message Pin
Shanmuga Sundar28-Nov-03 16:26
Shanmuga Sundar28-Nov-03 16:26 
Generalusing #import Pin
vijisu28-Nov-03 13:54
vijisu28-Nov-03 13:54 
GeneralRe: using #import Pin
GeMe_Hendrix2-Dec-03 11:52
GeMe_Hendrix2-Dec-03 11:52 
GeneralRe: using #import Pin
coralsnake_21-Dec-03 7:37
coralsnake_21-Dec-03 7:37 
GeneralDeclare VC DLL in VB Pin
BMWCouple28-Nov-03 12:54
BMWCouple28-Nov-03 12:54 
GeneralRe: Declare VC DLL in VB Pin
Mike Dimmick28-Nov-03 13:12
Mike Dimmick28-Nov-03 13:12 
GeneralRe: Declare VC DLL in VB Pin
BMWCouple1-Dec-03 1:55
BMWCouple1-Dec-03 1:55 
QuestionHow to set the &quot;Dialog Focus&quot; in Dialog Based Application Pin
eshban28428-Nov-03 9:56
eshban28428-Nov-03 9:56 
AnswerRe: How to set the &quot;Dialog Focus&quot; in Dialog Based Application Pin
suiram4028-Nov-03 11:17
suiram4028-Nov-03 11:17 
AnswerRe: How to set the &quot;Dialog Focus&quot; in Dialog Based Application Pin
l a u r e n29-Nov-03 13:39
l a u r e n29-Nov-03 13:39 
QuestionHow to identify a computer in a LAN from the internet? Pin
ray_li28-Nov-03 9:50
ray_li28-Nov-03 9:50 
AnswerRe: How to identify a computer in a LAN from the internet? Pin
suiram4028-Nov-03 11:13
suiram4028-Nov-03 11:13 
QuestionSpinBottonCtrl Limit? Pin
sdfdsfa28-Nov-03 9:24
sdfdsfa28-Nov-03 9:24 
AnswerRe: SpinBottonCtrl Limit? Pin
suiram4028-Nov-03 11:16
suiram4028-Nov-03 11:16 
Generalreading file properties. Pin
pnpfriend28-Nov-03 9:03
pnpfriend28-Nov-03 9:03 

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.