|
Take a look to the answers I gave some time ago. In this link you will find an index of my other answers.
Thema: One document - More than one View
I will write an article explaining all step by step.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
|
|
Hello everyone,
I have an MFC application with CFormview class. there is an Activex embedded on the form view. I have also declared a variable for the activeX through which i control all the functionalities of the activeX. Now there is another window with a customised list control. So what i am aiming for is, whenever i enter some value in the listcontrol that value should be wrapped in an object and passed to this activeX control. How do i access the pointer of the activex control from the CList class. I have tried declaring a pointer of the object in the view class and then passing that value to the Clist class but that is not working. Can anyone provide any alternative solution?
|
|
|
|
|
i think u should declare a varaible and
modify the Serialize fun and in listctl command use
CEditStringDlg myDialog;
myDialog.listcontrolvar= declared variable;
if(myDialog.DoModal() == IDOK &&
myDialog.listcontrolvar!= declared variable)
{
declared variable= myDialog.listcontrolvar;
UpdateAllViews(NULL);
SetModifiedFlag();
}
|
|
|
|
|
p_ wrote: modify the Serialize fun and in listctl command use
modify the Serialize fun and in listctl command use
Well sorry i am a newbie... can you explain this...?
|
|
|
|
|
Can anyone tell me about the inner mechanism of Region.IsVisible(Point pt) function? ie i want to know ins and out of the function.
|
|
|
|
|
This is for WFC and Java, isn't it?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
|
Hi
I have around 6 yrs experience in C++ & Win32. ( Zero knowledge in .NET till now )
I am looking for some Microsoft Certifications in .NET.
Which kind of certification suit for me and which all papers should i opt for.
Please help me
Thanks
Anil
|
|
|
|
|
anilFirst wrote: I am looking for some Microsoft Certifications in .NET.
With no experience, why would you bother? The whole purpose of a certification is to show that you know about, and have used, the technology.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi
I have a problem (sorry por my english)
I need to make a Debug in C++ or ansi C
Details: i have a project to get the "Character Name" from a game, so, i'm just need to apply a Debug Code.
A friend give me that ASM Code (and works)
005F60D0 > \8D41 1C LEA EAX,DWORD PTR DS:[ECX+1C]<br />
005F60D3 . 85C0 TEST EAX,EAX<br />
005F60D5 . 74 06 JE SHORT Engine.005F60DD<br />
005F60D7 . 66:8338 00 CMP WORD PTR DS:[EAX],0<br />
005F60DB . 75 02 JNZ SHORT Engine.005F60DF
i need to get the EAX value into a char value (from C)
so:
- how i can make a C code to get into the subprocess (a dll) and get the EAX value ???
google didn't give me a result
PD: This is my first code debug
|
|
|
|
|
use __asm to add assembly code in the C function.
there, I think, you can type a line like:
<br />
UINT MyVar;<br />
__asm{<br />
...<br />
move EAX MyVar;<br />
....<br />
}
(not sure on the sintax...take a look on web)
Russell
|
|
|
|
|
I am trying to rotate a CEdit control so that it's vertical on the dialog and the text is read from top to bottom. Is there an easy way to do this?
Thanks.
|
|
|
|
|
I don't know of any built-in support for this.
Rich edit controls have a vertical style for Asian languages.
You'll probably have to roll your own
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a many child dialog at are created within the parent.
dlg = new childDlg;
dlg->Create(childDlg::IDD, this);
Works great.. but something it dependant on SP2. Without it, the window will not show up. People who use my program use it for Audio/Midi processing and don't like SP2 installed on their Digital Audio Workstation. So I would like to fix this so the applications does not require SP2.
Any Ideas?
VC2005
MFC
DirectX 8.0 SDK
|
|
|
|
|
aquawicket wrote: Any Ideas?
Remove the dependency on SP2
|
|
|
|
|
SP2 for what?
Dialog windows have been created the same way for many years.
Maybe you're leaving out some information that would make it remotely
possible for us to help?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Well, I'm not exactly sure why the dialogs don't open without SP2. I don't really know where to begin on finding out either. I figure if it's not the dialog itself, then it is something within the dialog. Is their a way I can hunt down what is causing the need for SP2? Could it be the version of MFC i'm linking against? What kinda information can I provide to help out?
Program specs:
--------------
MFC statically linked
Unicode
Not Using ATL
No Common Language Runtime support
No Whole Program Optimization and Optimization disabled
PreProcessor Def's WIN32;_WINDOWS;NDEBUG
Link Library Dependencies = YES
I guess I will just start stripping down the class the dialog is in till it works :P
|
|
|
|
|
I still have no idea what SP2 is. I have an idea but I'd be assuming.
Regardless, why not step into CDialog::Create()....does the actual dialog
creation fail at a Win32 API call? Does MFC assert or fail?
If creation succeeds, try breaking at PreCreateWindow(), WM_INITDIALOG, WM_SIZE, WM_PAINT.
Does execution ever get to any of these? If so, do any of them return an invalid value?
Add a PreTranslateMessage() override to the class....do you ever get any messages?
etc...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark..
I'm working on getting VS2005 installed and running on an SP1 machine and I guess I'll work it from there
|
|
|
|
|
You;'ve been asked several times... SP2 of WHAT? XP? VSxxxx? The kettle next to your PC?
The other trick you can try is to go to the dialogs template, and check the NOFAILCREATE style - then you can find out which control is having trouble. As has been said, dialog creation is not much changed for a decade.
Iain.
|
|
|
|
|
I have aa array of struct in my app, each struct is the size of a byte. My problem is that this array is very large, up to 256mb if the machine can cope with it.
I know each struct is small, but I can half that size. I need 1 bit for a flag and 3 bits for a state. How can I declare the stuct to effectivly have two struct members each of which is 4 bits in size?
struct block
{
BYTE Flag : 1;
BYTE State : 3;
};
This is what I currently have, but it's size is still 1 byte even though only 4 bits are being used.
Waldermort
|
|
|
|
|
How are you packing the structure?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
standard #pragma pack ( push, 1 )
Waldermort
|
|
|
|