|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thank you. The application i am doing is dialog based, it does not use any document and view architecture really (so no RegisterShellFileTypes), however, i feel strengthened in my belief that this whole file association thing under windows is very badly designed. I think i have now 3 possible ways i can go:
-forget about the whole file-association crample
-have the users run the program as administrator if they ever want any file associations (and i guess changing the whole idea so the program checks for file associations only if it is runned as admin because otherwise it can't change anything on it anyways...)
-try to "elevate" my program under Vista to be able to change registry entries, there doesn't really seem to be any elegant way to do this (you can't change the priviledges of the process once it is already running)
Here[^] it says to use RegOverridePredefKey to "remap" writes to HKEY_CLASSES_ROOT to HKEY_CURRENT_USER, however i do not see how this would help anything since according to the docs it is not HKEY_CURRENT_USER where any registry modifications must go in order to get one's program to be a "default program".
One would think Ms would make something this "basic" as creating file associations more...simple and "standardized".
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
how to resolve 0xC0000005: Access Violation.please let me know
kir_MFC
|
|
|
|
|
kir_MFC wrote: how to resolve 0xC0000005: Access Violation.please let me know
Don't access memory that you're not allowed to.
i.e. Silly question, silly answer...
BTW possibly if you post the offending code then we could help 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]
|
|
|
|
|
The same way as you fix the previous error message you posted: by using your debugger. Start debugging your program (press F5) and see where the code crashes. Once there you can inspect the different variables to see if everything is as expected. You can also put breakpoints (F9) to break your program at a certain location.
You've been posting on CP for quite a long time already, it is time you learn to use your debugger properly. There's no way you can write quality software without using it. It should become your best friend when fixing problems in your application. Once you know how to use it, you'll see that it will make you gain a HUGE amount of time. So, the time spent in learning how to use it properly is a very good investment, believe me.
|
|
|
|
|
I implemented grep command in win32 console application using vc++ 6.0.i encountered with following problem.grep.exe has encountered a problem and needs to close. We are sorry for the inconvenience.please let me know the solution
kir_MFC
|
|
|
|
|
Use your debugger to locate the exact problem. There's no way to find the source of the problem with so little information.
|
|
|
|
|
Use your debugger to step into your code. Narrow down the problem, post it here with any relevant source code and the call-stack. Only then somebody will be able to help you.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Have you tried this?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Is there any device so that I can attach the device to the computer and Insert my sim to the device . How can I develop the software so that I can send the SMS through the computer via that device.
Trioum
|
|
|
|
|
yes - you need to look at purchasing a GSM/GPRS modem
'g'
|
|
|
|
|
HI,
I want to write c++ String Functions using STL string class on Linux OS.
Is this string class error free ?
I read some where these below lines.
" The Standard Template Library (STL) that is included with Microsoft Visual C++ 6.0 is not safe for multi-threaded applications."
http://support.microsoft.com/kb/813810[^]
is it Safe in Linux multi threaded applications ?
Thanks,
Rayalu.
|
|
|
|
|
STL collections are not thread-safe. You can synchronize them with a mutex when you are accessing them from more than one thread.
--
Si dos montan un caballo, uno debe ir detrás.
|
|
|
|
|
|
Member 6775743 wrote: The Standard Template Library (STL) that is included with Microsoft Visual C++ 6.0 is not safe for multi-threaded applications
That means the library that comes with MSVC 6.0 was not to safe to use in multi-threaded applications even if the containers were not shared among threads. If you use a more recent version of MSVC (or even MSVC 6 with STLPort), that should not be a problem. Of course, you should still need to synchronize access to container objects that are shared between threads.
|
|
|
|
|
Hi,
I have the "Analog Meter Control" class by Mark C. Malburg.
I downloaded this from code project only.
Now I want to add the print facility to that control.
how could I make this, any suggestion and directions are welcome.
Thanks in advance.
|
|
|
|
|
I would say:"Why don't you post it in the right place?", but you've already done so. Hence I say:"Good luck!".
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 to All,
Could you please clear my following doubt.
I have 3 class with multilevel inheritance as follows,,...
class A
{
public:
A()
{
s();
}
virtual void s()
{
printf("\nIn A");
}
};
class B:public A
{
public:
};
class C:public B
{
public:
void s()
{
printf("\nIn C");
}
};
int main(int argc, char* argv[])
{
A *ptr = new C();
}
when i create an object of C,...by theory it should call always the method S of C....am I correct?...but when I called C from A's constructor Its calling S() of C....Why so?...Could anyone please explain me the reason and some points on it??
thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
hrishiS wrote: but when I called C from A's constructor Its calling S() of C....
You mean it is calling s() of A, right ?
That's normal because when A is being constructed, it's virtual table is not create yet, which means that the call can't be redirected properly. So, the rule is simple: never call a virtual function from within a constructor.
Read this[^] for instance.
|
|
|
|
|
Not quite, Cedric - in A's constructor, the object has A's v-table. See the C++ 98 Standard, Section 12.7-3.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
When u create base class pointer as derived class using new, it first allocate memory for base class one by one, call their constructors, initialize their member variables , finally it call declared class constructor(here it is Class C). since fn s() is called in class A's Constructor, it invoke its own fn even though u declared it as virtual.
A *ptr = new C();
if you define like this ,
A *ptr = new C();
ptr->s();
Class C's fn of s() will be invoked!
hemmalatha.g
|
|
|
|
|
When constructing an object, base class constructors use that base classes virtual function table. So, when you call C's constructor, the first thing it does is call B's (implicitly defined) constructor, which call's A's constructor. Within A's constructor, only virtual functions defined in A can be called. Within B's constructor, only virtual functions defined in A or B can be called. Within C's constructor, virtual functions defined in A, B or C could be called.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Kindly let me know, how to use endorsement option in the scanner using twain
|
|
|
|
|
This is the C++ forum.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I use twain.h in vc++ application for scanner operation. twain.h file contains n number of capabilities (like CAP_DUPLEXENABLED,ICAP_XRESOLUTION,ICAP_AUTOMATICROTATE etc) which are supported by scanner. kindly help me how to use CAP_ENDORSER and TWEI_ENDORSEDTEXT capabilities to do endorsement in the scanner.
sujtha
modified on Wednesday, December 9, 2009 5:13 AM
|
|
|
|