|
I compiled my program in Win98 and it works fine. When I run it in NT, it gives me the following error:
The procedure entry point ShGetSpecialFolderPathA could not be located in the dynamic link library SHELL32.dll
I am not sure why. I thought maybe it is because IE 4+ or some other things which might update this file is not installed. But I have IE 5 and also SP3+.
Can someone please shed some light on this?
Thanks in advance!!!
|
|
|
|
|
|
MSDN says: Version 4.71 and later of Shell32.dll
So your NT system does not have 4.71 or later of shell32.dll. You get that version by installing the Active Desktop shell.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hi,
Do we have a method by which we can declare an array
of 16 bytes whose offset remains the same whenever the
program is compiled..
The program is an MFC (EXE)..
Sameer
|
|
|
|
|
Sameer Maggon wrote:
Do we have a method by which we can declare an array
of 16 bytes whose offset remains the same whenever the
program is compiled..
I seriously doubt whether that's possible!
Of course I could be wrong too.
By the way why would you want to do that? Perhaps there are other solutions to your problem
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
While terminating application for testing which i developed using c++ and ocx component i am finding a error maessage is displayed like..
The full err message is
Unhandeled exception in appl.exe(MFC40.dll):0xc0000005:access violation
next err message
6c6e5009 call dword ptr[edi+18h]
I am new to vc++ and have therotical knowledge of c++..
I hope u understand the problem and get back to me.
Thankx in advanced
|
|
|
|
|
Go to project settings an include debug information in your application. Look at some of the articles here on how to do it. Specifically, this by Joseph N NewComer. This will enable you to see the call stack and the problem may become clearer.
|
|
|
|
|
What does the call stack say?
Where in your program is this error occuring can be figured out from the call stack!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Thanx for reply mr Rama krishna and Nish
further regarding my application problem is that
call stack gives this information
Call Stack:
MFC40! 6c6e5009()
MFC40! 6c701124()
COleDispatchDriver::~COleDispatchDriver() line 85 + 15 bytes
MoPoints::~MoPoints() + 20 bytes
$E349() + 19 bytes
doexit(int 0, int 0, int 0) line 353
exit(int 0) line 279 + 13 bytes
WinMainCRTStartup() line 345
KERNEL32! 77e97d08()
Thankx a lot hope u will give me more tips on this..
smarty_sagar@rediffmail.com
Thanx once again
Neonave
|
|
|
|
|
|
Thanx again for reply
I found that we are not using OLE component properly so may be that error is coming..
Can any one help me on ColeDispatchDriver . This is where the error is occurring ,,as some one is developed the code and I am fixing the bug morever I am new to vc++ ,,so having some tough time with this,,
Can any one help me out with this…
Code some what look like this
// COleDispatchDriver
_AFXDISP_INLINE COleDispatchDriver::~COleDispatchDriver()
{ ReleaseDispatch(); }
_AFXDISP_INLINE COleDispatchDriver::operator LPDISPATCH()
{ return m_lpDispatch; }
I hope some one will come further and help me out with this..
Thanks in advance,,
Neonave
|
|
|
|
|
You have a Global Object of COLeDispatchDriver. You need to Release it in the ExitInstance of your CWinApp derived class.
Let's say the name of the variable is g_Dispatch.
In the ExitInstance call
g_Dispatch.ReleaseDispatch
This will fix the problem
|
|
|
|
|
Can anyone give me any info or good sites to obtain information on creating C++ programs that are skinnable? I am currently a student starting my C++ intro class. And I do not want to create the same plan programs as the rest of the class.
Thank you,
Kulwen
|
|
|
|
|
There are at least two articles here on CP.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Hello friends,
User can stop the device through the "unplug or eject hardware" application (on the taskbar) in Windows 2000.
How can I use this function and stop the device in my application ?
Please give me a suggestion, thanks a lot!
Good day.
Eric Lee
|
|
|
|
|
im using a WH_CBT hook (passing in the value from GetCurrentThreadId() in SetWindowsHookEx)... and im catching the message HCBT_CREATEWND.
now, im trying to catch the creation of ALL menus in my program, but only some are caught:
1) the top menu i click on first to enter the menu loop is NEVER caught in my hook
2) the right-click menu in the caption bar almost always gets caught
3) the other main menus sometimes get caught in the hook
can someone explain what i'm doing wrong, or lead me to an example/tutorial?
thanks
- Roman -
|
|
|
|
|
My application has a serious memory leak problem. It is because I am not able to release the memory consumed by the memory context. In general I save an image in 2 memory context variables. One is used to hold latest data and the other one holds previous data(used for undo purpose). I process the image in the memory context and after processing i display it on the device context. I am reusing the same memory context variables for processing the image.
But i believe reusing of memory context causes memory leaks therefore i thought I would the image information in an array. I will process that array and save in the memory context and then display it on the device context. But in order to do this I tried the following ways to release the memory consumed by the memory context.
1) memDC.SelectObject(oldbmp);
2) ReleaseDC(memDC);
3) memDC.DeleteDC();
But i am still facing the memory leak problem. Please confirm if reusing memory context is possible and how to release the memory consumed by the memory context.
Thanx in advance.
Einstein's Assistant
|
|
|
|
|
you're creating and deleting the DC over and over ? Why ?
I don't see why you could not have a CDC as a member, and I'd suggest your leak is elsewhere, probably to do with the way you handle bitmaps. What OS are you using ? W2000/XP catch GDI leaks for you, and W98 comes with a tool to watch GDI leaks specifically, so you can see if that is what you are leaking. You'll know soon enough, because your whole system will stop drawing stuff ( buttons, windows, etc. )
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I am working Win2K. Currently I am not deleting the DCs. I am just reusing the memory context to bitblt the processed output to the screen. I realized that my application has a leak by using windows task manager. And after lot of memory is consumed for pull down menus i just see black box. So I guess it is GDI memory leak.
I am not creating and deleting DC over and over again. I just create them once when a image is opened. I.e I call the saveimg method which saves the image in the memory context. I want to release memory used by memory context because I fear that reusing memory context is one of the cause of memory leak. To work around this problem I thought I would copy the pixel color values in an array and then release the memory consumed by the memory context. But unfortunately I am not able to release the memory by any the three methods.
Thanx in advance.
Einstein's Assistant
|
|
|
|
|
moswal wrote:
I am working Win2K.
Therefore you are not leaking GDI resources - Win2000 will clean them for you, as I said.
moswal wrote:
I realized that my application has a leak by using windows task manager. And after lot of memory is consumed for pull down menus i just see black box. So I guess it is GDI memory leak.
Not under W2000.
moswal wrote:
But unfortunately I am not able to release the memory by any the three methods.
I'm pretty sure that's because you're barking up the wrong tree.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
But is it true that reusing Memory context object does not cause any memory leak.
Thanx in advance
Einstein's Assistant
|
|
|
|
|
Yes, that is also true, so long as you manage it's state effectively. Either way, the point is that this is not your problem in this case.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Hi,
I am still unable to pin down the source of memory leak. If I upload my source code can u help me to solve the memory leak problem.
Thanx a lot in advance.
Einstein's Assistant
|
|
|
|
|
Of course. Reask the question as a new post, so others see it too, in case I don't spot the problem.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002
|
|
|
|
|
Hi again,
I uploaded my whole application in yahoo's briefcase. Please go through it and help me spot the source of memory leak.
Thanks in advance.
userid : moswal0071
password : cooldude
Einstein's Assistant
|
|
|
|