|
There is a brief example of this here, in the Extras section.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
if a .h file contain many lib declaration.and no source .
how to locate a function ?
|
|
|
|
|
intellisense tell you in which file the declaration of your function is on (VS.NET 2003 +),
and msdn tells also at the bottom of a function doc which header is to include to have this function working.
for example, for the cos()[^] cosine function, msdn tells us that the required header is <math.h> , and the function is defined in all the C run-time libs[^]libs are
|
|
|
|
|
I mean 3nd part lib but that has no docment and source.
for dll, I can use depends to work out.
for static lib, which tool can solve it?
|
|
|
|
|
i don't understand. if you know the function you are using, and you know it comes from a 3rd part library, how don't you know the right lib it is embedded in ?
|
|
|
|
|
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.
|
|
|
|