HI all; I am building an SDI application which has a dockable CDialogBar containing tabs and listControls etc... However,this CDialogBar is modeless. I need to access the list control and dynamically remove or add items to them. The problem is that i just don't know how to access the variable of listcontrol in a modeless dialog. I have tried many methods but it keeps giving me assertion errors since the pointer to the modeless dialog is lost. Could anybody please help me, i badly need this and i need to present this application for my final year project next week. Thank you; Krugger
krugger
Posts
-
Modeless dialog problem -
HTML help in Visual C++ projectHi all; I am building an SDI application in Visual C++ for my final year University project. I have created a compiled html file for the help of my application. However, i am having some problem including it in my menu. I need it to start when i use the help command found in the help menu.Can somebody please help me to make it work. I badly need this; Thank you
-
Unreferenced memoryHi all; I am building an SDI application and have used SkinMagic to provide a convenient skin to the software. It works fine but when i close the application (either by using the X on the window or by clicking 'close' in my application), i get an error after the window has closed. The errors goes something like this: The memory referenced @ xxx could not be 'read'. Its due to the use of the Skinning library but i really don't know how to cut it out. Could you please help me. I badly need this. Thanks :(( Krugger
-
Modeless CDialogbar:((Hi all; I am a final year student @ Uni and i'm building an SDI application for my studies.I am using a dialogbar acting as a modeless dialog with some controls scattered on it here and there. The problem is that i need to handle these controls (e.g ListControls etc..) within another class. When i try to do so, the compilers harshly complains that the window handle is not valid. I know that Modeless dialogs do lose their handles after creation, but i really need to access the controls on the dialogbar. Can anybody please help me, I really need this guys. Thank you; Kruger
-
HWND problem with list controlHi all; I am having a serious problem with an application that I am currently developing. It is an SDI application consisting of a CdialogBar (Well, some sort of derivation of that class atually). I have to initialise tabs and add list controls and tree controls on them. This works just fine as I have added initialisation code to the InitDialogBar() function that I have created for the DialogBar. The problem is that I need to fill these controls (list and tree) dynamically. This can only happen when users log onto the program. InitDialogBar() is triggered well before user log-in. So I have created a function in the DialogBar class to add/remove unnecessary items in the controls when user log-in. I use a global pointer to access this function in the login-dialog stuff. However, I always get the following assertion error: AFXWIN_INLINE HICON CWnd::SetIcon(HICON hIcon, BOOL bBigIcon) { ASSERT(::IsWindow(m_hWnd)); return (HICON)::SendMessage(m_hWnd, It occurs in line 309 of AfxWin2 Obviously, it is requiring a handle to the DialogBar but I just can’t figure out how to make it work as I am quite new to Visual C++ programming. Can somebody, please please help me. Thank you, Krugger
-
HWND problem with ListControlHi; I am building an SDI application which requires a list control found on Tabs of a DialogBar. I managed to initialise the list control to some value. However, users of the tool are required to log-in and the list control is supposed to fill dynamically according to their log. I tried some piece of code to get it done but i got an ENORMOUS assertion error. This is what i get when i move to debug mode: _AFXCMN_INLINE int CListCtrl::InsertColumn(int nCol, const LVCOLUMN* pColumn) { ASSERT(::IsWindow(m_hWnd)); return (int) ::SendMessage(m_hWnd, LVM_INSERTCOLUMN, nCol, (LPARAM)pColumn); } Can someone please help me to understand what this means and possibly how to overcome it. I badly need this. Thank you; Krugger
-
CDialogBar does not support controlsHI all; I am building an application which should have a tab control on a CDialogBar. Visual C++ gladly added the dockable dialog bar for me but i could not figure out where to put the code to create the tab control since the OnInitDialog() function is simply ineffective. Can anybody please help out. I need to know where i should place my code to create the TAb control on the dialogbar. I badly need this guys; THanks Krugger
-
CDialogBar problemHI all; I am building an application which should have a tab control on a CDialogBar. Visual C++ gladly added the dockable dialog bar for me but i could not figure out where to put the code to create the tab control since the OnInitDialog() function is simply ineffective. Can anybody please help out. I need to know where i should place my code to create the TAb control on the dialogbar. I badly need this guys; THanks Krugger
-
Programatically creating DSNHi all; I have created an application requiring a DSN connection. Being myself new to Visual C++, i could not figure out how to do it "DSN-less". Now, i need to add the DSN programatically since i don't want users to create it themselves. Can anybody please help me out. My database is an Access database named: datastructor.mdb It is found in c:\datastructor and the password is datastructor Can somebody plz plz help. I badly need very fast Thank you before hand; Krugger
-
XP style projectHi all; I am currently working on an application aimed at being a learning tool. Well, i'm sort of behind schedule and i need a quick means to render my project using an XP button and menu style. Can somebody please help me in finding the "magic" classes and on how to use them? Thank you Regards; Krugger
-
Unselecting Radio buttonsHi all; I have a bunch of radio buttons acting like a group of radios. I have a single variable pointing to them and i need to have these unselected as soon as i have done some processing, ie i need to initialise them. Can somebody please help me out. Thanks krugger
-
Executing a console application from an SDIHi all; I need to execute a console program when the user in my application clicks a button on my SDI dialog. Can anybody please help me to find a way how. Thank you krugger
-
Child DialogBar:cool:Hi all; I badly need a DialoogBar in my application. I have include the Dialog Bar included in "registered visual c++ components" to my project and it works just fine. The only problem is that i need to implement tab control on the DialogBar. In order to create, initialise and attach items to the tab control, i need to add a snippet. When i add the snippet in OnInitDialog for a modal dialog, it works fine. The problem is that the DialogBar is of style -> child (Not modal) and i really don't know which event to call to create the tabs on the DialogBar. Can somebody please help me on this thing. I really really need this very quick. Thank you beforehand guys; Krugger
-
DialogBar and Tab Controls:eek:Hi all; I badly need a DialoogBar in my application. I have include the Dialog Bar included in "registered visual c++ components" to my project and it works just fine. The only problem is that i need to implement tab control on the DialogBar. In order to create, initialise and attach items to the tab control, i need to add a snippet. When i add the snippet in OnInitDialog for a modal dialog, it works fine. The problem is that the DialogBar is of style -> child (Not modal) and i really don't know which event to call to create the tabs on the DialogBar. Can somebody please help me on this thing. I really really need this very quick. Thank you beforehand guys; Krugger
-
Microsoft Chart in Visual c++Hi I badly need a chart within an application that i am building. It should accept values from the database and draw lines but however, i was faced with a major problem, LACK OF DOCUMENTATION. Can somebody, please, help me to implement a simple bar char in visual c++ 6.0. Thank you for your precious help. I really need this stuff quick. Krugger
-
Microsoft Office Chart 9.0Hi all; I am building an application which will need to present quite a few statistics. I was wandering whether to use Microsoft Chart or MS Office chart 9.0. Anyway, can anybody help me in finding a tutorial on eithe please. I badly need it. Thank you; Krugger
-
Disabling menu selectionHi all, I am building an application which has a log-in dialog. I need the menu and toolbar selections to be diabled in the beginning and i need them to be active only when a valid user logs in. Can you please help me in achieving this? Regards Krugger Krugger
-
Dialog closes on EscapeHi all; I have an application which has a log-in menu. The whole stuff works fine but the only problem is that if a user hits "Escape" while my log-in menu is on, the thing just disappears leaving him/her with all the program functionality without even logging on the system!! Obviously something's going wrong! Can u please help me to stop the dialog from closing when i hit Escape. Thank you guys; Regards Krugger
-
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)Hi all, i am building an application and i need a web browser within the tool. I have added an activeX webbrowser control and it works just fine in my view class. However, when i try to access outside the view it either via a function or a pointer, i get the following assertion error: ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least) if (m_pCtrlSite == NULL) Can somebody please help me out. I've spent days on this stuff and i am well behind schedule. Thank you; Krugger
-
Datatype conversionHi all; I am writing an application which will have an ADO-based database connection. In order to send stuff to the DB, i need to convert variables from CString, char, int or Date into variants. However, it does not work for int and i still cannot figure out how to add data in a field whose type is date. Could somebody please help me. Thanks guys Krugger