|
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]
|
|
|
|
|
What about bytes in between maybe the compiler as I know it does
Does alignment
What I am really looking is a loction counter showing the displacement from the begining of the structure for each data element
thankx again
|
|
|
|
|
Not sure if this would work for you. But why not run it under a program like "Memory Validator[^]".... gives you a view of your memory use.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
You may use the 'address of' (i.e. & ) operator to calculate the displacement.
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]
|
|
|
|
|
|
Why don't you set a breakpoint and use a watch window.
Bram van Kampen
|
|
|
|
|
for some reasn even when running with the /Zi switch debug
mode The Visual Studio debugger doesn't display the data
it forces me to into the assembler code
|
|
|
|
|
Well, you should get your compiler switches sorted, I'm not an expert at al at those.
You're experiencing a problem I had 12 years ago, only technology has moved on since. I was an experienced ASM level Programmer, but liked the Widows Interface. I Resisted it for long, I even wrote my Own version of a Windows OS, sitting on top of DOS,(It is NOT simple to keep the mouse moving, and to make the program react when you click on somethiing) but in the end, the Evil day came. I had been left with no other option, but to write a simple Windows App. My employer was of the patient kind, and allowed me 13 weeks to learn windows. I used the 'Scribble' Tutorial, and It took me about five weeks to get to grips with the underlying principles.
It Strikes me that you are used to writing procedural code! Windows does not work that way at all, as a consequence, the tools you try to use to debug, are essentially useless!
Looking at ASM code is only very seldomly productive when writing windows code. The debugging technique is different.
How todo is well described in many very fat books. The synopsys is as follows:-
The General process for writing Windows Code is that you write Event Handlers. An Event Handler is a piece of code that gets excecuted when an event occurs. A User clicking on something is an Event, but there are more! The Windows System may decide that it is time to do something, and create an event of it's own.(On each of these occurrances, an Event is created, and a message to that veffect is sent down the line.)
In Windows, this is all implemented and controlled by 'WindowMessages' being sent and acted upon. What you do as a Windows Programmer, is, react to the messages that are destined to you, the essential part being, that you pass on any message you do not handle to the default handler.
So to write Windows Code, you have to know both how to Create an Event, and how to react when an event occurs.
MFC (I take it you Use MFC) is a CPP implementation of CPP classes
(the MFC Classes) which makes it ver handy to act on messages you want to intercept, knows whichones to pass on, and, in general makes life easier.
If you are serious about MFC windows, forget about assembler, and do the 'Scribble' Tutorial.
Bram van Kampen
|
|
|
|
|
Thankx for the advice However Being a Mainframe Assembler programmer
I am just up to Plain old C SDK One Day I'll get there
I am Used to thinking of the Way MVS works so...
e.g. I set break point in a DLL which was in another address space thinking my code would be running in another address space
wrong all DLL are mapped into the user address space
I guess the only code that really runs common storage is the Kernel
Data in Common is only accessable via Memory mapped files
X-pos ECB (MainFrame term) In Windows are Events that are inheritable by Child Process and I guess Copied via Dupicate Handle
once I get the Basics down I'll move
to MFC C++
Thankx Again
|
|
|
|