Click here to Skip to main content
15,889,877 members
Everything / Operating Systems / WinCe

WinCe

WinCE

Great Reads

by David Lafreniere
A Win32 CreateThread() C++ wrapper class for synchronized thread startup and forced message queue creation.
by YangManWoo
This article describes how to create custom controls using strategy patterns.
by Yuri Maxutenko, Apriorit Inc
This article covers the creation of the CAB-installers for the Windows CE 5.0/6.0 applications for thin clients.
by Member 4079860
Describes a process to load/unload built in drivers under WinCE at run time to speed up development process

Latest Articles

by David Lafreniere
A Win32 CreateThread() C++ wrapper class for synchronized thread startup and forced message queue creation.
by Dirk Bahle
A quick guide to managing 100000'ish records efficiently with SQLite and C#/.Net.
by YangManWoo
This article describes how to create custom controls using strategy patterns.
by Yuancai (Charlie) Ye
Continuous in-line request/result batching, real-time stream sending/processing, asynchronous data transferring and parallel computation for best performance and scalability

All Articles

Sort by Updated

WinCe 

8 Apr 2024 by Graeme_Grant
Nostalgic trip... I used Google Search: windows ce 5.0 get list of screens - Google Search[^] and found this: GetSystemMetrics (Windows CE 5.0) | Microsoft Learn[^] Has this paramater: Quote: SM_CMONITORS Number of display monitors on the...
8 Apr 2024 by OriginalGriff
It's been a long time since I did anything with Win CE, but ... as far as I remember, you can't have multi screens at all - and that would explain why Screen.AllScreens doesn't exist. I suspect you are going to have to rethink your project to an...
8 Apr 2024 by Michi Elsno
I'm trying to develop a Windows CE application in C# in .NET CF2.0 and wanted to know how to get an array of screens. Normally this is done with Screen.AllScreens, but in CF2.0 that is not available. How could I translate Screen.AllScreens to get...
3 Jan 2020 by Member 12330291
Hello, For windows CE mobile device Scanning, I have installed Datalogic Mobility Kit for Visual Studio 2005 I am using Visual studio 2008.As per the mobility kit documentation I have installed the kit for Only Visual Studio 2008 installed. After installation,in the device kit samples I found...
3 Jan 2020 by Christian Graus
Clearly you don't have the DLL
7 Nov 2019 by Arun Ashok
Greetings,Can anyone have sample application for Import and Export Excel file data to SQLCE database table.I am using dot net 2008 to create an application which can work on Windows CE devices.I created the application with database as MyData.SDF. inside i created Product table with...
7 Nov 2019 by Member 14648847
Dear friends, I will give you a very simple solution which monthly data updations for 10 years. Export data for Excel to SDF 3.5 1. Prepare Excel data compatible with SDF table field data type 2. Just open Visual Studio what you have 3. Select SERVER EXPLORER and choose data connection...
23 Oct 2019 by David Lafreniere
A Win32 CreateThread() C++ wrapper class for synchronized thread startup and forced message queue creation.
4 Jan 2019 by Wendelius
You could probably use SetForegroundWindow function | Microsoft Docs[^] to bring the window to topmost Something like [System.Runtime.InteropServices.DllImport("user32.dll")] internal static extern int SetForegroundWindow(IntPtr hwnd); ... void YourMethod() { ProcessInfo[] procs = null; ...
4 Jan 2019 by sevimtel
ProcessInfo[] procs = null; if (denizbankProcess == null || (denizProcess != null && denizProcess.HasExited)) { procs = ProcessCE.GetProcesses(); if (procs.Where(p => p.FullPath.Contains("DotNetDeniz")).Count() > 0) { ...
23 Jul 2018 by sinsin-88
Hello. I have very old device with RLT8169 in one revision and RTL8101L in another and I have to start Windows Embedded Compact 2013 on it. I deviced to run CEPC BSP. THe BSP loads sucessfully, except the network. What I have tried: I tried to search driver but all I got is drivers for...
25 Jun 2018 by Dirk Bahle
A quick guide to managing 100000'ish records efficiently with SQLite and C#/.Net.
1 Jun 2018 by YangManWoo
This article describes how to create custom controls using strategy patterns.
8 Apr 2018 by Yuancai (Charlie) Ye
Continuous in-line request/result batching, real-time stream sending/processing, asynchronous data transferring and parallel computation for best performance and scalability
7 Mar 2018 by Kishore yasoju
I am working on windows applications. I have a text box with autosuggestion on. i have added few values in autosuggestioncollection. if i type first letter of the value,it is suggesting the added values but if i type last few letters of the value. I need it to show the suggestions even if i...
7 Mar 2018 by Maciej Los
Well... This is normal behaviour of control with AutoCompleteCustomSource[^], because it automatically completes input strings by comparing the prefix being entered to the prefixes of all strings in a maintained source. If you would like to change it, you have to create textBox1_Click event and...
13 Jan 2018 by sevimtel
ı want to use a barcode scanner without engine on wince 6.0 I need sample code What I have tried: I can not capture data. I need a solution ASAP. HID driver or UVC camera driver ı need sample code C++ or C#. I need register driver and capture data. Who can help me
13 Jan 2018 by Patrice T
Quote: I need sample code Sample code is probably available at manufacturer site. Quote: I can not capture data. I need a solution ASAP. This is not a problem description. Quote: HID driver or UVC camera driver ı need sample code C++ or C#. Do you really think that we have a driver that is...
29 Aug 2017 by xuyunhai20160827
using System.Xml.XPath; string fileName = "data.xml"; XPathDocument doc = new XPathDocument(fileName); XPathNavigator nav = doc.CreateNavigator(); cann't use XPathDocument or XPathNavigator classes in wince, how to solve this question? thanks for answer. What I have tried: i find there's...
10 May 2017 by Member 12753057
Windows CE, .NET compact framework 3.5 Using SQlite Dll File : sqlite-netFx35-binary-PocketPC-ARM-2008-1.0.105.0.zip "http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki" I want to use wal mode. so, I written the below code. string sql = "PRAGMA journal_mode = WAL;"; ...
10 May 2017 by Maciej Los
As SQLite documentation[^] states, a database in WAL journaling mode can only be accessed by SQLite version 3.7.0 (2010-07-21) or later. Conclusion: you have to use newer version of SQLite[^] database. [EDIT] To be able to open SQLite database in WAL mode, you have to open it using special...
20 Apr 2017 by Member 11748568
take a look at this link: GitHub - cohenrotem/Rgb2NV12: Convert RGB to NV12 color space, in Matlab, IPP, Plain C, and SSE optimized code[^]
28 Feb 2017 by Jineesh TR
I am developing an application for Motorolla MC18 (handheld mobile computer) in Visual studio 2008 SP 1. While debugging the application I am getting an error "error 9 the bootstrap could not be loaded. device connectivity component". I have installed supporting softwares like EMDK for .Net,...
12 Feb 2017 by mchakri
Below is the code for converting NV12 to RGB.What i want is conversion from RGB to NV12.void CFramePump::NV12ToRGB( BYTE* pOut, BYTE* pIn,unsigned int Width, unsigned int Height){ HRESULT hr = S_OK; DWORD dexOut = 0; unsigned int PX,PY; int y[4]; int u; int...
21 Dec 2016 by ductuan_itpro
This is my trouble:I want to write winform application with a Textbox to run in a PC. Then I use Motorola MC3190 barcode reader to remote to PC and run application to scan barcode code128 to textbox. But result data in textbox is incorrect:Exactly barcode: AFX015*BF02044701*300816*9Textbox...
21 Dec 2016 by Member 10062432
you have to embbed barcode format into your barcode reader.your unique identifiers.same as your barcode format.
23 Nov 2016 by Devon Gtx Safe
I once again need some help.Im using the .net Compact Framework and the programming language C# to develop for mobile devices that are running WinCE 6.0.What I have tried:What I want to accomplish is to programmatically execute exe from c# without extension. To do so, the app runs...
23 Nov 2016 by #realJSOP
I believe you need a fully qualified path (including the drive letter).
27 Oct 2016 by Eduardo Mireles
POOV is a programming technique for object-oriented languages developed in MIRA Software Factory by Ing. Eduardo Mireles and experts programmers. It facilitates coding software solutions.
23 Oct 2016 by jmavrix
Hi I am doing a vs2008 smart device project for windows ce device. and i want to export the data to a csv file, when i do the transfer data i get an error. I have attached my code,please give your suggestionsPrivate Sub BtnAvaStk_Click(ByVal sender As System.Object, ByVal e As...
23 Oct 2016 by NotPolitcallyCorrect
*** Comments are not being allowed at this timeYou would need to use StreamWriter to write the data out.
2 Jul 2016 by soukaina idrissi
When I click on a record, the cursor must be positioned directly on the Quantity fields (of way that I can not change other fields, only the amount that needs to be changed), after I input the new quantity in the datagrid component, and once I click ENTER the new value must be recorded (without...
10 May 2016 by leon de boer
Two of the three you did should work, there is a bug or we are missing something somewhere so lets check some basics1.) Check the registry entryHKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM and see what ports are listed2.) What version of Windows CE are we dealing with3.) Are...
10 May 2016 by Jammes_Ca
Hello, i want to develope an application on a windows mobile that communicate over serial port. i want to program it on c/c++.this the code that i used#include #include #include #include int _tmain(int argc, _TCHAR* argv[]){FILE *fp; ...
10 May 2016 by leon de boer
Your instinct was correct, it is "COM4:", you left the poor little ":" out. It is expressly told to you here:CreateFile (Windows CE 5.0)[^]Quote => points to a COM port to open, you must include a colon after the nameThe other alternate format that is valid is "\\.\COM4" and that...
9 May 2016 by CPallini
Use the debugger. Moreover, as shown in the documentation page Configuring a Communications Resource (Windows)[^] call GetLastError to know about the reason of the failure.
4 Apr 2016 by princektd
Our client decided to use Handy terminals (CASIO DT-X100-10J) and asked us to provide input support for our main desktop application through these handy terminals.So our company decided to develop a Win CE 7 (the OS version installed in the above CASIO device) application which will read and...
4 Apr 2016 by KarstenK
Windows CE 7 is a really odd "legacy system", so consider that it got killed someday!!!To prepare for that pay attentation to "clean code". I mean that you separate portable and platform specific code. I normally use clean C++ code for that. Often helps a sound software architecture to...
23 Feb 2016 by pjaar89
Hello,The result of a mathematical operation with non numeric value will turn into null so you can give a try to replace isnumeric with the following:select max(cast(your_column as integer)) from your_table where ifnull(your_column + 1, null) is not nullNote 1: Why do you not use...
23 Feb 2016 by Artur Leonowicz
I have a SQLite database on a Windows CE device. It has a column called product_code. The values stored in this column contain both letters and characters. The first character is dependent on the department in which the product is, for example for Draught it would be D, for Spirits S. A sample...
12 Jan 2016 by Amit KD
How to identify if the executable is 32-bit or 64-bit
25 Oct 2015 by FranzBe
This is the outline of what I have done:1) the .dll and .exe files for the CE device are stored in a database table like thisCREATE TABLE tbl_sys_modulfiles( file_name varchar(80) NOT NULL, file_size int NULL, file_date datetime NULL, file_version varchar(50) NULL, ...
25 Oct 2015 by Member 10814246
I have many Win CE 6/7 based devices in Production site, and I want to update device code i.e .CAB file in all of the devices remotely, same as how Windows/Android phone downloads its updates from somewhere. (Currently I will be doing manually copy-paste the .CAB file in NANDFLASH of each device...
22 Sep 2015 by CHill60
You will note on that link that it says the source code is available on A Restaurant and Waiter helper app in WPF and Windows Mobile[^] in CodeProject.If you have any further questions for the author, then use the forum at the bottom of that article.
22 Jun 2015 by Arun Ashok
Hi ,First of all, i want to thank you for all the valuable comments and replies.Suddenly i realize that the problem is not because of the way, but it is because of my sheer negligence. I delete the entire coding and start fresh. This time, i made it. The problem is of the file path is solved...
1 Apr 2015 by C3D1
Hey out there,i hope there is an Windows-CE guru out there who can help me.I had to connect a Windows-CE powered barcode-scanner to 3 different windows workstations and the only thing i know is, that the windows mobile device center allows me only to choose between one or two...
14 Mar 2015 by Member 11524582
I have already finished a filter hook driver project in winxp. now,I want to do it in wince(6.0). but I cant find ipfilterdriver in wince . and winddk may be not can be used in wince . how to do net filter in wince?
13 Mar 2015 by Mohammed Sadullah
I solved it my self.Just published the application via File System and added the needed dll for SQL Server CE 4.0. Now its working fine.
12 Mar 2015 by Estevão C Souza
Hi!Take a look http://managedserviceswm.codeplex.com/[^]Cya
18 Feb 2015 by Vladimir Svyatski
SQL Server CE is not meant for Web applications, it doesn't support simultaneous access. Use SQL Server Express LocalDB instead.
18 Feb 2015 by Mohammed Sadullah
I have built a mvc 5 application with Sql Server CE 4.0 as my back end. This is a live application. Now i'd like to deploy this application to my customers computer having windows 7. I tried many times in my own development computer to deploy to local IIS, but its not working. Am having many...
21 Jan 2015 by Snesh Prajapati
There were few for Windows Embedded but got retired by now as given here:https://www.microsoft.com/learning/en-in/retired-certification-exams.aspx[^]andhttp://blog.pluralsight.com/cert-expiration-2013-microsoft-cisco-oracle[^] :Visual Studio exams will have two exams for Windows...
21 Jan 2015 by deepakdynamite
Is there any Microsoft Certification Available for Windows CE Framework ??Thanks in advance..
12 Jan 2015 by bling
If Control.Refresh() does not work, try this:http://stackoverflow.com/questions/4759572/how-can-i-refresh-silverlight-controls[^]
10 Jan 2015 by ajaiisnow
Hi, I am working with a code in Silverlight2.0 and C++ on WInce6.0 platform. This is meant to be a real time system. So in this i have screens where i have to blink a colon every 500millisecond( for time) and bar( implemented with a IXRRectangle) which has to show the variation of the...
29 Dec 2014 by B. Clay Shannon
I have a handheld client (.NET 3.5, Compact Framework, Platform == Windows CE) which needs to call some REST methods. The server is using ssl. I can access the remote machine from the handheld, but it won't return any data because of its ssl-ness and not trusting the client.Based on some of...
24 Dec 2014 by B. Clay Shannon
From a C# app (Compact Framework, Windows CE app), I am trying to call a REST method on a server running on our internal network, but the call fails with "Could not establish secure channel for SSL/TLS ...System.Net.Sockets.SocketException: An existing connection was forcibly closed by the...
23 Dec 2014 by Eugen Podsypalnikov
The OCX registering could be processed by the regsvrce.exe tool :)(the OCX should be loadable by the ::LoadLibrary(..) API on the target,then the pointer to its DLLRegistryServer(..) function will be retrieved and called)
22 Dec 2014 by Member 11282058
Hai everyone, i am new to windows mobile ce and activex, i need to do digital signature for windows mobile ce , so i found it has to be done using activex , however i am trying to register the ocx i have created but i can not.. any idea ?Thanks in advance.
11 Dec 2014 by Member 10284414
I would like a suggestion on creating / editing a keyboard for my windows form application.I'm working on a device with OS Windows Embedded Compact 7.It is better to edit a SIP(if it is possible) or to create a custom control?how can proceed in each case?Thanks in Advance.Donato
30 Oct 2014 by B. Clay Shannon
In upgrading my Windows CE device, I ran into an issue ("can't find...sqlceme35.dll") that led me to this and thisI tried copying what are apparently the three key CAB files: sqlce.ppc.wce5.armv4i.CAB sqlce.repl.ppc.wce5.armv4i.CAB ...
29 Oct 2014 by Richard Deeming
According to this thread[^], there is no facility to change the target framework. However, if you select "Upgrade project" from the project menu, you should be able to select a newer framework version.
29 Oct 2014 by B. Clay Shannon
I have a new Visual Studio 2008 project, whose Target platform is Windows CEI wanted to verify that, if possible, the Target .NET Framework is set to what I am hoping: .NET 2.0 (not .NET 1.1).Yet, when I select Project > Properties > Application tab, the "Target Framework" dropdown is...
8 Oct 2014 by Maciej Los
Have a look here: http://blogs.msdn.com/b/jorgepc//?PageIndex=1&PostSortBy=MostViewed[^]. This is a collection most viewed articles. I'd recommend you to read this one: Using Windows Cluster log to troubleshoot SQL Server cluster errors[^]. I believe, it might help.
7 Oct 2014 by baranils
HelloI have a strange problemI have a Mobile Appplication Written in C# Mobile Windows CE That application try to connect to an Sql Server DB via Wifi networkWhen I debug I connect via USB from my Windows 7 Machine or an old XP Machine using VS 2008Today I need to make an update...
2 Oct 2014 by jalfonz0
Hello, i work in an app from windows mobile ce 6.5 that receives data from a sql ce 3.5 .sdf , recently our client upgraded his sql server from 2008 to 2012 and the .sdf that the app is receiving are under sql ce 4.0 format, making it incompatible. Is there a way to read the sdf 4.0 data from...
18 Sep 2014 by Ganesh11021423
Hello,I have a handheld device with Windows Embedded CE 6.0 Operating system.I want to configure Wi-FI connection in a device.I tried to configure in network and dial up connection, but there is no any setting for wi-fi connection.Do i need to install drivers for the wi-fi ?I don't...
11 Sep 2014 by Wendelius
When using Sql Server CE database, typically you don't have to use user information in your connection string. This is because it runs in-process. So try modifying your connection string asTCHAR szConnString[] = _T("Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data...
11 Sep 2014 by Gbenbam
I was trying to connect to an sql server ce database that I had created and passworded.I was able co to connect to d the database with d the assigned password successfully using visual studio but when I tried to connect to it using code I get d the ffg following error message:Description:...
11 Sep 2014 by /\jmot
did you set the provider to the conectionString?? if not then try like this.."Provider=SQLOLEDB;Data Source=.\\SQLEXPRESS;Initial Catalog=TestDB;Integrated Security=SSPI;Persist Security Info=False"
11 Sep 2014 by Richard MacCutchan
This is essentially the same as your previous question: Please what is wrong with this my c++ new database creation code?[^]. However in the statement:Cmd->Execute(NULL,NULL,adCmdText);where is adCmdText declared and what is it supposed to be?I notice that you are also not...
11 Sep 2014 by Gbenbam
The following code works ( apart from the CREATE TABLE query) if I use the stated connection string, but fails to work if I use the commented out connection strings.Generally the CreateNewDataBase function works whether I use the commented out query or not.But the general problem is that...
9 Sep 2014 by Gbenbam
The code throws an exception on attempting to execute the indicated line ( at least so it appears from my debugging effort.Actually, I have never written and run a database creation code before. I realise I needed it and I wrote this and decided to test it before modifying to become the full...
24 Aug 2014 by Sergey Alexandrovich Kryukov
This is the usual problem. The system tends to be contaminated with more and more, often unused processes. Viruses also can take place; who knows?You can download and use of of the registry clean-up utilities. Also, this is on of the applications which can help you to find out what...
24 Aug 2014 by saeid javani
Hi Friends!I have built a Windows CE 6.0 for my CoreWind S3C6410 system.Everything is OK on first days and OS is Up within 15 seconds, but after a while and frequently Power ON/OFF, boot-time increases up to 30 seconds!Does anyone know why this happens?
18 Aug 2014 by vz67
Resolve ItI Use NetworkStream Class And Solve This Problem. inputStream = socket.GetStream(); outputStream = new StreamWriter(inputStream);
15 Aug 2014 by vz67
Thanks For Your ReplyCan You Help Me.Haw To Use Stream Instade of BufferedStreamBecause inputStream = new Stream(socket.GetStream()); outputStream = new StreamWriter( new Stream(socket.GetStream()));Have 2 Errors :Cannot create an instance of the abstract...
10 Aug 2014 by Dilan Shaminda
//In Form1 Review_ClickDataTable dt = new DataTableNewReview frmReview = new NewReview (dt ); // here you can pass your DataTable as argumentfrmReview.ShowDialog();//In Form2public NewReview (DataTable ReviewB) { InitializeComponent(); dataGrid1.DataSource =...
10 Aug 2014 by mariana94
//In form 1private void Review_Click(object sender, EventArgs e) { NewReview form2 = new NewReview (); form2.ShowDialog();} public class NewReview : Form //add new form{}//Form 2public partial class NewReview : Form{ DataTable...
9 Aug 2014 by saeid javani
Finally, I found a good sample:http://developer.toradex.com/knowledge-base/wifi-configuration-from-program[^]Hope it could help someone else, too.
5 Aug 2014 by Mehdi Gholam
The Compact Framework is a limited subset of the full .net framework (because of size limitations) so there is bound to be features missing and BufferedStream is one of them.Try using a normal Stream.
5 Aug 2014 by vz67
Hi AllI Want To Make Program For Embeded System that Os Is Wince 6I Have A Sampe Code That Work In FrameWork 3.5 But Does not Work In CompactinputStream = new BufferedStream(socket.GetStream()); outputStream = new StreamWriter(new...
28 Jul 2014 by Member 10946783
Hi, please, help me with some problem. I use OpenGL in MFC-application, but the compiler tells me that he couldn't find the function wglMakeCurrent:error C3861: 'wglMakeCurrent': identifier not foundI found this function in the header of the library WinGDI.h for usual Windows, but there is...
28 Jul 2014 by _Amy
I think it's because you have not defined WirelessNetworkInterface object to anything by default, so the compiler flags this as undefined behavior. Try setting it to null before you use it in your program. And also it's good practice to initialize reference types to null if you don't assign...
26 Jul 2014 by saeid javani
I want to connect to a Wifi Access-Point programmatically on WinCE via C#. I searched many forums and read about OpenNetCF and WinCE APIs, but had no success! Any help will be appreciated ThanksHere is my code: private void btn_Connect_Click(object sender, EventArgs e) ...
17 Jul 2014 by Thomas Nielsen - getCore
I would recommend the SQL Express, formerly known as MSDE in that it is the free version so if you do not have to run on compact edition (and why would you run a database there), then use the most available of the MSSQL's if you don't have a budget to buy another, it is quite...
17 Jul 2014 by Mark Vloerjans
HiI'm wondering if Sql CE is suited as a database engine for a website. I know that it's possible. But is it safe (or as safe as SQL Server)? Or do I have to overthink a few things when I want to choose for Sql CE? I'm aware of the limitations (No SP, no views,...) of Sql CE, those aren't a...
28 May 2014 by KarstenK
I wouldnt recommand to develop for Windows CE, because it is outdated. You better concentrate on the new Windows and using a .net language. Best is writing the performance code in C++.Good open source library is VLC.
27 May 2014 by gleard
I need to realize an MP3 encoder for Windows CE 6.0. I have iMX51 on board. Is there anyone that has something to propose?It can be file converter or stream audio converter.
11 May 2014 by DamithSL
check below linksHow To Print In Windows CE 5.0 Or Higher Without 3rd Party[^]Does Windows CE 5 have a standard printing system?[^]
11 May 2014 by Member 8210440
i want to print data grid in Wince using vb.net.
16 Apr 2014 by DoingWork
Dear allDevice: Psion Teklogix Workabout Pro3Operating system: Win ce 5.0Action performed: In registry (HKLM / Init), entry Launch 80: explorer.exe has been replaced by Launch 80: myApp.exe.Problem occurred: After restart of device, device has been stuck at...
16 Apr 2014 by Mehdi Gholam
Start here : http://technet.microsoft.com/en-us/library/aa275665%28v=sql.80%29.aspx[^]also : http://www.microsoft.com/en-us/download/details.aspx?id=12264[^]
16 Apr 2014 by B. Clay Shannon
I tried to post this at http://social.msdn.microsoft.com/forums/en-US/newthread/, but I kept getting the "an error has occurred in the script on this page" message.I get the err running my Windows CE app about not finding PInvoke.dll and sqlceme35.dllSo I searched for those; no...
16 Apr 2014 by Herman<T>.Instance
Windows CE devices are not setup properly for the use of FTP despite the HttpWebRequest and HttpWebResponse classes.
8 Apr 2014 by CHill60
See section 20.2.2 of this tutorial[^] from Oracle. It's in VB.NET but there are plenty of free conversion sites if you're not comfortable doing it yourself.From what I can see you will have to use Oracle Lite, Compact doesn't support Oracle 10/11g
8 Apr 2014 by shafeeqpv
I am developing an application for connecing oracle from windows ce device.Please help me to connect to oracle from my windows ce device using c#.
22 Mar 2014 by Jochen Arndt
The _variant_t class has a date member. Because dates are stored as double values, you must use a datetime type that uses the same encoding like COleDateTime and DATE. Then you can assigne the date value:SYSTEMTIME st;COleDateTime odt(st);_variant_t vt;vt.vt = VT_DATE;vt.date =...