|
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
|
|
|
|
|
This seems to work, but accessing the members is a pain
struct block
{
union
{
struct Upper
{
BYTE State : 1;
BYTE Repaint : 3;
};
struct Lower
{
BYTE State : 1;
BYTE Repaint : 3;
};
} U;
}
Waldermort
|
|
|
|
|
Doesn't Upper and Lower use the same bits?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yeah, I just realised, I'm still trying to get it...
Waldermort
|
|
|
|
|
AFAIK, byte granularity is all you're going to get unless
you pack two pairs in each struct:
struct block
{
BYTE State : 1;
BYTE Repaint : 3;
BYTE State2 : 1;
BYTE Repaint2 : 3;
}; Do you have to have a struct type?
Can you wrap the array in a class and provide accessors to packed State/Repaint
bits instead?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I think struct is creatin a problem.
try doing it by using union inside a struct.
i think it will work.
tHeStRat
|
|
|
|
|
WalderMort wrote: This is what I currently have, but it's size is still 1 byte even though only 4 bits are being used.
I believe the minimum size of your structure is the size of the base type, in this case BYTE.
|
|
|
|
|
|
Funny you say that, I was just playing around with the bitfields and found my solution. Though I'm not sure of how portable it may be.
struct block
{
union
{
struct Upper
{
BYTE Pack : 4;
BYTE State : 3;
BYTE Repaint : 1;
};
struct Lower
{
BYTE State : 3;
BYTE Repaint : 1;
};
BYTE Total;
} U;
};
Waldermort
|
|
|
|
|
Original struct
<br />
struct aablock<br />
{<br />
BYTE Flag : 1; <br />
BYTE State : 3;<br />
};<br />
Original array of size 512
<br />
MAXSIZE = 512<br />
aablock aa[MAXSIZE];<br />
Modified Struct
<br />
struct bbblock<br />
{<br />
BYTE FlagOdd : 1; <br />
BYTE StateOdd : 3;<br />
BYTE FlagEven : 1; <br />
BYTE StateEven : 3;<br />
};<br />
<br />
try to suffle the elements if size of this struct > sizeof(BYTE)<br />
if you are having an array of size say 512 then you may declare array with half of that size.
Each element will store 2 elements of original struct
<br />
bbblock bb[MAXSIZE/2];<br />
<br />
j = -1;<br />
for(i = 0; i < MAXSIZE/2; ++i)<br />
{<br />
j++
bb[i].FlagEven = aa[j].Flag;<br />
bb[i].StateEven = aa[j].State;<br />
j++;
bb[i].FlagOdd = aa[j].Flag;<br />
bb[i].StateOdd = aa[j].State;<br />
}<br />
|
|
|
|