|
You can't change the language of an IME editor. Each IME editor is built to support just one language. Windows provides IMEs for Chinese, Japanese and Korean, but no Thai, AFAIK.
|
|
|
|
|
I have something along the lines of:
typedef CList<MyObjPtr, MyObjPtr> PTRLIST;
MyObjPtr pMyObj1 = CreateObject();
PTRLIST* myList = new PTRLIST;
if(pMyObj1 && pMyObj1->isValid())
myList->AddTail(pMyObj1);
I know the pointer is valid and the list is empty, but when I try to add to the tail I get an exception. I traced it to where it's trying to new a new node.
Any ideas?
|
|
|
|
|
What kind of exception did you get?
Could you post the erro message?
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]
|
|
|
|
|
Memory access violation 0x000...5
|
|
|
|
|
Have you tried narrowing the problem down to just the code you've shown? I tried the following (with a few syntactical changes) and it worked:
typedef struct _MyObjPtr
{
public:
BOOL isValid( void ) { return 1; }
} *MyObjPtr;
typedef CList<MyObjPtr, MyObjPtr> PTRLIST;
MyObjPtr pMyObj1 = new _MyObjPtr;
if (pMyObj1 && pMyObj1->isValid())
{
PTRLIST* myList = new PTRLIST;
myList->AddTail(pMyObj1);
}
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I stepped through the code and it's narrowed to pretty much that. The AddTail is calling NewNode which it appears is trying to deference the pointer.
In afxtempl.h NewNode function (Line 931)
::new( (void*)( &pNode->data ) ) TYPE;
And it fails there.
|
|
|
|
|
I used CTypedPtrList<cptrlist, myobjptr=""> PTRLIST; and that seems to be working.
|
|
|
|
|
Hi
my program print a form-view correctly if it does not have scroll bar.
if scroll bar is present then we can print only visible area of scroll bar.
But i need to print full form-view with all control .
i.e. scroll bar should not be effect on print procedure.
many sample available but no one fulfill above requirement.
|
|
|
|
|
The view that you see on the screen is merely one 'page' which you can scroll up, down, left and right. After each scroll operation the view is repainted to show just the data within the current view. In order to print all pages you need to add some similar print logic to your program which will iterate through all your data formatting it correctly to the printer device of your choice.
It's time for a new signature.
|
|
|
|
|
Here is an old post of mine that describes printing in MFC in a generic way. It was written for CScrollView but I'm hoping it'll help regardless...Printing Sample[^]
|
|
|
|
|
Thanks for response
it work good but, my requirement is still open.
my form view have many control and scroll bar hide some control so
how can print full image of form view.
|
|
|
|
|
How are you trying to print it now. What does your "Draw" code look like? (small snippet)
|
|
|
|
|
fine,
I could not print formview properly that have scroll bar.
so i remove scroll bar.
|
|
|
|
|
Hi,
i have a CComboBox in my CDialog but after dialog is shown, CComboBox hide the cursor, caret!
Combo dont lose the focus, just hide the caret!
What to do to avoid this, is there any way for this, or is there any way to show caret in combobox again??
Thanks for any help
Arrin
|
|
|
|
|
change the style of combobox
1.By property
or
2 SetExtendedUI function
|
|
|
|
|
Hello,
thanks for answer, no changes
i call this funcion like this:
mycombo.SetExtendetUI(TRUE);
regards
Arrin
|
|
|
|
|
If you start typing, do the characters appear in the combobox? And does the caret reappear when you do?
|
|
|
|
|
Hello Friends
I am creating an application tht saved the image into multilayer TIFF format.but when I open that tiff image again I want to exchange the layers same as in photoshop.
Any Ideas?
Thanks & Regards
Yogesh
|
|
|
|
|
AFAIK, there is no explicit support in the TIFF format for "layers". you can save multiple images into the same TIFF file, but interpreting these sub-images as layers (as opposed to separate images) is something that will be entirely within your own application.
|
|
|
|
|
Hello Chris
Thanks for your reply .as you said that we can save multiple images into tiff file so that can be save in tiff format.So,for exchanging layers do i need to change in tiff file format or something else we can do with that?
Thanks & Regards
Yogesh
|
|
|
|
|
Please help me to find solution for drag and increase the size of list view control in win32
|
|
|
|
|
Just make the List View the child to your mainframe window and it should resize as you move and resize the mainframe. Or do I misunderstand your question?
It's time for a new signature.
|
|
|
|
|
thanks for the response i would like to explain my req clearly
wat i want exactly is to drag the list view only not the form form should be in fixed size ... but list view should be resizable in drag event
|
|
|
|
|
When you say 'form' I assume you mean that this is a Windows Forms CLI project. In which case you just need to adjust the properties of the list view to make it draggable, as far as I am aware.
It's time for a new signature.
|
|
|
|
|
I want to write a driver with MS Visual C++ 10 using WDK 7.1.0 but when I compile the source code I get this message:
ClCompile:
source.cpp
d:\winddk\7600.16385.1\inc\ddk\wdm.h(14198): fatal error C1189: #error : "No target architecture defined"
Build FAILED.
My CPU architecture is x86 so why does this error occur while x86 architecture is defined in wdm.h? and what's the solution?
|
|
|
|