Thanks for the response. I am not sure how to answer your question. I know that when I run MS Word it comes up underlined. On the same system, when I run my program it does not until the user
hits the ALT key. I would like my program to be like MS Word. What should I do?
Thanks for the response. I looked at the URL you suggested. I am not up on all this registry stuff so I may have missed the boat. Are you telling me that should set the field NoChangeKeyboardNavigationIndicators in HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Myapp
where the name of my application is Myapp.
If I have this right, is my install script suppose to set this up? By the way, the application I am writing does not currently set any entries in the registry. However, I have a feeling it should.
Thanks for the response. If I understand your solution changing the registry value you suggest
will change it for every application on the system. That is not acceptable for my application. Maybe
I will just live with the default.
I would tend to ignore Word (Office in general) - Office is notorious for a) not using the standard Windows components, and b) not following Windows user interface guidelines. And the trouble with bucking the standard is that you're never going to benefit from improvements made in later versions of the OS.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I got an assignmet 2 make a program finds fourier expansion the specifications are:
It is required to write a program in order to which takes a time expression as a string and perform all the necessary parsing on the expression and generate the fourier series expansion of this expression. THe program should be able to recieve the period of the wave under study even if it was a piecewise continuous expression.
1) learn how to spell - don't use text speak either
2) learn how to use google - since this is an assignment likely you already have some resources, including your tutor, course-work
3) read the top question of this forum - the one that is titled "How to get an answer to your question"
when you've done that, post some code back here if you're still having trouble - we don't DO assignments for people - we help them with code - you havnt provided any yet.
So...what form is the time expression in? I'll presume it's something like x = sin(t)
The tricky bit is parsing the time expression. You will need an expression parser - you can find grammar for an expression parser in many of the grammars[^] on the ANTLR web-site[^]. Yes, I'd probably recommend you use ANTLR to generate the parser from a grammar - it even has its own IDE[^]! Might even suggest you use Java for the project, as ANTLR's Java support is more developed than its C/C++ support.
You then also need an automaton that can evaluate the expression you've parsed (probably with substitution of variable values). That will enable you to generate a time series. Generating the fourier series from that is trivial and left as an exercise for the reader
Spirit[^], which is another option for the parser generation, includes a calculator example that has a simple expression parser and an automaton for evaluating expressions, so that's another option.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Is it possible to add a new string resource at runtime? e.g. I would like to add "My Custom string" with the resource ID "IDR_CUSTOM_STRING" (with some unused value) to the string table.
We wish to allow our customers to customize the application. e.g. where it by default says 'Some Program' and 'Some file type (*.som)', they might use 'Bob's Program' and 'Bob's files (*.bob)'. That info in particular is all encoded into the IDR_MYPROGTYPE resource in the string table. The constructor for CMultiDocTemplate only uses this resource to set those strings as needed. I could define a new entry in the string table, and use that, but that works for only a single customization. To allow complete flexibility, I want want to generate a new string table entry based on some data file that is accessed before the DocTemplate is created (early in CMyWinApp).
As the resources themselves as part of the exe seems frought with problems, so I am happy to leave that alone. It just seems that at some point that data must be loaded and allocated somewhere, somehow. I just want to add a new one.
Or... if there is a safe way to do it, just modify the existing one.
I had seen ::UpdateResource() before but it operates on a file, not from with the same program. Oh, well. If I have to make a utility app to do it externally, so be it. At least now I have a template function to do the mechanics of changing the string without having to think about it too much.
Thanks for you help
I'm writing an MFC app that accesses a database. In the event of a DB user being denied access to a database object, I disable the relevant CView through an EnableWindow(FALSE) call. This works well. However, it has the potential to confuse users, who may wonder why the CView cannot be interacted with - is it a bug? Therefore, I'd like to have some obvious visual indication that the view cannot be interacted with, such as darkening it.
I'm not sure how a view can be darkened. I'd be willing to settle for some other obvious visual indication if it was easier to implement.
They can't see the records anyway - the view won't get populated. This is a database level permission. I already have the entire view non-responsive through my call to EnableWindow(FALSE) - from there, I just want a big visual cue that the view is not interactive, such as darkening the view.
What does it mean to close a view? Replacing my view with another view would probably be very clunky with my existing design - I suspect I will have to do some drawing to the view.
I'd rather have something that is based on the view when permission is not denied, such as a darkened version of the same thing, or overlaying of a padlock icon. That way, the user may get familiar with the general layout of the program without necessarily being able to use it all.
It ought to be possible for me to change the way that we draw to the device context through the CDC pointer, and make the CView appear different somehow - darkening it, or making it grayscale, or something else. I don't seem to be having much luck drawing to the device context after the base class implementation has been called; It just makes swathes of gray turn white.
I'm just wondering at the two MFC42 calls on top. These two are from two different classes. If my understanding is not wrong, it has to call GetNextAssicAt() method in CMapStringToPtr class but calling the method in CMapStringToString class. Could somebody help me here?
This application runs for few hours and processes thousands of messages and crashes randomly. Every time it crashes, points at same memory address.
Event description for crash: Faulting application DataConverter.exe version 126.96.36.199, faulting module mfc42.dll version 6.6.8063.0, fault address ox000234e4
This sounds like a kind of race condition to me. Are you accessing this map from two separate threads ? If yes, make sure that you protect the map against concurrent access (with a critical section for instance). The problem might appear because two threads access the map at the same time, so the map is in an invalid state for one of the thread.
I have one ocx control developed in vc++/mfc and later the same code has been modified to use in automation server..now the problem is we need to keep separate clsid for the ocx control for server to avoid any conflict but its not changing the clsid even after changed in odl file..
How can I load/insert an existing bitmap to the existing main application Toolbar? I do see where I can draw/Edit a new bitmap, but I have a bitmap that I downloaded from somewhere and I need to load that instead? How is this done usually?
It isn't working...In Explorer, I browse to where the bmp(s) are, I have Toolbar.bmp and MyBitMap.bmp, I tried opening toolbar.bmp and copying Mybitmap over it, also, just tried drag and drop without opening...I must be missing something, becasue i wouldn't think it would copy the bmp file over another file (the Toolbar.bmp has the image of the tollbar bitmaps, but not editable obviously)...What do you think am doing wrong?