|
|
Hi all,
In property window of application,in project deafult section og General,
i want to set Use of MFC as Use MFC in a Static Library
and in Common Language Runtime Support use Common Language Runtime Support, Old Syntax (/clr:oldSyntax).
Now a error comes.
Command line error D8016 : '/MT' and '/clr:oldsyntax' command-line options are incompatible
Is it not possible to use both property at same time.
Please tell me how can i remove this error ,both property are necessary to use.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I think this link give you some idea This link[^]
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
When right click my tray icon, show the menu, And there is a menu item "Restore window".
When click this menu item, it should restore window.
My code implement "Restore window" below:
void CWinSearchDlg::OnTrayRestoreWnd()
{
DestroyTray();
ShowWindow(SW_SHOW);
<font color="blue">
if (CWnd::GetActiveWindow() != this)
{
SetActiveWindow();
AfxMessageBox(_T("SetActiveWindow"));
}
else
{
AfxMessageBox(_T("no SetActiveWindow")); <font color="red">
}
BOOL bRet = FALSE;
bRet = SetWindowPos(&wndTop, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
if (bRet)
AfxMessageBox(_T("SetWindowPos true"));<font color="red">
else
AfxMessageBox(_T("SetWindowPos false"));
bRet = FALSE;
bRet = SetForegroundWindow();
if (bRet)
AfxMessageBox(_T("true SetForegroundWindow"));<font color="red">
else
AfxMessageBox(_T("false SetForegroundWindow"));
bRet = FALSE;
bRet = ::BringWindowToTop(this->GetSafeHwnd());
if (bRet)
AfxMessageBox(_T("BringWindowToTop true"));<font color="red">
else
AfxMessageBox(_T("BringWindowToTop false"));
</font>
}
I've tried the code in blue font, but when restore the window, It doesn't bring to the top.
Please give me a sign!
|
|
|
|
|
Without digging through that (I'm lazy), I don't see any ShowWindow command. How did you hide the dialog in the first place? There are tray program examples aplenty on CP, so you may be able to see how they did it.
Iain.
|
|
|
|
|
if i use any activex control then which class or dll should part of my setup?
|
|
|
|
|
What do you mean exactly ? Are you asking what to provide with your application when you distribute it ? If yes, you need to include the ActiveX file (an .ocx file) of the control. You will also need to register it on the target machine.
|
|
|
|
|
i have an activex control of "microsoft from 2.0 label" i want to change its font size on runtime according to some values
for example if variable font have value 14 then label font size should set 14 and if font variable is 10 then font size of this label should 10
how can i do this?
|
|
|
|
|
how to set font size of static text...?
|
|
|
|
|
Use SetFont function.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
you can use.
CFont *m_Font1 = new CFont;
m_Font1->CreatePointFont(100,_T("Arial"));
m_staticsite.SetFont(m_Font1);
|
|
|
|
|
Win32 ) Use WM_SETFONT [^] message.
MFC ) Use SetFont [^] method.
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]
|
|
|
|
|
How can Explorer.exe start loading my YC.DLL.
Or
I YC.DLL production in the operating system starts, inject Explorer.exe.
I do not want to amend regedit to achieve this function.
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Windows
thanks
zhq_0_0_0_1@163.com
|
|
|
|
|
Hi,
I am calling the below piece of code in DocumentComplete Event from IE.
<br />
CComPtr<IDispatch> spDisp;<br />
RESULT hr = m_spWebBrowser2->get_Document(&spDisp);<br />
if (SUCCEEDED(hr) && spDisp)<br />
{<br />
CComQIPtr<ICustomDoc, &IID_ICustomDoc> spCustomDoc(spDisp);<br />
}<br />
The spCustomDoc Object is invalid.
I am catching events from IE, and not from any webbrowser control in application.
Any idea whats going wrong?I am not sure whether we can use SetUIHandler for browsers.
Thanks in Advance.
Abhi Lahare.
|
|
|
|
|
normal files in hidden folders: whether they are actually hidden themselves, should be considered hidden?
OK, so my question. Is there an easy way to detect this situation? TO detect when a file or folder lives deep inside some other hidden folder?
I do have one thought. To ascend through the parents, I might just put a "\.." onto the path, and check those to see if they are hidden.
Or, is there a better way?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
modified on Friday, September 26, 2008 6:20 PM
|
|
|
|
|
See we wanna send a simple text eMail to the following address:
Marzbany@yahoo.com
I'm gonna use SMTP to do so. But the problem is I don't know what "host name" should I select to send the eMail to. Any way I tried the followings, but I got an error message each time; By the way I used the port number 25 (default for SMTP):
mail.yahoo.com (I got WSAETIMEDOUT, that's "Time Out" and nothing from server)
www.yahoo.com (the same as above)
Maybe YAHOO! is not "listening" to me.
Can you suggest me a solution please?
Thank you masters!
modified on Friday, September 26, 2008 2:36 PM
|
|
|
|
|
Isn't yahoo.com the host name?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I tried your suggestion and I got the same error (that's time out).
Thank you masters!
|
|
|
|
|
Fishing again eh?
led mike
|
|
|
|
|
. ` /
. ,../... .
. . / `\ / .
\ . o < ' ) =<
/\ . \ \ / \ . __
>=)'> `'\'"'"' /o \/
\/ . / o /, \__/\ .:/
/ . /--\ / / <')=< . ,,///;, ,;/
<o) =< . / \ \` . o:::::::;;///
\__/ \ <')_=< >::::::::;;\\\
\ \_/ . ''\\\\\'' ';\
( \ . __
) <'_>< (
( ( ,/.. ` )
) ( ) <') `=< ) (
( ) ( ``\``` ( )
_____)_____(____)______________________________________)____(______
(fish shamelessly pulled from here[^])
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Don;t you need to connect to YOUR mail provider? Look on your ISP's web site.
Unless the mail server providers are total imbeciles, they won't let any random person shove email through their server. For example, my ISP mail will only accept mail from with the customers PCs. I can't use my normal email program from some random hotel room...
Iain.
|
|
|
|
|
Hi
would anyone know of there is anyway to get asm code (actually to see how must space a "C" / "C++" varaible structure takes) of a ".h" header file
maybe its a #pragma directive
thankx
|
|
|
|
|
Header files are a group of "declaration"s; That's they won't compile and thers no opCode generated from them! Ofcourse there can be a misunderstanding with me, if so, give us more clarification about your problem.
Thank you masters!
|
|
|
|
|
When I run MainFrame HLASM assembler I look on the left side of the listing and and the Assembler keeps track of How big each data element is by increasing the number of the Location counter on the Left hand Side
I trying to debug a Visual C program I went into assembler mode
and see the generated Code as Follows this is just an example
Lea eax,_imp_struct
mov ecx,[eax+30]
if I were to know this displacement I could figure out what data element within the structure is being moved
as I imagine there are slack bytes
thankx again
|
|
|
|
|
I would use the sizeof operator.
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]
|
|
|
|