You may not be aware that I have lost my job as our company has given us lay off.
I am really expecting a job in MFC, VC++.
I have given 2-3 technical interviews but it has made clear that interviews need special attention and preparation ,
I would be highly thankful , if someone provides me the compilation of interview questions on VC++, MFC, C++, ATL COM, Threading. If with answers then it will be a faster preparation for me. (Sorry being lazy here, but situation is a bit tedious with me right now).
ANy links also will help a lot.
If you want to send me few things, then email address is
if u r preparing for interview than first u have to be very good in basic concepts of C++.
Like whats the difference between polymorphism and inheritance.
What is Virtual function.
Why we dont have virtual constructors, and why we have virtual destructors.
and Reg VC++ , MFC..
what is Doc/View arch.
diff. between common DLL's abd MFC DLL's
what is SDK.
what is Inline function.
Tell about WindProc()
basic properties of controls(edit, button..)
(ex. whats the diff between check box and radio button)
diff between Modal() and Modaless()..
how u retrieve text in a edit box without using member variables.
these r some questions which I faced in Interviews..
but better go through some FAQ's..
all the best..
I have an Activex Control in vc++ 6.0.It is a player plays cam files.
I have designed in the way that everytime the Activex control opens ,cam file will be downloaded from the server(Download Dialog) and after downloading the download dialog is closed automatically using OnThreadFinished.
members, the "optimal" size would be 1 + 2 + 4 (assume x86 for the moment).
However, this would be with alignment of 1. This says what byte boundary you use for packing. With an alignment of 2, each member begins on the next available 2 byte boundary, so the single char would be followed by an unnamed pad byte, the short would already be aligned correctly, as would the long.
Similarly with 4 byte, the char is followed by 3 unnamed pad bytes, the short by another two, and the long would be OK as is.
I can almost hear you asking "Why would I want to waste memory like that?"
[fx: pause for reader to actually ask...]
It's all to do with the way the processor accesses memory, and for some CPUs, like the SPARC, trying to access a packed (1) long would cause an exception.
The important thing is to consistently use the same alignment for all in memory versions of a structure. For instance, if you build a DLL with a function that takes a structure, the declaration of that structure should really include
so that irrespective of the compile time options elsewhere, it has the packing n (where n is a power of 2). Without this, you might build the DLL with pack(2), for instance, and a client might be built with pack(1). This would misalign the data, and might even result in an access violation when you call the DLL function.
I'm developing MFC Activex library, which deals with data from MS Access DB. I need to make function like short GetTagStruct(short nTag, VARIANT *arrayTagStruct) - .odl file in vc6++
I want to call this interface function in VB.
Structure can be for example:
Public Type TagStruct<br />
sTagName As String<br />
x As Single<br />
y As Single<br />
sObjName As String<br />
sDispPath As String<br />
sDispName As String<br />
End Type<br />
I know how to handle BSTR array in Variant, but I don't know what type I should select for safearray of user defined structure. For BSTR it is VT_ARRAY | VT_BSTR.
Can you give me example of using safearray of user defined structure stored variant ?
I can't write using Excel=Microsoft.Office.Interop.Excel namespace my .NET editor. What can I do for this problem. I am using Office 2003 and I added Microsoft.Excel 11 Object Library and Microsoft Office 11 Object Librry.
For your answers tnahk you ....
Im writing a dll in ATL COM called by a vb.net client. the client passes a 2d integer array when it calls MyMethod.
i have tow problems
I. i have trouble accessing the values in the array passed, i get junk values. this is the code.
I have a componant and its idl file. I have included its header file in my stdafx.h and added the .c file into my project with addtoproject file. Actually that .c file containd actual definition of all IIDs and CLSIDs. Now its showing error. End file while looking for precompiled header. What to do now. Actually i dont have a clear idea how to use the classes defined in that componant.
Please tell me how to do that.