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 1627
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |