|
maharaja pandian wrote: The instruction at "0x6c3b7f98" referenced memory at "0x00000048". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program
Probably some application which support Window 2000, IS not supporting XP.. you have manually debug the application to find which api or control is not working with window XP
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have a function in a DLL which tries to display a dialog box.
CAppDlg Dlg;
x = Dlg.DoModal();
x returns -1. GetLastError() returns 1812 which I believe transaltes to "The specified image file did not contain a resource section". I have no idea what this error means.
I've seen a few posts regarding this error in the forum but no definitive answer. Can anyone help me out with this ?
Thanks
Ethann
|
|
|
|
|
|
It is a "more severe" version of ERROR_RESOURCE_NAME_NOT_FOUND . Instead of not being to find the (dialog) resource you are looking for, the OS could not find any resources in the executable(s), period.
If you are trying to launch a dialog from a dialog template resource, either the DLL or the executable loading the DLL should have that dialog template available (and with the correct ID).
If it is in the DLL, but not in the EXE, then you may have a problem where the DLL is not added to the resource chain.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I think you need to read through MFC's technical note 58.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
How do i replace the '\' with "\\" in a lpstr?
char* st= "c:\windows\system\test.txt";
i want to replace all \ by \\... so that , the file test.txt can be reached.
??
VuNic
|
|
|
|
|
actually, if you write it like this, the compiler tries to escape the characters '\w' and '\t' .
if you receive the string from an application running, or from another dialogBox for example, then you don't need to replace the \ with \\ because the '\\' representation is only a design/coding time issue...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
ohh... that absolutely true.! no need to convert at all!! its working fine.
VuNic
|
|
|
|
|
Hello,
SDI(Single document interface) comes with a single view as default (AFAIK), but i want to create more than one view of a single document.
How can i do this in SDI?
Thanks,
Bekir
|
|
|
|
|
Look in the Doc/View articles section. There's a couple of articles written that describe exactly how to do that.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: There's a couple of articles written that describe exactly how to do that
Really, John ? I did not find anything that comes down to the basic level, only advanced stuff out there.
~RaGE();
|
|
|
|
|
I used a technique from one of them last week. It took all of 15 minutes to implement, and was mostly cut/paste.
Here's one: http://www.codeproject.com/docview/replacingview.asp[^]
Here's another (same author no less): http://www.codeproject.com/docview/switchingviews.asp[^]
The second one is the one I used because I need to keep both views around until the app is terminated. The article provides a way to switch views for SDI, MDI, and SplitterWnd apps.
The actual point of my original response was to show the person that if he just took the time to search instead of being lazy, he'd find the answer and be on his way a lot faster.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
-- modified at 13:57 Thursday 9th February, 2006
|
|
|
|
|
Thank you for the links and for your time John. I went to the Doc/View after reading your first post (out of mere curiosity) but obviously missed these two articles. I got stuck on such articles:http://www.codeproject.com/docview/nodoc_views.asp[^] which are a bit more elaborated.
John Simmons / outlaw programmer wrote: The actual point of my original response was to show the person that if he just took the time to search instead of being lazy, he'd find the answer and be on his way a lot faster.
I was perfectly aware of that and I totally agree with you. No offense meant in my post, it is only that I have been looking for a really simple tutorial and did not expect to have to look that closer to the article list to find that.
~RaGE();
|
|
|
|
|
Hello, sorry to disturb you all. I am newbie here. I would like to generate two graphs on the same axis at C/C++ platform. The first graph to be generated is an already recorded speech that will be displayed when one button is pressed. The second graph is displayed real-time as speech is spoken into microphone.
I would like to display these two graphs at same axis where first graph is displayed when a particular button is pressed while the second graph is displayed real-time.
Hope to hear you soon. Please help, please. thank you very much.
regards
bella
|
|
|
|
|
bella1988 wrote: I would like to display these two graphs at same axis where first graph is displayed when a particular button is pressed while the second graph is displayed real-time.
Exactly what is your problem.. i.e. You don't have any graph control or you not able to get the x adn y coordinate... please clear.. or you can try this canned search :-
Graphs Control[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi !!
I got an Application Error at SetActivePage(m_PropPage).This application Error occurs only in Release mode.but not in Debug mode.
How to solve this problem.
Can anyone Please help me....
regards,
klvin
|
|
|
|
|
|
klvin wrote: This application Error occurs only in Release mode.but not in Debug mode.
Very doubtful. It's highly unlikely that the error ceases to exist in Debug mode. You may not see signs of it, but I bet it is still there. You will need to set a breakpoint on the SetActivePage() statement and single-step into the code from there until you pinpoint the offending statement.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
hi...
i want to know, if we have a .dll file, how do we call method inside it from VC++ 6.0?
thx...
|
|
|
|
|
|
bluey12 wrote: i want to know, if we have a .dll file, how do we call method inside it from VC++ 6.0?
This section is full of article realting to DLL[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Access it with its .lib file or go by dynamic loading using LoadLibrary.
VuNic
|
|
|
|
|
can you explain more detail please...
i'm not good in visual c++...
thx...
|
|
|
|
|
oh.. sorry for the late reply, i didn't notice your reply.
when you ahve a dll, you can use it in two ways,
Satic , dynamic.
satic linking maps the functions in the DLL with the .lib file it has. it is done in the complie time itself. but in the dynamic linking, we load the function only when it is needed. that really reduces the memory consumpion but a little bit slow when compared with static linking., in static linking you can use the functions directly as if it defined in a .cpp implementation file. but the actual implementation of the funtion would be defined in the DLL. so you dont need to worry about that. what you have to do is to add the name of the .lib file in the project settings , link option.
for static linking you will have this combination of files
test.dll, test.lib, test.h.
(imple) (map) (interface)
in dynamic loading, you use
GetProcAddress to locate the function in the dll. so that it's loaded in the runtime.
is it ok for you?..
regards,
VuNic
|
|
|
|
|
hmmm... sorry for my very very late response...
i can't access code project or my email for long...
thank you for your reply, it's very helpful...
many many thanks...
btw, do you know about SPVTEXTFRAG in the SAPI?
regards,
bluey
|
|
|
|