It is working nicely now.
But I could not set text colour for the Check boxes and Radio buttons. IT shows up as black always regardless of SetTextColor(). Is there any other thing I have to do in CtlColor method for it? Also how to control the colour of Tab control ?
Sorry for the late reply. I was on leave due to some health problems
I tried your suggestion for the check boxes. But it shows some strange behaviors. Okay I will go with the black letters. But can you please tell me how to change the Tab controls color and button colors?
Can we access session cookies from C++/VC++ code.
How to do that?
I need to store data in session cookies when I open any web based client, and I need to access the cookies from VC++ code, I need help in that whether we can
Do that? Please somebody can let me know how to do that if there is any solution.
I am hosting web browser on a dialog( which is MFC dialog) and navigating to a link ( link ->which is a client to a database of articles)
when I open an article in the browser which I hosted on MFC dialog I will save the article id ( somehow I will get it ) in a session cookie.
Later on I need to access the session cookie from MFC code.
how to do that any idea please?
I am using CWebBrowser2 calss object as web browser, and useing CWebBrowser2 ::Navigate2 interface method to navigate to the specified link.
in that post , i do not understand how to create m_piRequest object
before making a call "hr = m_piRequest->get_Cookies(&pDict);"
i am not that familier with COM.
I googled it : m_piRequest is The IRequest interface pointer ( if am not wrong)
please let me know how to create m_piRequest object before start using it,
do i need to do cocreate instance?
please help me in this.
basically.. i am hosting CWebBrowser2 derived class object on a dialog.
and using Navigate funtion to navigate to any URL of a web application.
I will be createing cookies thru aspx page of the webapplication.
My class which cooperates with MS Acces base looks like below:
In doted place I removed code as a not relevant for case:
Problem is that field mTekst in Acces is set as Memo type. And I wish
to place long report texts in.
My class can't transfer longer text then 255 chars otherwise it shows
an error. Temporarily I deal with it by cutting part of chars.
(Look in function LeftF()) . But a program is not functionally then.
What can I do to deal with problem? Help
is there any way to set property of a folder as zip-folder?
I create a new folder using CreateDirectory() for some data from my program, and set this folder as compressed, now i need to set this same folder as zipped folder!!
I don't want to create first a zip file and add some files to them, i create a compressed folder with CreateDirectory() and add some files to them,
and now i like to set them as compressed(zipped), is there any way how to do this?? Any idea how to do this??
There are normal directories, and NTFS can compress files in it. You gain space, and lose time.
There are zip files. Explorer very kindly has an already installed shell extension which makes them look a lot like a directory. Explorer is lieing to you, in the interests of ease of use. This is good.
I can't really help you, as it sounds like you already know how to do this, you just don't like it.
Did that make sense?
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]
thanks for answer.
I don't know how to do this, if yes, i will never ask something here, the time is to expensive for that!
You know that, when you make a right mouse click on a folder or file in explorer, its open a menu, and one of choices is "Send to archive" (or similar, sorry about my english),
that is what i mean!!
If this don't work, i know here is a Zip Utils that i can use, but i like to try this first!
I can only show my try, its like this:
dwFileMask = GetFileAttributes(csCurFolder);
mask = dwFileMask;
if(!(dwFileMask & FILE_ATTRIBUTE_ARCHIVE)) // set my new createt folder as a archive :)
mask = dwFileMask | FILE_ATTRIBUTE_ARCHIVE;
but thanks for your help
Last Visit: 31-Dec-99 18:00 Last Update: 26-Sep-23 18:22