|
the function is from one of many libs.but I do not know which lib is it.
a big .h file contain all declaration for those libs.
|
|
|
|
|
|
derek7 wrote: if a .h file contain many lib declaration.and no source .
how to locate a function ?
Use dumpbin
|
|
|
|
|
dumbin and depends only work for dll. how about static lib?
|
|
|
|
|
Hello!!
I would like to concatenate the different lenghts of data (in Hex) which is from the same array.
|
|
|
|
|
What's ur problem. Clearify ur problem.
Divyang Mithaiwala
System Engineer & Software Developer
|
|
|
|
|
am getting set of data output from a machine, as i should get the data output at a time, say for eg:1024 BYTES at a time in an array[1024], but am getting the data in chunks like
Lenght: 512
0x20 0x65 0x40..........512 bytes
Length:512
0x23 0x45 0xC 0xD......512 bytes
Length's are varying, not constant all the time.
how could i append the second set of data to the first set, say
array[513]=0x23, array[514]=0x45....array[1024].
dont say MEMCPY; if i use it, again the data is being stored as chunks only.
|
|
|
|
|
have you considered using STL containers, such as std::vector ?
|
|
|
|
|
|
ExitProcess is part of the Win32 API - It's the low level function you call to exit a process. There is a more vicious version called TerminateProcess . exit is a CRT (C Runtime Library) function; every C/C++ compiler will have this function. On Windows it will be implemented in terms on ExitProcess but it will do some "house work" before hand. For example using the CRT function atexit you can register a function to be called when the process exits - If you use ExitProcess you will short-circuit the CRT code which calls them.
My advice would be that if you're not sure of the difference play it safe and use exit .
Steve
|
|
|
|
|
How to create hidden list box?
JAYARAJ
|
|
|
|
|
|
WhiteSky wrote: ShowWindow(0);
prefer using the defined consts:
ShowWindow(SW_HIDE);
it's a question a readability and maintainability...
-- modified at 8:16 Monday 6th March, 2006
|
|
|
|
|
When you create it make sure the WS_VISIBLE style is not set.
Steve
|
|
|
|
|
ShowWindow(GetDlgItem(hdlg,IDC_LIST1),SW_HIDE);
gabby
|
|
|
|
|
I am created a software in asp.net 2005 and i want to create a setup for instalation can any one help me
Mahammadhusen
|
|
|
|
|
I want to change the color of the dialog box in MFC application.
Can you please tell me how can it be possible.
Thanks in advance.
|
|
|
|
|
Use WM_CTLCOLOR (OnCtlColor) or WM_ERASEBKGND
Using OnCtlColor
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
<font color=green>
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
<font color=blue>if</font> (CTLCOLOR_DLG == nCtlColor)<font color=green>
{
hbr = ::GetSysColorBrush(1);
}
<font color=blue>return</font> hbr;
}
Nibu thomas
Software Developer
|
|
|
|
|
Thanks.
It worked fine.
But now I am facing another problem. I want to change the color of the controls like buttons, static as well.
Can you please suggest a way out.
|
|
|
|
|
|
|
OnInitColor is working fine.. thanks
But can you please tell me how can i change the color of the Controls like buttons, static etc?
-- modified at 7:56 Monday 6th March, 2006
|
|
|
|
|
if you want to change color of Buttons
I think first derived class Button
class CMyButton:public CButton
{
then use WM_DRAWITEM
};
void CMyButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
CDC* m_DC = CDC::FromHandle(lpDrawItemStruct->hDC);
...
...
...
}
|
|
|
|
|
place this code below in InitInstance()
SetDialogBkColor(RGB(219,226,242)//set back ground
,RGB(0,0,0));//set foreground
JAYARAJ
|
|
|
|
|
add this function in the OnPaint handler and get amazed....
CPaintDC d(this); // device context for painting
CPen p[64];
int i;
CRect r;
GetClientRect(&r);
for(i=0;i<=63;i++)
p[i].CreatePen(PS_ENDCAP_ROUND,1,RGB(0,(i*2),(i*4)));
for(i=0;i
|
|
|
|