|
hi all,
i am writing an application, in which i have to store data and read it when system is started everytime.(ie, like autostart)
so i am storing the data in xml( C:\Documents and Settings\All Users\Application Data\xmldata")and want to retrieve when system starts.
here xmldata is folder which i am creating
but i want to know will whether C:\Documents and Settings\All Users\Application Data will exists in all the windows languages or will it be different
plz help me in this issue
thanks all
venu
|
|
|
|
|
g venu wrote: C:\Documents and Settings\
the above folder came into exsistance from the XP onwards. There wasn't any folder like that before that version of windows. And about the future version....;)
nave
|
|
|
|
|
false, existing on my Windows 2000
|
|
|
|
|
toxcct wrote: existing on my Windows 2000
isit?
I directly migrated from 98 to xp. Thats why I am unaware of this...
nave
|
|
|
|
|
put "Im not sure" before such statements!!!!!
|
|
|
|
|
Sarath. wrote: put "Im not sure" before such statements!!!!!
I am not sure
nave
|
|
|
|
|
See SHGetFolderPathAndSubDir with CSIDL_APPDATA
|
|
|
|
|
thanx white sky and naveen
can i use GetAllUsersProfileDirectory() function so that i can retrieve the path such as
C:\Documents and Settings\All Users
But will it be same to the chineese windows version
b'coz my application will be distributed world wide
i should'nt get any problem.
tanx for reply
venu
|
|
|
|
|
|
CSIDL_COMMON_APPDATA yes you right and thanks for help
|
|
|
|
|
|
how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
|
|
|
|
|
SteamEngine wrote: delete a CStatic Object
A CStatic object created on the stack within a window is automatically destroyed. If you create the CStatic object on the heap by using new , you must call delete on the object to destroy it when you are done with it.
delete myObj;
DestroyWindow();
To destroy a C++ Windows object, use DestroyWindow, not "delete".
-- modified at 7:07 Monday 31st July, 2006
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: f you create the CStatic object on the heap by using new , you must call delete on the object to destroy it when you are done with it.
delete myObj;
naah you have to call delete MyObj after DestroyWindow()
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
SteamEngine wrote: how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
how did you created it~!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All,
Is there some class similar to CIPAddressCtrl (which is available in desktop MFC library), which
can be used in WinCE.NET platform, as MFC for Win CE does not support CIPAddressCtrl class?
If YES then plz tell me its details????
Regards
Frozen
|
|
|
|
|
What about a masked edit control?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
well i hav no idea abt that... i will check...
thanks for help......
any other way?
|
|
|
|
|
I have a CTreeCtrl derived control which is populated in the OnInitDialog handler, and then all items are selected still in the OnInitDialog handler. The items are successfully selected but when the dialog displays only the first item is highlighted. Does anyone know what I need to add to get all the items highlighted automatically when the dialog is doisplayed?
|
|
|
|
|
CTreeCtrl supports only single selection na? then how can u set selection to more than one item?
nave
|
|
|
|
|
Hello
I create a childview and also create process. I want to paint something in the childview. But I try to change the code in childview but some errors happen.
CString SelfTimer;
SelfTimer.Format(_T("%d"),_T("123"));
invalidateRect.SetRect(50,200,450,232);
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,255));
::SetBkMode(g_hTimeMemDC, TRANSPARENT);
::FillRect(g_hTimeMemDC, &invalidateRect, hBrush);
::SetTextColor(g_hTimeMemDC,RGB(0,0,0));
::DrawText(g_hTimeMemDC, SelfTimer, -1, &invalidateRect, DT_LEFT | DT_TOP);
InvalidateRect(HWND(param), &invalidateRect, false);
DeleteObject(hBrush);
CPaintDC dc(HWND(param));
if(g_hTimeMemDC)
TransparentImage(dc.m_hDC,invalidateRect.left,invalidateRect.top,invalidateRect.Width(),invalidateRect.Height(), g_hTimeMemDC,invalidateRect.left,invalidateRect.top,invalidateRect.Width(),invalidateRect.Height(), RGB(255, 0, 255));
the build error is left of '.m_hDC' must have class/struct/union in TransparentImage function
who could I fix the issue or the way I program is wrong??
Any suggestion is useful!! Thanks!!
|
|
|
|
|
Whats Application type?
CPainDC is a class derived from CDC
|
|
|
|
|
The application is to unuse the childview function but also want to paint in the childview. So I create a thread to paint out of childview.
When I push the button in childview, it set the event to the waitforsigleobject in ThreadProc and then paint the childview.
But I cannot build the codes successful, could u tell me what is wrong for the codes??
Any suggestion is useful!! Thanks!!
|
|
|
|
|
If you want to draw i think you need to WM_PAINT message and if you use from this message i think you dont have problem.
|
|
|
|
|
tryin to create modeless dialog...
m_dlg->Create(CMyDlg::IDD, &m_tabctrl/*CTabCtrl*/);// ASSERT(pWnd->m_hWnd == NULL); // debug error
constructor:
CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/)
//: CDialog(CMyDlg::IDD, pParent)
{
this->Create(CMyDlg::IDD, pParent);
this->ShowWindow(SW_NORMAL);
}
|
|
|
|