Hey,
Can anybody tell me why the ATL::ColeDateTi me implementation is referenced
rather than the MFC implementation? The method GetAsDBTIMESTAM P(...) 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 2 1626
AST wrote: Hey,
Can anybody tell me why the ATL::ColeDateTi me implementation is referenced rather than the MFC implementation?
Referenced by what?
The method GetAsDBTIMESTAM P(...) 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
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::ColeDateTi me.
Best regards,
Bill
"Carl Daniel [VC++ MVP]" <cp************ *************** **@mvps.org.nos pam>
wrote in message news:%2******** ********@TK2MSF TNGP09.phx.gbl. .. AST wrote: Hey,
Can anybody tell me why the ATL::ColeDateTi me implementation is referenced rather than the MFC implementation?
Referenced by what?
The method GetAsDBTIMESTAM P(...) 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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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))
{
//some code
}
|
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 when the date state is not valid. But we may need to pass NULL dates (read from a database) to our COM clients! - Yes, this problem doesn't occur in Release version, but we can't have a Debug version that asserts from time to time :)
A solution...
|
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 resulted in the
solution not linking with the error below.
The solution comprises of six projects. Five are static library
projects which compile ok. The sixth is an EXE than needs to link in
the other five .lib files. In the evidence below,...
|
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 code.
How do I read/write a file with COleDateTime classes?
--
Tony H
|
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 "C" __declspec (dllexport) void FuelEfficiency(COleDateTime
m_dtFuelEffTo,COleDateTime m_dtFuelEffFrom,CString gSimID,char *itemp);
where itemp is out parameter
Declaration of function in C# is:
| |
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 have checked the web for any
information on this, but have not found any articles that relate to this
specific problem. Can anyone tell me what is wrong here?
Here is a sample snippet of the method:
Note that TimeZoneInfo is my own managed...
|
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 );
CString isoDate = modernDate.Format(_T("%Y-%m-%dT%H:%M:%S"));
isoDate = problemDate.Format(_T("%Y-%m-%dT%H:%M:%S")); // problem!
problemDate.Format triggers an assertion failure on line 783 of strftime.c:
|
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 DateTime object in Native C, but I
would like to know if there is a work-around to parse out the
day/month/year from this DateTime object. Any ideas?
|
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 COleDateTime::GetCurrentTime() funtion. The
COleDateTime::GetCurrentTime() sometimes returned an incorrect time (both the
hours and minutes were wrong).
I don't know if this is a 64-bit problem or not, but in the past, when we
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |