Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 6:16
Tommy Svensson27-Mar-02 6:16 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 6:36
Tommy Svensson27-Mar-02 6:36 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Paul M Watt27-Mar-02 9:03
mentorPaul M Watt27-Mar-02 9:03 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson1-Apr-02 21:49
Tommy Svensson1-Apr-02 21:49 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tomasz Sowinski27-Mar-02 10:24
Tomasz Sowinski27-Mar-02 10:24 
AnswerRe: How do I determine what functions a dll are exporting? Pin
JT Anderson27-Mar-02 6:04
JT Anderson27-Mar-02 6:04 
AnswerRe: How do I determine what functions a dll are exporting? Pin
sanjay mishra2-Apr-02 0:35
sanjay mishra2-Apr-02 0:35 
GeneralCOleVariant's and globally unique ID's Pin
funbag27-Mar-02 4:40
funbag27-Mar-02 4:40 
Background...

I'm using the msado15.dll ADO type library for database access.

I'm using a class derived from CADORecordBinding to bind to a _RecordsetPtr object, which I'm using to update a list view with. The class is given below.

I'm currently reading the MailID field out of the database as an adVariant type, but it's actually an adGUID type.

The reason I'm reading as an adVariant, is that I'm not sure how to store an adGUID type as a c/c++ variable.

I'm a bit new to all this, so please forgive my greenness!

Destroying the CMessageHeadersCache Object...
You'll notice that there are COleVariant member variables in the CMessageHeadersCache class. When I call delete on objects this class, the program crashes! When the COleVariant member variables are absent, deallocation goes just fine! I'm sure that there must be some safe/correct/appropriate way of deallocating these objects containing COleVariants, but I'm a bit stuck! Please help!

Many thanx,
funBag

#pragma once
#include "icrsint.h"
// ============================================================================
// Class CMessageHeadersCache
// Purpose ADO Record binding for the Messsage Headers list view object.
// History funbag 24th March 2002 Initial Rev.
// ============================================================================
class CMessageHeadersCache : public CADORecordBinding
{

public:
CMessageHeadersCache();
~CMessageHeadersCache();

BEGIN_ADO_BINDING(CMessageHeadersCache)

// DateTimeReceived
ADO_VARIABLE_LENGTH_ENTRY2(1,
adVariant,
DateTimeReceived,
sizeof(DateTimeReceived),
status[0],
FALSE)

ADO_VARIABLE_LENGTH_ENTRY2(2,
adVarChar,
SenderMailAddress,
sizeof(SenderMailAddress),
status[1],
FALSE)

ADO_VARIABLE_LENGTH_ENTRY2(3,
adVarChar,
SubjectLine,
sizeof(SubjectLine),
status[2],
FALSE)

ADO_VARIABLE_LENGTH_ENTRY2(4,
adVarChar,
Opened,
sizeof(Opened),
status[3],
FALSE)

ADO_VARIABLE_LENGTH_ENTRY2(5,
adVariant,
MailID,
sizeof(MailID),
status[4],
FALSE)

END_ADO_BINDING()


public:
COleVariant DateTimeReceived;
char SenderMailAddress[100];
char SubjectLine[1024];
char Opened[2];
COleVariant MailID;

ULONG status[5];

};Cry | :((

skydiving....if at first you don't succeed, you're fecked!
GeneralRetrieve pointer of the view into Mainframe Pin
27-Mar-02 4:20
suss27-Mar-02 4:20 
GeneralRe: Retrieve pointer of the view into Mainframe Pin
Mazdak27-Mar-02 7:01
Mazdak27-Mar-02 7:01 
GeneralRe: Retrieve pointer of the view into Mainframe Pin
Mazdak27-Mar-02 7:02
Mazdak27-Mar-02 7:02 
GeneralProfiling - weird problem. Pin
Alex Deem27-Mar-02 4:11
Alex Deem27-Mar-02 4:11 
GeneralRe: Profiling - weird problem. Pin
moliate27-Mar-02 9:05
moliate27-Mar-02 9:05 
GeneralStatus Bar Text Limit Pin
27-Mar-02 3:43
suss27-Mar-02 3:43 
GeneralRe: Status Bar Text Limit Pin
Tomasz Sowinski27-Mar-02 4:12
Tomasz Sowinski27-Mar-02 4:12 
GeneralDialog question Pin
Rickard Andersson2027-Mar-02 3:38
Rickard Andersson2027-Mar-02 3:38 
GeneralRe: Dialog question Pin
Paul M Watt27-Mar-02 3:50
mentorPaul M Watt27-Mar-02 3:50 
GeneralRe: Dialog question Pin
Tomasz Sowinski27-Mar-02 3:47
Tomasz Sowinski27-Mar-02 3:47 
GeneralRe: Dialog question Pin
Michael P Butler27-Mar-02 3:54
Michael P Butler27-Mar-02 3:54 
Generalfatal error LNK1168: cannot open x.dll for writing Pin
albean27-Mar-02 3:33
albean27-Mar-02 3:33 
GeneralRe: fatal error LNK1168: cannot open x.dll for writing Pin
Christian Graus27-Mar-02 9:08
protectorChristian Graus27-Mar-02 9:08 
QuestionRe: fatal error LNK1168: cannot open x.dll for writing Pin
Aniruddha Loya13-Sep-11 1:28
Aniruddha Loya13-Sep-11 1:28 
AnswerRe: fatal error LNK1168: cannot open x.dll for writing Pin
Harold.Mei4-Oct-17 15:56
Harold.Mei4-Oct-17 15:56 
GeneralAssociated Files Pin
Nick Parker27-Mar-02 2:37
protectorNick Parker27-Mar-02 2:37 
GeneralRe: Associated Files Pin
Tomasz Sowinski27-Mar-02 2:44
Tomasz Sowinski27-Mar-02 2:44 

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.