|
Hi Steve,
When I checked in my CCustomStatic Messages
I didnt get WM_CTLCOLORSTATIC
I found WM_CTLCOLOR, and I used it as u said for WM_CTLCOLORSTATIC
And I got my Static control's color changed.
But Still I am doubted with my Onpaint() Magic in CCustomStatic.
Thanks
George
|
|
|
|
|
Write the code/algorithm for function "int* minChangeMac(int cents, int* cDenoms, int* cCounter)"
where minChangeMac converts cents into elements of cDenoms and returns a pointer to an array cCounter such that sum of elements in cCounter array is the minimum possible number.
example 1: if cents = 56 and cDenoms = [25, 10, 5, 1] then cCounter = [2, 0, 1, 1]
example 2: if cents = 31 and cDenoms = [25, 10, 1] then cCounter should be [0, 3, 1] and not [1, 0, 6]
|
|
|
|
|
AryaSoft wrote: Write the code
i generally don't like these kind of question, because they traduce a lazy person asking for other to do it's homework
|
|
|
|
|
You have to give the guy points for being honest, however, that it was an interview question.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
AryaSoft wrote: Challenging Interview Question
do you passed in that interview or not
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
|
You can write your code and if you have any problem then ask
|
|
|
|
|
Sounds like fun, what was your answer ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
How Can I View the Dll file function and return Types or Params types?
thx.
msn:Flashcutreg@hotmail.com
|
|
|
|
|
For exported functions use
dumpbin /exports my.dll
For exported COM-components use oleview and choose "View TypeLib" from File menu.
|
|
|
|
|
Shi Zhu wrote: How Can I View the Dll file function and return Types or Params types?
Depend.exe well help.. this is present in the tool folder of Visual Studio!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
For example, as I have 2 USB keyboard linked to one PC, And I use one of them to press "K" key, and how can i know which one is inputting "K" key.
does any API can do this? Thanks
|
|
|
|
|
No - it's coming from 'the' keyboard, if you have more than one, they are both 'the' keyboard when you press a key on them.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Two keyboards? Why?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
lpy_chl wrote: For example, as I have 2 USB keyboard linked to one PC, And I use one of them to press "K" key, and how can i know which one is inputting "K" key.
does any API can do this? Thanks
this is not possible AFAIK i know... window will present problem~
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
I would like to know how to do the screen capture?
Please help!
|
|
|
|
|
But not enough to search the site ? There's at least two articles on this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
Hi to All,
I have a problem in VC++.
Im using ado object for database application.
Is there any method exists in _RecordsetPtr to reteive all Column_Names and
Data_types of columns(Fields).
I have tried a lot,but failed.
plz suggest me.....
Thanks a lot in advance
Nagaraju
|
|
|
|
|
This might work, assuming recordset is a _RecordsetPtr:
ADODB::FieldPtr field;
CString name;
int type;
for (int i = 0; i < recordset->Fields->GetCount(); i++ )
{
field = recordset->Fields->GetItem(COleVariant(i));
if (field)
{
name = field->GetName();
type = field->GetType();
}
}
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
ADO wrapper class C_Recordset has method GetFields ,which returns CFields . Use this class for information you required.
|
|
|
|
|
Hello,
This is in continuation with my previous post.
I have scuccessfully created the digital signature of an XMl file with the help of crypto APIs and have saved this signature in a separate file (with .binary extension).
Now I have to write another code which should take this signature and the original XML file and verify the signature against the original XML file. This is to be done in C++. Kindly provide me the code for the signature verification if someone have it.
Thnx
|
|
|
|
|
How on earth can we do that ?
You are the only one who knows what crypto APIs you used, and if you're looking to verify the signature against the file, doesn't that mean just creating it again ?
If there's a standard for digital signing of XML files, I'd like to know about it. If there's not ( and I don't know of one ), you're making this up as you go, and you're still not providing anywhere near enough info for anyone to be able to give you an answer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I'll take a stab at this one:
class XMLSignatureVerifier
{
public:
static bool Verify(const TCHAR *pszXMLPathname, const TCHAR *pszSigFilePathname);
}
bool XMLSignatureVerifier::Verify(const TCHAR *pszXMLPathname, const TCHAR *pszSigFilePathname)
{
return true;
}
Example how to use the class:
if (XMLSignatureVerifier::Verify(_T("Test.XML"), _T("Test.binary")))
{
}
else
{
}
That should work.
|
|
|
|