Hello, I'm creating a setup project for my application. I need to ask user to specify a directory during installation, which I have to set a registry key value to that directory. I've done this for installation directory but I don't know how to ask user to specify another directory as well and how to set the registery accordingly. Any idea would be appreciated. Thanks & Regards P.S. I'm using wisual C# .NET -- modified at 8:46 Monday 22nd May, 2006
mfc_surfer
Posts
-
Installation Script [modified] -
Problem with Graphics & CEdit scrollingWell.....actually I'm going to draw a graph (some colored rectangles that are connected by some colored arrows) on a dialog. Since the display sould be always like a single vertical line of boxes with a scrolling feature, I though CEdit might be a good choice. Now.. I'm waiting for your suggestion for such an implementation :) Thanks a lot
-
Problem with Graphics & CEdit scrollingI have a CEdit control on a dialog box and I'm creating a dynamic rectangle on the CEdit but it doesn't scroll vertically when I put the rectangle on the bottom of the CEdit?!! I've set the multiline+ vertical scroll parameters Please help me! my code has come below: CRect rc, statusRect; GetDlgItem(IDC_GRAPH_EDIT)->GetWindowRect(rc); CWnd* pWnd = GetDlgItem(IDC_GRAPH_EDIT); ScreenToClient(rc); statusRect.top = rc.bottom - 40; statusRect.bottom = statusRect.top + 20; statusRect.left = rc.Width()/2 - 40; statusRect.right = statusRect.left + 80; m_dynamic = new CButton; m_dynamic->Create("Dynamic",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW|BS_MULTILINE,statusRect,pWnd,2000); m_dynamic->SetFont(fontGeorgia); m_dynamic->SetColor(BLUE, LBLUE); m_dynamic->ShowWindow(SW_SHOW); I've tried the following codes but it didn't help: ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->SetSel(GetWindowTextLength(),-1); or ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->PostMessage(WM_VSCROLL, SB_BOTTOM); UpdateData(TRUE); or ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->LineScroll(2); Any idea or suggestion will be appreciated. thanks
-
How can I Distribute N rectangles into one rectangle in most appropriate manner?Sorry! I had forgotten to include the description :) I have a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I mean in a way that it look like they'ven been put around some circles not just one circle.
-
How can I Distribute N rectangles into one rectangle in most appropriate manner?Sorry! I had forgotten to include the description :) I have a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I mean in a way that it look like they've been put around some circles not just one circle.
-
How can I Distribute N rectangles into one rectangle in most appropriate manner?Hi all, I'm having a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I'm looking for an algorithm to help me calculate the positions where I should draw the N rectangles. Any suggestion would be appreciated.
-
Draw state machine diagramHi everybody I'm going to draw a state machine diagram using MFC classes. I'd like my program to: 0. display the diagram on a dialog 1. display this diagram by colored, 3D rectangles and arrows 2. highligh some of the arrows 3. locate the rectangles considering dialog size. Any ideas, suggestion, or links would be appreciated :) regards
-
Urgent!!How to limit used resources?I have an SDI application, which crashes when running on win98. It uses some resources when running that are not really required but I don't know how I can limit the used resources. Actually, when I run more than one instance of this application it crashes with error message: "This program has performed an illegal operation and will be shut down." I'm debugging it and monitoring the used resources (some dialogs are displayed as in use in resource symbol dialog of VC++ while debugging) and see that it uses some unnecessary resources; It indicates that some dialogs are in use, which are not involved with part of the action I'm performing by the application. any idea will be appreciated
-
Core dump on WIN98Hi, I have and SDI application that works properly on win2k & xp but core dumps when running on win98. The application crashes with error message "This program has performed an illegal operation and will be shut down." I think that it's because of over using the resourses. Could you let me know how I can limit using the resoruces? Any idea would be appreciated. Regards
-
line comparison on word basisI need and algorithm or a sample code to compare two lines on word basis and show added/deleted/changed words within lines during comparison. Any suggestion would be appreciated. Thanks
-
How to know if Oracle server connectivity is Okay?I need to monitor oracle server connection through run time and close the application as soon as the connection to oracle server is lost. Any suggestion would be appreciated? Please also let me know if you have a good idea for the monitoring than creating a thread?
-
How Can I determine the Connection State of My Local System?My application connects to the internet using functions in ras32.dll I would like to know if my system is connected to the ineternet? I've used the following code but it returns false both when connected or disconnected :( Online() { BOOL bRet; DWORD dwState = 0; DWORD dwSize = sizeof(DWORD); bRet = InternetQueryOption(NULL, INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize) && (dwState & INTERNET_STATE_CONNECTED); return bRet; }
-
Urgent! INI file sampleCouly you give me a sample of creating an ini file and reading from and writing on it?
-
Urgent! CFG filesThanks for your reply :) I'm going to use that in an MFC application to configure oracle connection. I want to use windows .INI style.
-
Urgent! CFG filesI'm going to use that in an MFC application to configure oracle connection. I want to use windows .INI style.
-
Urgent! CFG filesHow can I create a cfg file and read from or write on it? Thanks for helping!
-
How Can I pass a dynamic message from a parent class to its derived class?I've implmented OnSize() in child classes and the page itself is resized but the controls are not :confused: I'm using this code to resize the controls and it works in the parent class: BEGIN_DYNAMIC_MAP(CPropPageTabular,CPropPageItemize) DYNAMIC_MAP_ENTRY(IDC_STATIC_REP_OPTIONS, mdResize, mdResize) ... END_DYNAMIC_MAP()
-
How to override CPropertySheet::RemovePage(int nPage)?It helped Thanks a lot :)
-
How to override CPropertySheet::RemovePage(int nPage)?Int the following code, I'm overriding CPropertySheet::RemovePage(int nPage) How can I return a pointer to cdxCDynamicPropPage? class cdxCDynamicPropSheet:public CPropertySheet {} class cdxCDynamicPropPage :public CPropertyPage{} void cdxCDynamicPropSheet::RemovePage( int nPage ) { ASSERT_VALID(this); // remove the page externally if (m_hWnd != NULL) SendMessage(PSM_REMOVEPAGE, nPage); cdxCDynamicPropPage* page = ??? page->m_pSheet = NULL; }
-
How can I override CPropertySheet::RemovePage(int nPage) in a derived class?I've derived my propertysheet classes from a class, which has implemented RemovePage as: void cdxCDynamicPropSheet::RemovePage( cdxCDynamicPropPage & rPage ) { ASSERT(rPage.m_pSheet == this); rPage.m_pSheet = NULL; } but there's no implementation for CPropertySheet::RemovePage(int nPage) I'd like to know how I can implement that.