|
I'm surprised you didn't have this problem before under windows XP when your users ran as a non-administrator.
What do you say? You required your users to make themselves vulnerable to messing up their system by visiting one bad website?
Shame on you sir!
/rant over.
Can you not change the permissions on the few registry keys you need to get access to? I'd need to check on vista at home, but regedt32 (rather than regedit) will let you do this.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hello everyone,
When open or delete a file (or something else) by a handle, there is error like the handle is occupied by some other parties.
My question is, what is the general technique or tools to find out which process occupies the handle?
thanks in advance,
George
|
|
|
|
|
Im not sure do you need to GetModuleFileName?
|
|
|
|
|
No Hamid,
I do not mean to get the name of the handle, but mean to get the name of the module/binary which holds the handle. Any ideas?
regards,
George
|
|
|
|
|
|
Thanks Naveen,
I have tried to install this tool, but it seems it only works for Windows XP and Windows Vista from error message box?
I need to debug on Windows Server 2003. Any ideas?
regards,
George
|
|
|
|
|
George_George wrote: I need to debug on Windows Server 2003. Any ideas?
Ya it support only, XP and Vista, if you want it work on 2003, you need to rebuild the driver code plus some other modifications.
Any way This[^]utility seems to support window 2003 also.
|
|
|
|
|
Thanks nave,
I have found out Process Explorer also has similar function.
regards,
George
|
|
|
|
|
Hi all.
I am trying to open Xml file using parser..
I am using MSXML2.dll.
When i debug It is throughing Exception in this line
/////////////////////////////
EVAL_HR(objDOMDoc.CreateInstance("Msxml2.DOMDocument.2.0"));
/////////////////////////
In this line i am getting Error...
when I used MSXML4.dll..It is showing error "Cannot open MSXML4.dll..
any suggestions.
Thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
When dialog initialization, OnSize(UINT nType, int cx, int cy) run times more than one. The cx is Specifies the new width of the client area, but
cx is not same in all times. How to get the right cx which is the real size?
|
|
|
|
|
hanlei0000000009 wrote: cx is not same in all times. How to get the right cx which is the real size?
Each time it represent the current real size. The last time is possibly of interest for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
if you want the size, call GetClientRect() in (and after) OnInitDialog
Greetings from Germany
|
|
|
|
|
Hi,
Can anyone guide me to write a VC# (.Net 2008) Class Library that can be used in VC# & VC++ (.Net 2008) code?
If I have defined a preprocessor macro XYZ (#define XYZ) in VC#, then how to check that macro in VC++ (using #ifdef, #else, #endif)? Because I tried it, but it was not working properly.
- Aniket A. Salunkhe
|
|
|
|
|
Aniket Salunkhe wrote: Can anyone guide me to write a VC# (.Net 2008) Class Library that can be used in VC# & VC++ (.Net 2008) code?
I dont know what do you need?
|
|
|
|
|
Hi,
I want to create a VC# dll which will have Class defined in it.
Then I want to use that class (from the dll) in other codes which are written in VC# & VC++.
For that I want help to write such dll.
Regards,
Aniket A. Salunkhe
|
|
|
|
|
I think you missed the forum.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I think this question depends to C#,Managed c++ and c++.
|
|
|
|
|
Well, if I need some help about writing C# code then I ask the C# forum. Am I wrong?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
No thats right because you are a professional member on the codeproject.
|
|
|
|
|
Hamid. wrote: because you are a professional member on the codeproject.
Well, you'll become soon, I suppose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
I have an activex control subclassed from SysListView32. I wanted it to appear and work like the property grid the we see in VS 2003/2005.
I was able to get the look right. The problem is even though I added items using ListView_InsertItem, these items are not visible on the list control.
In PreCreateWindow, I am setting the style like this:
cs.style |= LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_OWNERDRAWFIXED;
In OnCreate, I am adding the columns and a single item like this:
ListView_InsertColumn(m_hWnd, 0, "Empty");
ListView_InsertColumn(m_hWnd, 1, "Property Name");
ListView_InsertColumn(m_hWnd, 2, "Property Value");
LVITEM lvItem;
lvItem.mask = LVIF_TEXT | LVIF_PARAM;
lvItem.iItem = 0;
lvItem.pszText = "";
ListView_InsertItem(m_hWnd, &lvItem);
ListView_SetItemText(m_hWnd, 0, 1, "Properties")
I also used OnCustomDraw, OnEraseBkgnd & MeasureItem methods to archive my look and feel.
Please help !
|
|
|
|
|
thammadi wrote: cs.style |= LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_OWNERDRAWFIXED;
if you specify LVS_OWNERDRAWFIXED , you have to handle the DrawItem() function. In your case since your not handling the owner draw, remove the LVS_OWNERDRAWFIXED style.
|
|
|
|
|
I removed LVS_OWNERDRAWFIXED , even then the inserted item is not visible.
|
|
|
|
|
Whats the return value of ListView_InsertColumn and can you see items if you remove LVS_OWNERDRAWFIXED?
|
|
|
|
|
removed LVS_OWNERDRAWFIXED , items still not visible.
|
|
|
|