|
Trollslayer wrote:
...the profiler in VC++6.0 is...
...located where?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
It's not in all editions (Professional and Enterprise, IIRC) - if you have it it'll be on the Build menu, right at the bottom. You need to enable profiling in the link options first.
|
|
|
|
|
Thanks. That menu option was not initially enabled because I was missing the following registry value:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevStudio\6.0\General\ProfilerInstalled
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevStudio\6.0\General\ProfilerInstalled
What Key or Value, I have to enter here to Enable Profiler
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
The key is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevStudio\6.0\General and the value is ProfilerInstalled, which is set to 1.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevStudio\6.0\General and the value is ProfilerInstalled, which is set to 1.
Thanks For Information!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Can some please explain me the reason why values added in combobox are shown in hexa in the ".rc" i.e. the resource file while strings/caption associated it with other controls like Button, EditBox have ASCI values.
Any Logic ?
Regards
|
|
|
|
|
I wanted to get Color of a Dialog and set it to a toolbar. I am able to get the color of dialog.
a) How can I get color of other controls.
b) Is there some generic way where I can get background color of control. c) What if the color is gradient.
d) and wat about if it has bitmap as its background.
One other thing,
e) How can then I set a background color of a toolbar, to be more specific.
I have achieved to change bg color of static label but I am, not able to do it with toolbar. Any help ?
Regards,
|
|
|
|
|
|
Hi,
In my app i need do draw a icon on a specific place(each time
on a different place).
I added the icon to my resources(it's ID is IDI_Target_ICON)
and I'm using this code(I want to display the targets on a thread) :
UINT ShowTargetsThread(LPVOID lpvoid)
{
TargetsViewDlg *dlg = (TargetsViewDlg *)lpvoid;
CDC *dc;
CRect rect;
int nX = 0 , nY = 0;
HICON hIcon;
HBRUSH hBrush = CreateSolidBrush(RGB(0, 0, 0));
dc = dlg->m_TargetsViewBMP.GetDC();
dlg->m_TargetsViewBMP.GetClientRect(&rect);
for(int i = 0 ; i < 20 ; i++)
{
nX = (rect.right - rect.left) / 2;
nY = rect.bottom - (i * 10);
DrawIconEx((HDC)dc, nX , nY , hIcon, 16, 16, 0, (HBRUSH)hBrush, DI_IMAGE);
Sleep(200);
}
return 1;
}
The problem is I don't know how to load the icon.
Anyone?
Regards,
Eli
|
|
|
|
|
HICON hYourIcon =
LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_YOUR_ICON))
SkyWalker
|
|
|
|
|
how can i get a color of control. What is its a radient color. What is returned, a HBRUSH or COLORREF ? ... Can some1 guide me ??
|
|
|
|
|
What part of what control are you interested in? Some controls have text, some do not. Some have borders, some do not. For starters, there's GetBkColor() .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I wanted to get Color of a Dialog and set it a toolbar. I am able to get the color of dialog. How can I get color of other controls. Is there some generic way where I can get background color of control. What if the color is gradient. and wat about if it has bitmap as its background.
One other thing, How can then I set a background color of a toolbar, to be more specific. I have achieved to change bg color of static label but I am, not able to do it with toolbar. Any help ?
Regards,
|
|
|
|
|
Ibraheem Khan wrote:
Is there some generic way where I can get background color of control.
How about GetBKColor() ?
Ibraheem Khan wrote:
What if the color is gradient. and wat about if it has bitmap as its background.
Without a specific example, I can't say for sure.
Ibraheem Khan wrote:
One other thing, How can then I set a background color of a toolbar, to be more specific...Any help ?
This almost sounds like "skinning." Since that technology is all about painting the various parts of a window, I'd suggest a thorough reading of it.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Friends,
I usually develop 'ActiveX controls' using "MFC ActiveX Wizard". In the past, i simply develop ActiveX control and distribute it along with the client side application.
This time i am in different situation. As usual, i developed a control and distribute it with my client application. But now i've enhanced the same control. I've added some new interfaces and not touched the previous interfaces. I came to know from somewhere that there is a method of proper versioning of ActiveX controls and COM components. And i am required to 'increase' the version of my activeX control before distributing it.
Can anyone tell me how to control the version of those 'ActiveX controls' which evolve with the passage of time. Also tell me the method to do so in MFC ActiveX controls.
Ahsan
-- modified at 7:39 Wednesday 7th September, 2005
|
|
|
|
|
Hi,
I am upgrading my application to use V.C 7.1 compiler version. AT present it is using 6.0 compiler.
The problem i am facing is use of File stream.
My req is to share same open file with filebuff and fsrteam object
Please find the code snippet below
Compiler is not recognizing .fd()
Error is in this line int fdesc = v_AppFile.fd();
filebuf v_AppFile;
v_Fb = v_AppFile.open (strFileToOpen, 0);
int fdesc = v_AppFile.fd();
if(EOF != fdesc)
{ v_stream = new fstream(fdesc);
.
.
}
Regards... Ankur
|
|
|
|
|
I am looking at putting an ActiveX object on a web page for some speicalist work, just wondered if anyone had experience with this and suggestions.
It will display some dialogue boxes etc.
Thanks.
Elaine
The tigress is here
-- modified at 7:17 Wednesday 7th September, 2005
|
|
|
|
|
Trollslayer wrote: I am looking at putting an ActiveX object on a web page for some speicalist work
I'm doing the exact same thing, have you had any luck in your search?
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
|
The question is straight: any ideas how i can set the client area of an mfc dialog?
|
|
|
|
|
You can use MoveWindow[^] any time after the base class' OnInitDialog has been called.
Bob Ciora
|
|
|
|
|
There's also SetWindowPos() .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Dear Friends,
This question is related to MS-Word automation. I want to find some statistics related to the opened word document. I've already found two statistics like count of total words and count of total characters using various word-automation interfaces.
I found some statistics indirectly, for example i wanted to calculate total number of characters in Bold in my document. There is no such support directly provided in MS-Word and automation functions. However i used "Find Dialog Box" and WildCharacters property to get the total count of these characters.
So far so good. Now i want to find some other statistics but i am struggling to find out and i require your help. I want to find the total number of:
--Bullets in my document
--Fonts used in my document
--Font sizes used in my document
Can anyone tell me that how can i computee these values via directly using Word or by automation.
Ahsan
Ahsan
|
|
|
|
|
How Can I change the background color of a toolbar at runtime. Any idea, I have added a new button to CFileDialog Control, now I want to change its back color of the toolbar. Any help. Also How can I get the handle of the buttons in Toolbar ?
Regards
|
|
|
|