|
pranavamhari wrote:
Yes, i've tried using it as a seperate file, but it does not work. (plz note, I've other exes that work correctly. The problem occurs only if I use the resource in this dll)
these article may help:-
MANUALLY EMBEDDING MANIFEST FILE:-
http://www.codeproject.com/w2k/makexp.asp[^]
AUTOMATE MANIFEST FILE LINKING:-
http://www.codeproject.com/macro/ManifestMacro.asp[^]
"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
|
|
|
|
|
Hi Friend,
I am working on application developement and i have to enhance the speed of existing application. So i need to know the time taken by the application. Is there any programmatical way to find out the time taken by application.
Thanks
|
|
|
|
|
An actual profiler would be your best bet, but you can use GetTickCount() to get reasonably close.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I haven't used the profiler in VS2005 but the profiler in VC++6.0 is useful.
It shows the number of times a function was called in addition to the time spent there.
You can also use it to get an idea of which sections of your code are used under various circumstances.
Elaine
The tigress is here
|
|
|
|
|
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?
|
|
|
|