Click here to Skip to main content
15,889,595 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to use inpout32.dll in vc++208 clr project Pin
Sarath C30-Jun-09 9:43
Sarath C30-Jun-09 9:43 
QuestionCreate a C++ dll to be called from JAVA and PHP Pin
Galo Vinueza S.30-Jun-09 7:37
Galo Vinueza S.30-Jun-09 7:37 
AnswerRe: Create a C++ dll to be called from JAVA and PHP Pin
Stuart Dootson30-Jun-09 9:43
professionalStuart Dootson30-Jun-09 9:43 
QuestionVS and Qt linking differences Pin
thebeekeeper30-Jun-09 7:16
thebeekeeper30-Jun-09 7:16 
AnswerRe: VS and Qt linking differences Pin
Stuart Dootson30-Jun-09 9:29
professionalStuart Dootson30-Jun-09 9:29 
QuestionConstructing and Accessing a RecordSet from COM in C++ Pin
BeerFizz30-Jun-09 5:14
BeerFizz30-Jun-09 5:14 
AnswerRe: Constructing and Accessing a RecordSet from COM in C++ Pin
Stuart Dootson30-Jun-09 5:44
professionalStuart Dootson30-Jun-09 5:44 
GeneralRe: Constructing and Accessing a RecordSet from COM in C++ [modified] Pin
BeerFizz30-Jun-09 6:10
BeerFizz30-Jun-09 6:10 
Hi Stuart,

Thank you for responding.

Some answers to you questions:

The DLL is written in VB6.
Yes, the record set is defined in the DLL.
I don't know what kind of record-sets it returns, ADO or otherwise.
Yes, I do use #import and a .tli and a .tlh are generated.

I have included the .tlh if that helps.

Does that help us reach the next stage?

Thanks
Phil

// Created by Microsoft (R) C/C++ Compiler Version 14.00.50727.42 (2ecf2b05).
//
// c:\documents and settings\phild\my documents\visual studio code\vbdll\vcclient\debug\ttext.tlh
//
// C++ source equivalent of Win32 type library TTExt.dll
// compiler-generated file created 06/26/09 at 13:23:52 - DO NOT EDIT!

#pragma once
#pragma pack(push, 8)

#include <comdef.h>

//
// Forward references and typedefs
//

struct __declspec(uuid("e897466c-75b0-459f-9512-21d42e1f5703"))
/* LIBID */ __TTExt;
struct __declspec(uuid("dc8718c4-d07f-4542-a799-f2015a0614cf"))
/* dual interface */ _WebRes;
struct /* coclass */ WebRes;

//
// Smart pointer typedef declarations
//

_COM_SMARTPTR_TYPEDEF(_WebRes, __uuidof(_WebRes));

//
// Type library items
//

struct __declspec(uuid("dc8718c4-d07f-4542-a799-f2015a0614cf"))
_WebRes : IDispatch
{
    //
    // Property data
    //

    __declspec(property(get=GetLastError))
    _bstr_t LastError;
    __declspec(property(get=GetDatabase,put=PutDatabase))
    _bstr_t Database;
    __declspec(property(get=GetServer,put=PutServer))
    _bstr_t Server;
    __declspec(property(put=PutResNotes))
    _bstr_t ResNotes;
    __declspec(property(get=GetReservationID))
    _bstr_t ReservationID;
    __declspec(property(get=GetConfirmationNumber))
    _bstr_t ConfirmationNumber;
    __declspec(property(put=PutVoucherNo))
    long VoucherNo;
    __declspec(property(put=PutNumberOfPlayers))
    long NumberOfPlayers;
    __declspec(property(put=PutSelectedSlot))
    _bstr_t SelectedSlot;
    __declspec(property(put=PutPlayDate))
    DATE PlayDate;
    __declspec(property(put=PutEndTime))
    DATE EndTime;
    __declspec(property(put=PutStartTime))
    DATE StartTime;
    __declspec(property(put=PutTee))
    _bstr_t Tee;
    __declspec(property(put=PutFacility))
    _bstr_t Facility;
    __declspec(property(get=GetCustomerID,put=PutCustomerID))
    _bstr_t CustomerID;
    __declspec(property(put=PutCreditCardExpDate))
    _bstr_t CreditCardExpDate;
    __declspec(property(put=PutCreditCard))
    _bstr_t CreditCard;
    __declspec(property(put=PutEmail))
    _bstr_t Email;
    __declspec(property(put=PutFaxNo))
    _bstr_t FaxNo;
    __declspec(property(put=PutPhoneExt))
    _bstr_t PhoneExt;
    __declspec(property(put=PutPhoneNo))
    _bstr_t PhoneNo;
    __declspec(property(put=PutCountry))
    _bstr_t Country;
    __declspec(property(put=PutState))
    _bstr_t State;
    __declspec(property(put=PutCompany))
    _bstr_t Company;
    __declspec(property(put=PutCity))
    _bstr_t City;
    __declspec(property(put=PutZip))
    _bstr_t Zip;
    __declspec(property(put=PutDisplay))
    _bstr_t Display;
    __declspec(property(put=PutAddress2))
    _bstr_t Address2;
    __declspec(property(put=PutAddress1))
    _bstr_t Address1;
    __declspec(property(put=PutMidInitial))
    _bstr_t MidInitial;
    __declspec(property(put=PutFirstName))
    _bstr_t FirstName;
    __declspec(property(get=GetLastName,put=PutLastName))
    _bstr_t LastName;

    //
    // Wrapper methods for error-handling
    //

    _variant_t GetCustomerList ( );
    VARIANT_BOOL CreateCustomer (
        BSTR * ReturnMessage );
    _variant_t GetFacilityList ( );
    _variant_t GetSlotsAvailable ( );
    VARIANT_BOOL CreateReservation (
        BSTR * ReturnMessage );
    _variant_t GetReservationsForConfirmationNo (
        _bstr_t ConfirmationNo );
    VARIANT_BOOL CancelReservation (
        _bstr_t ReservationID,
        BSTR * ReturnMessage );
    _variant_t GetServers ( );
    VARIANT_BOOL Connect (
        _bstr_t vendor_name,
        _bstr_t ini_path );
    VARIANT_BOOL Connect1 (
        _bstr_t Server,
        _bstr_t Database );
    _bstr_t GetLastName ( );
    void PutLastName (
        _bstr_t _arg1 );
    void PutFirstName (
        _bstr_t _arg1 );
    void PutMidInitial (
        _bstr_t _arg1 );
    void PutAddress1 (
        _bstr_t _arg1 );
    void PutAddress2 (
        _bstr_t _arg1 );
    void PutDisplay (
        _bstr_t _arg1 );
    void PutZip (
        _bstr_t _arg1 );
    void PutCity (
        _bstr_t _arg1 );
    void PutCompany (
        _bstr_t _arg1 );
    void PutState (
        _bstr_t _arg1 );
    void PutCountry (
        _bstr_t _arg1 );
    void PutPhoneNo (
        _bstr_t _arg1 );
    void PutPhoneExt (
        _bstr_t _arg1 );
    void PutFaxNo (
        _bstr_t _arg1 );
    void PutEmail (
        _bstr_t _arg1 );
    void PutCreditCard (
        _bstr_t _arg1 );
    void PutCreditCardExpDate (
        _bstr_t _arg1 );
    _bstr_t GetCustomerID ( );
    void PutCustomerID (
        _bstr_t _arg1 );
    void PutFacility (
        _bstr_t _arg1 );
    void PutTee (
        _bstr_t _arg1 );
    void PutStartTime (
        DATE _arg1 );
    void PutEndTime (
        DATE _arg1 );
    void PutPlayDate (
        DATE _arg1 );
    void PutSelectedSlot (
        _bstr_t _arg1 );
    void PutNumberOfPlayers (
        long _arg1 );
    void PutVoucherNo (
        long _arg1 );
    _bstr_t GetConfirmationNumber ( );
    _bstr_t GetReservationID ( );
    void PutResNotes (
        _bstr_t _arg1 );
    void PutServer (
        _bstr_t _arg1 );
    void PutDatabase (
        _bstr_t _arg1 );
    VARIANT_BOOL SetResellerCode (
        _bstr_t InterfaceResellerCode );
    VARIANT_BOOL SetUser (
        _bstr_t Name );
    _bstr_t GetLastError ( );
    _bstr_t GetServer ( );
    _bstr_t GetDatabase ( );

    //
    // Raw methods provided by interface
    //

      virtual HRESULT __stdcall raw_GetCustomerList (
        /*[out,retval]*/ VARIANT * _arg1 ) = 0;
      virtual HRESULT __stdcall raw_CreateCustomer (
        /*[in,out]*/ BSTR * ReturnMessage,
        /*[out,retval]*/ VARIANT_BOOL * _arg2 ) = 0;
      virtual HRESULT __stdcall raw_GetFacilityList (
        /*[out,retval]*/ VARIANT * _arg1 ) = 0;
      virtual HRESULT __stdcall raw_GetSlotsAvailable (
        /*[out,retval]*/ VARIANT * _arg1 ) = 0;
      virtual HRESULT __stdcall raw_CreateReservation (
        /*[in,out]*/ BSTR * ReturnMessage,
        /*[out,retval]*/ VARIANT_BOOL * _arg2 ) = 0;
      virtual HRESULT __stdcall raw_GetReservationsForConfirmationNo (
        /*[in]*/ BSTR ConfirmationNo,
        /*[out,retval]*/ VARIANT * _arg2 ) = 0;
      virtual HRESULT __stdcall raw_CancelReservation (
        /*[in]*/ BSTR ReservationID,
        /*[in,out]*/ BSTR * ReturnMessage,
        /*[out,retval]*/ VARIANT_BOOL * _arg3 ) = 0;
      virtual HRESULT __stdcall raw_GetServers (
        /*[out,retval]*/ VARIANT * _arg1 ) = 0;
      virtual HRESULT __stdcall raw_Connect (
        /*[in]*/ BSTR vendor_name,
        /*[in]*/ BSTR ini_path,
        /*[out,retval]*/ VARIANT_BOOL * _arg3 ) = 0;
      virtual HRESULT __stdcall raw_Connect1 (
        /*[in]*/ BSTR Server,
        /*[in]*/ BSTR Database,
        /*[out,retval]*/ VARIANT_BOOL * _arg3 ) = 0;
      virtual HRESULT __stdcall get_LastName (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall put_LastName (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_FirstName (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_MidInitial (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Address1 (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Address2 (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Display (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Zip (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_City (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Company (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_State (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Country (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_PhoneNo (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_PhoneExt (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_FaxNo (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Email (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_CreditCard (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_CreditCardExpDate (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall get_CustomerID (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall put_CustomerID (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Facility (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Tee (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_StartTime (
        /*[in]*/ DATE _arg1 ) = 0;
      virtual HRESULT __stdcall put_EndTime (
        /*[in]*/ DATE _arg1 ) = 0;
      virtual HRESULT __stdcall put_PlayDate (
        /*[in]*/ DATE _arg1 ) = 0;
      virtual HRESULT __stdcall put_SelectedSlot (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_NumberOfPlayers (
        /*[in]*/ long _arg1 ) = 0;
      virtual HRESULT __stdcall put_VoucherNo (
        /*[in]*/ long _arg1 ) = 0;
      virtual HRESULT __stdcall get_ConfirmationNumber (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall get_ReservationID (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall put_ResNotes (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Server (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall put_Database (
        /*[in]*/ BSTR _arg1 ) = 0;
      virtual HRESULT __stdcall raw_SetResellerCode (
        /*[in]*/ BSTR InterfaceResellerCode,
        /*[out,retval]*/ VARIANT_BOOL * _arg2 ) = 0;
      virtual HRESULT __stdcall raw_SetUser (
        /*[in]*/ BSTR Name,
        /*[out,retval]*/ VARIANT_BOOL * _arg2 ) = 0;
      virtual HRESULT __stdcall get_LastError (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall get_Server (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
      virtual HRESULT __stdcall get_Database (
        /*[out,retval]*/ BSTR * _arg1 ) = 0;
};

struct __declspec(uuid("d00de9f1-98eb-4cd9-8685-0ea4f283971f"))
WebRes;
    // [ default ] interface _WebRes

//
// Wrapper method implementations
//

#include "c:\documents and settings\phild\my documents\visual studio code\vbdll\vcclient\debug\ttext.tli"

#pragma pack(pop)


modified on Tuesday, June 30, 2009 12:20 PM

GeneralRe: Constructing and Accessing a RecordSet from COM in C++ Pin
Stuart Dootson30-Jun-09 7:04
professionalStuart Dootson30-Jun-09 7:04 
GeneralRe: Constructing and Accessing a RecordSet from COM in C++ Pin
BeerFizz30-Jun-09 6:13
BeerFizz30-Jun-09 6:13 
GeneralRe: Constructing and Accessing a RecordSet from COM in C++ Pin
Stuart Dootson30-Jun-09 6:59
professionalStuart Dootson30-Jun-09 6:59 
GeneralRe: Constructing and Accessing a RecordSet from COM in C++ Pin
BeerFizz30-Jun-09 10:38
BeerFizz30-Jun-09 10:38 
GeneralRe: Constructing and Accessing a RecordSet from COM in C++ Pin
Stuart Dootson30-Jun-09 11:24
professionalStuart Dootson30-Jun-09 11:24 
Questioncreating and writing data to an xml file in vc++6.0 Pin
kir_MFC30-Jun-09 3:44
kir_MFC30-Jun-09 3:44 
AnswerRe: creating and writing data to an xml file in vc++6.0 Pin
Naveen30-Jun-09 4:30
Naveen30-Jun-09 4:30 
QuestionWhy have you reposted this? Pin
led mike30-Jun-09 4:37
led mike30-Jun-09 4:37 
AnswerRe: creating and writing data to an xml file in vc++6.0 Pin
David Crow30-Jun-09 4:45
David Crow30-Jun-09 4:45 
QuestionCapture Ctrl+Pgup event Pin
reply2am30-Jun-09 2:02
reply2am30-Jun-09 2:02 
AnswerRe: Capture Ctrl+Pgup event Pin
David Crow30-Jun-09 3:44
David Crow30-Jun-09 3:44 
Questionreading and writing xml files in vc++6.0 Pin
kir_MFC30-Jun-09 1:17
kir_MFC30-Jun-09 1:17 
AnswerRe: reading and writing xml files in vc++6.0 Pin
Madhu Nair30-Jun-09 1:28
Madhu Nair30-Jun-09 1:28 
GeneralRe: reading and writing xml files in vc++6.0 Pin
kir_MFC30-Jun-09 3:04
kir_MFC30-Jun-09 3:04 
QuestionRe: reading and writing xml files in vc++6.0 Pin
David Crow30-Jun-09 3:10
David Crow30-Jun-09 3:10 
AnswerRe: reading and writing xml files in vc++6.0 Pin
kir_MFC30-Jun-09 4:06
kir_MFC30-Jun-09 4:06 
QuestionRe: reading and writing xml files in vc++6.0 Pin
David Crow30-Jun-09 4:12
David Crow30-Jun-09 4:12 

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.