|
#pragma comment(lib,"Shlwapi.lib")
I personly think the code above is to load a "dll" file。Am i right or not?
Any one can help me and explain it to me,
thanks.
Besides, i am not good at English, and if there is any grammar mistake,Please point it out directly.
thanks again.
|
|
|
|
|
The following pragma causes the linker to search for the Shlwapi.lib library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.
|
|
|
|
|
#pragma comment(lib,"Shlwapi.lib")
code will link the lib file at compile time. It never look dll at compile time. This type of linking called static linking.
Instad of this code you can add ur lib file(Shlwapi.lib) into
Project-->Settings-->Link-->Object/Library Modules-->
Shlwapi.lib
Sethuraman.K
|
|
|
|
|
Sethuraman.K wrote: you can add ur lib file
Ur[^] is an ancient Sumerian city. Is it a lib file as well?
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Iain Clarke wrote: Ur[^] is an ancient Sumerian city. Is it a lib file as well?
Yes, you need it in order to link with the Hammurabi code [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
i want to stop highliting property of button control.
i want button not highlits when its get or set focused.
only border is displayed when its get focused.
please tell me how can i do this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
I don't think you can, without going the owner draw route, and doing lots of work.
But what can *can* easily do, is use a static control with the SS_NOTIFY style turned on, and handle the WM_COMMAND/STN_CLICKED that it send you.
Same clickability, less graphic goings-on.
Good luck,
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Why you didnt use of owner draw?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
please can u explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
For Owner draw Chris Maunder has a good article about it(on the codeproject) and I suggest you see it but for buttons Custom Draw Buttons & A Smarter Groupbox[^] (A class to make working with radio buttons easier, and another for custom drawing buttons )
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thanks all!
void fun()
{
string str;
str = ???;
cout << str << endl;
}
void call()
{
fun();
}
modified on Wednesday, February 25, 2009 2:19 AM
|
|
|
|
|
The __FUNCTION__ macro will give you the function name.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I've just learned something today - and it's before 9am! I can now close my mind to further information, as I have to ration these things.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
You can see more info about macro's(LINE,..) on the www.functionx.com and www.cplusplus.com.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I suppose __FUNCTION__ would expand to "foo" while he's looking for "call" (i.e. the caller function name).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Check this[^] out, but note that -as far as i know- these only work with debug information present, but i might be wrong.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
The easiest way is to require the calling function to pass in its name, which it can get with __FUNCTION__:
void fun(const char* callerName)
{
string str;
str = callerName;
cout << str << endl;
}
void call()
{
fun(__FUNCTION__);
}
<div class="ForumSig">Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p</div>
|
|
|
|
|
In RequestDeviceNotifications to detect USB Device, i am using FSD_MOUNT_GUID option to get two drives present on system namely:
1. \Disk (COMPACT FLASH TRAY)
2. \USBDisk(USB Device)
both of them are removable drives i.e one is FLASH TRAY which contain (.bin
files) for Window CE and other is USB Device. Is there is any way to know
there device type? My aim is to store only USB Drive names in list.
Note: both of them are removable. i am using Window CE 5.0
thanks,
priyank
|
|
|
|
|
Hi,
In my application, i implimented a foldertree pane using CFolderTreePane. but i am not able to set the focus for that.
i tried with the following code
CTreeCtrl m_wndFolderTreeCtrl;
if (!m_wndFolderTreeCtrl.Create(dwViewStyle, rectDummy, this, ID_TREE_CNTRL))
{
TRACE0("Failed to create Tree folder \n");
return -1; // fail to create
}
m_wndFolderTreeCtrl.SetFocus();
focus is not comming?
Thanks in advance.
|
|
|
|
|
How to Set Monitor Contrast Programmtically. i hv tried to searh for it but not get any help ,only a few Codes are Changing Brightness of Monitor not Contrast plz help.
|
|
|
|
|
|
The answer you got before allowed you to set the gamma curve of the screen - by setting the OUTPUT brightness for an INPUT signal, you are specifying a function mapping input signal to output brightness - that'll be the contrast behaviour of the screen.
Anyway - what makes you think you can set the contrast of a monitor programmatically? The standard video interfaces include no mechanism for altering monitor brightness, contrast or colour temperature - indeed, in many older monitors, these controls were analogue, so would be very difficult, if not impossible to control from software at all. Where software controlled brightness and contrast are available (for example, in a laptop), the control of monitor characteristics is dependent on the monitor being used.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello ,
I am using MFC Featurepack for my application.
In my application i have one feature, when we clicked on one button htmlview will come.
when ever i clicked on Htmlview the Menu items should close automatically right? but, the menu item's are not closing when we clicked on Html view.
Thanks in advance.
|
|
|
|
|
I want open the IE and link a web page.
Im code:
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&pi,sizeof(PROCESS_INFORMATION));
ZeroMemory(&si,sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
LPCTSTR lpszPath = _T("C:\\Program Files\\Internet Explorer\\iexplore.exe");
LPCTSTR lpszCmdLine = _T("\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" \"http://www.google.com\"");
if( !CreateProcess( lpszPath , lpszCmdLine , NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi) )
return FALSE;
It is success !
But the return value is wrong !
"pi.dwProcessId" is wrong.(I wang enum the IE windows for the process ID, but fail!)
I enum all process by SPY++ tools, but not found the value("pi.dwProcessId")!
I do not know what wrong !
Please help me !
Thanks !
|
|
|
|
|
I don't quite understand the problem you are facing.
Is the IE window opening and navigating to the google page?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|