473,383 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

MFC 7 ColeDateTime::GetAsDBTIMESTAMP Method not accessible in Unmanaged Code

AST
Hey,

Can anybody tell me why the ATL::ColeDateTime implementation is referenced
rather than the MFC implementation? The method GetAsDBTIMESTAMP(...) is
only available on the MFC implementation and not ATL. Is there a compiler
directive or switch or namespace that I am missing that precludes this?

Best regards,

Bill
Nov 17 '05 #1
2 1597
AST wrote:
Hey,

Can anybody tell me why the ATL::ColeDateTime implementation is
referenced rather than the MFC implementation?
Referenced by what?
The method
GetAsDBTIMESTAMP(...) is only available on the MFC implementation and
not ATL. Is there a compiler directive or switch or namespace that I
am missing that precludes this?


You need to supply some context - what's forcing you to use the ATL
implementation?

-cd
Nov 17 '05 #2
AST
Hey,

I was trying to use this COleDateTime method within a MFC CDialog class.
This is an existing VC6 class being ported to VC7 as unmanaged code that was
using references to the old MFC ColeDateTime class, but I wanted to make use
of this new method. So the context is clearly MFC, but when compiling, it
complains that this method does not exist on ATL::ColeDateTime.

Best regards,

Bill

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
AST wrote:
Hey,

Can anybody tell me why the ATL::ColeDateTime implementation is
referenced rather than the MFC implementation?


Referenced by what?
The method
GetAsDBTIMESTAMP(...) is only available on the MFC implementation and
not ATL. Is there a compiler directive or switch or namespace that I
am missing that precludes this?


You need to supply some context - what's forcing you to use the ATL
implementation?

-cd

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: A Taylor | last post by:
I have a bit of code that simply takes in a date from an EditCtrl and uses COleDateTime, ParseDateTime to get the date m_Ectrl.GetWindowText(str); if (dt.ParseDateTime(str, VAR_DATEVALUEONLY))...
5
by: Paolo | last post by:
We are experiencing a problem with COleDateTime while migrating our MFC&ATL project from VC++6.0 to VC++7.1 (Visual Studio .NET 2003). COleDateTime has a DATE conversion operator that in 7.1 asserts...
2
by: Ian Taite | last post by:
Help, I am trying to nail a linking problem, to avoid having to lose about 2 weeks work. I have a backup of my project that compiles and links OK however changes I made sometime since then have...
0
by: Tony H | last post by:
When I try to serialize COleDateTime, I get " binary '>>' : no operator found which takes a right-hand operand of type 'ATL::COleDateTime'". I have a file being shared by both VS6 and VS2005...
1
by: Priya | last post by:
Hi, I'm developing an ASP.NET app. In codebehind .cs file i need call an unmanaged C++ dll.I copied the dll into the bin directory. the header file of the dll contains the definition as extern...
2
by: Ken Varn | last post by:
I have a managed C++ method that I call from ASP.NET to set the time zone on the local box. I call SetTimeZoneInformation, which does not return an error, but the time zone remains unchanged. I...
5
by: Ian Harding | last post by:
This is a problem present using Visual Studio 2005, but not in Visual Studio 2003 or Visual C++ 6. COleDateTime modernDate( 1900, 1, 1, 0, 1, 0 ); COleDateTime problemDate( 1753, 1, 1, 0, 1, 0...
6
by: minboymike | last post by:
Hello everyone, I am working on a project when I have to convert a C# program into Native C for speed purposes. I am using a .dll that creates a DateTime object. Obviously, there is not...
4
by: =?Utf-8?B?amM=?= | last post by:
Hello, We are developing an App with VS2008 (64-bit). The application is date/time sensitive (the App runs 24/7). We noticed some problems with the 64-bit version of the App relating to the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.