I am writing a C debugger ...I am using MFC for GUI development..
My req. is as follows & if somebody knows how to do or can give me some ideas, i will be thankful for them..Thanks David for ur first reply..
1. open C source file which retains standard coloring of keywords of C langauge ..&
2. a new view window which display line number & have capabilty to set break-points i mean some sort of bitmap..(like M VC++ editor have)
3. a shared vertical scroll-bar between these windows.
I am using RichEditView class for other operations like get line number on double-clk,etc..
Is there any way to insert a NULL value into database using CAccessor class, or a way to verify if the value fetched from the database is NULL? It seems to be value 0 in both cases, which is not the same as NULL. I'm using Microsoft SQLServer. Thanks.
My program is a dialog based program.From MSDN I know that I must gray the menu item in ON_UPDATE_COMMAND_UI handle,so,I wrote the program:
void CMenuDlg::OnUpdatePause(CCmdUI* pCmdUI)
// TODO: Add your command update UI handler code here
if( m_bPause )
It works in MFC SDI program,but it doesn't work in MFC Dialog based program.
It can disable the menu item,but it cann't gray the menu item.
There are no rights in Win9x or WinME.
There are rights, or privileges. You can determine these programmatically using GetTokenInformation. See PSS ID 119669 on MSDN for more details.
If you're talking about working out whether the user is an administrator, then that's PSS ID 118626 on MSDN.
If you're talking about file permissions, that's NTFS only, so the first thing is to determine the volume type. If it's NTFS, then you need to get to grips with ACLs, SIDs and the like (but it's not as difficult as it first seems...)
It is excited to see so many powerful windows control here. However, I am really quite new to MFC, so I am quite confused when entering the area of Doc/View structure. Say, how can I use the enhanced control in doc/view program, e.x How can I use the extended Tree control as base class for the TreeView instead using the one along with the MFC framework.
Why do you want to do that, TreeView is employs all the functionlality that tree control provides, If you do the samething you will comeup with ur treeview and will be doing the same thing.
So save ur time. If you are using MFC then make full use of it.
I want to migrate a windows application from one machine to another with its state intact.
I was thinking of doing this by saving the process address space (code, stack, heap etc) into a file taking it to the other machine and copying it onto the space of an identical application just started on machine 2.
Ofcourse I am assuming that the application does not have external dependencies like open network connections and file I/O happening. e.g word/notepad.
I am familiar with how to get the process table in Linux but need help badly for working with windows. How do you get the addresses of the process image? Any references... help would be greatly appreciated.
I was wondering if there was a way that I could find out when data was being sent and received by dial-up networking (RAS). I would like to write my own connection monitoring program but I am not able to find a RAS tutorial that will tell me how to do this. Please advise.