|
|
Test
|
|
|
|
|
|
How do I write a regular expression for ISO8601 date and time with timezone? More specifically, how do I detect the presence of the timezone bit using regular expressions.
I'm allowing a very limited set of the possible formats for ISO8601 to make it easier.
eg.s "2002-03-22T14:26:39Z", "2002-03-22T14:26:39+01:00", "2002-03-22T14:26:39-01:00"
I get stuck when looking for the '-' sign and I don't seem to be using the escape sequence properly. I'm working from our own http://www.codeproject.com/cpp/rexsearch.asp, but clearly don't understand them properly.
Thanks in advance.
Al.
Alice thought that running very fast for a long time would get you to somewhere else. " A very slow kind of country!" said the queen. "Now, here , you see, it takes all the running you can do, to keep in the same place".
|
|
|
|
|
Hi
I discovered that when I add a very long CString (>260 characters) as the text of a CListCtrl item, it won't get displayed completely even though I set the column width to the maximum. Can someone please help me to fix that problem, it's really urgend!!
Thank you
Grit
|
|
|
|
|
I'm using CHtmlView - derived class CHtmlCtrl (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsj00/html/cpp0100.asp) for use in dialog boxes. I need to navigate that control to some page (for example about:blank) in dialog's OnInitDialog(). But Navigate() is not blocking function, how to block until CHtmlView::OnDocumentComplete() is signaled ?
rrrado
|
|
|
|
|
I have set the rich-edit control of a CRichEditView to read only
(GetRichEditCtrl().SetOptions(ECOOP_SET, ECO_READONLY); )
which works fine, except that the scrollbar is then also "readonly" - the user is unable to scroll the text in the window! Is there a solution? (Yes, I've tried EnableScrollBar.) TIA.
|
|
|
|
|
Hello!
Tell me,please,how can i copy any data from table of one access database to table of another access database,for example i have two datasources: m1.mdb and arch.mdb and i must copy any data from table1 of m1.mdb to table2 of arch.mdb My project is writen on MFC and i use Access databes.
Thank you,
Ira.
|
|
|
|
|
Here is my solution :
1. open both databases, select * into source recordset, create recoprdset in destination database
2. select all rows from source database into source recordset
3. destination recordset.AddNew()
4. copy all field values from source recordset to destination recordset
5. update destination recordset
6. go to 2
rrrado
|
|
|
|
|
It means that i must use CRecordset or i can use and CDaoRecordset?
|
|
|
|
|
It depends what database acces are you using.
CDaoRecordset is dor DAO, CRecordset is for ODBC.
It is recommended to use ADO or ODBC, i'm using this wrapper class for ADO : http://www.codeproject.com/database/caaadoclass1.asp
CADODatabase + CADORecordset
rrrado
|
|
|
|
|
my function for easy copying of recordsets is here :
void CSynchronizeDlg::CopyRecordset(CADORecordset &dst, CADORecordset &src)
{
CString tmp;
for (int i=0; i<src.GetFieldCount(); i++)
{
if (src.IsFieldNull(i))
{
tmp.Empty();
dst.SetFieldValue(i,tmp);
}
else
{
src.GetFieldValue(i,tmp);
dst.SetFieldValue(i,tmp);
}
}
}
rrrado
|
|
|
|
|
hi
file drag and drop from my namespace works, i use CFSTR_FILECONTENTS and IStream for the content. but how to drag whole directories using CFSTR_FILECONTENTS ?
thanks
|
|
|
|
|
Does CWinApp::Run() gets called automaticaly when starting the app, or do you have to do this yourself?
I've deprectated the Run-function, just added a messagebox in there and a call to the parent-Run. But the messagebox never appears, so I guess Run() isn't called automaticaly. (or am I wrong?)
And how do I have to call Run()? Just calling Run(), or is there a Start() function like in java? And from where? From Initinstance()?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
|
So Run() is called automaticaly.
So, why is my deprecated Run() method not called???
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
What api should i be using to determine how much data was transferred or currently transferring for a network adapter?
|
|
|
|
|
You should check inside the "performance registry" under: HKEY_PERFORMANCE_DATA key.
--
Looking for a new screen-saver?
Try FOYD:
http://digilander.iol.it/FOYD
|
|
|
|
|
Hi
How can you change the default IDOK for the "Enter" button on your keyboard. My problem is that the program exits when i hit "Enter"...I am not looking for a "Accelerator solution" because then you cannot use "Enter" for the buttons in my app if a button is selected.
By the way its for a dialog based app.
Tnx in advance
Frank
|
|
|
|
|
|
Hehe well I dont feel stupid
I worked - tnx Nish!
|
|
|
|
|
Hello All!
I am writing simple mail program and need to get e-mail addresses from adress book. In Win98 - no problem, but in Win2k - has some problems - some adress is returned, some not.
Thank you.
P.S. i use MAPI because i dont know other method
P.P.S. sorry for my poor English.
|
|
|
|
|
Hi all,
I have a qiestion about Norton AntiVirus and SetWindowsHookEx().
In Win98, I installed Norton AntiVirus (ver.2000) and my program using SetWindowsHookEx(WH_GETMESSAGE...) to get the mouse message.
The purpose of my program is to redirect the mouse button's performance.
For example, when I click right button, I don't want system to show a popup menu but I want to simulate 'Enter' key.
It works well in all O.S.. But in Win98 and WinMe, if I installed Norton Antivirus, my program will delay about 1 second.
I write some values in registry and when I click mouse button, it will open and read the registry key value which I wrote.
Is that the main reason to cause the delay ??
But in WinXP and Win2000 don't have this question.
Does anyone can help me to check this issue ?
If you need my source code to check , please let me know, I'll send to you .
Thanks a lot.
|
|
|
|
|
I want to understand that if we give a same ID to a CWnd derive window while creating it, Would it be erronous. If yes then how ?
Also I want to understand let me frame my question with an example
I create a EditBox whose parent is my view class lets say the id of this editbox is 1001.
Now I create a Modeless Dialog which has also got a EditBox with the same ID that is 1001.
So are these two CWnd going to clash in some way or the other ?
Please throw some light on this.
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Abhishek Narula wrote:
I want to understand that if we give a same ID to a CWnd derive window while creating it, Would it be erronous.
Of course.
Abhishek Narula wrote:
If yes then how ?
Those ID's are used to map messages, I believe. Imagine two controls in one dialog both with the same ID. They are used to interact with your code - your variable name is mapped to an ID. Now imagine if two were both the same ID.
They obviously won't clash, or at least they are unlikely to. If two different dialogs have an edit box named IDC_EDIT, they will both have the same ID and not clash.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|