|
can you guys help me to change the font of all the applications' window running in Windows.I tried to change the system font but i can't.
thanks
|
|
|
|
|
hi,use the api
SystemParametersinfo with nm_nonclientmetrics as type and fill in the desired font in nm strcture
|
|
|
|
|
thanks a lot.I knew this API function,but when i tried to change the font of one active application,it can't be done,it 's denied.Do you know the solution?Thanks again!!!
|
|
|
|
|
give sp_updateINIchange and sp_updatreginichange options
it will change aLL apps, i tested it was working
|
|
|
|
|
thanks,buddy,i 'll try again.
Hey if you have a YahooID we can talk directly,wot do yo think?
|
|
|
|
|
my yahoo id is
babu_ooty18
just make it as friend ,i am available now
|
|
|
|
|
I have a Exp file and lib file and dll,can anyone tell me how to get function declaration from it so that i dynamic load function from it.
I know the name of function but i have to retrieve parameter from it
Thanks for any help provided
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
You could try using depends to see the function exports. However I am guessing that all you are seeing are the mangled C++ names.
If this is so, without the header file I would find it hard to prototype the function names and parameter list.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
If you are using Microsoft VC++ and you can get the decorated name, you can then use the undname utility from MS to show the parameters and return type. For example:
If the decorated name is ??0CLogFile@@QAE@VCString@@_N1@Z, use the command as shown
D:\>undname -f ??0CLogFile@@QAE@VCString@@_N1@Z
Microsoft« Windows« Operating System
UNDNAME Version 5.1.2600.0Copyright (c) Microsoft Corporation. All rights reserv
ed.
>> ??0CLogFile@@QAE@VCString@@_N1@Z == public: __thiscall CLogFile::CLogFile(cla
ss CString,bool,bool)
D:\>
|
|
|
|
|
Thankyou, I will bear this in mind in future.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
really i am very very thank ful to you for this great help thanks very much
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
now problem arise how to get mangled name of function
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
If the name is not mangled when you see it in Depends I don't think there is any way to get it
--
Andrew.
|
|
|
|
|
I used AfxBeginThread() to create a new thread, which would access some objects, in a member function of the class CMyClass. ( The CMyClass object is a member variable of the class CMyDialog. These "some objects" are also members of the class CMyClass )
Now, I'd like to destruct the CMyClass object while a button in my dialog (an object with type CMyDialog) is pressed. But the thread controlling function is still accessing some of its member objects in a loop. How could I savely delete these objects and end the thread savely when the button is preesed? Is there any standard step to solve this problem?
I've also tried to use the function GetMessage() in the thread controlling function, but when I used the debug mode in Visual C++ and breaked at where GetMessage() was, I found the thread would be destroyed immediately after
executing this line. What's wrong with it?
|
|
|
|
|
Sounds like you need to tell the thread to finish up
as you cant just kill it inthe middle of things
Interthread communications issues ...perhaps you might like to Post it a message
Bryce
---
To paraphrase Fred Dagg - the views expressed in this post are bloody good ones.
--
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
Our kids book :The Snot Goblin
|
|
|
|
|
First important thing is that , you thread is an independent entity. You are creating a thread through class , that does not meant that it is associated with the class life time.
On Button click post WM_QUIT message to yout thread .
use PostThreadMessage API
and ...
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if (msg.message == WM_QUIT)
// Do your cleanup here
return 1;
DispatchMessage(&msg);
}
|
|
|
|
|
I've used the GetMessage( &msg, NULL, 0, 0 ) in the while loop, and the message WM_QUIT was not gotten by the message loop. I used a user defined message to handle this. The previous problem that the thread was killed abnormally was not occurred any more. Maybe the thread killed was another thread but mine...;P
But it may be necessary to Sleep() before posting a message to the thread. Anyway, my problems was solved! Thanks for your guys' help ...
|
|
|
|
|
I found it easy to do thread management with state implementation and synchronization objects .
Engineering is the effort !
|
|
|
|
|
I added a dialog box that can be called from the main window's manu. How can I ninilized some controls? (Edit box, combobox).
The main window has a function
BOOL CMainwindow::OnInitDialog()where I can initilize variables but the dialog does not. It was created with two functions only
CSystem::CSystem(CWnd* pParent /*=NULL*/)
: CDialog(CSystem::IDD, pParent)
{
//{{AFX_DATA_INIT(CSystem)
m_Response = _T("");
//}}AFX_DATA_INIT
}
void CSystem::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSystem)
DDX_Control(pDX, IDC_COMBO1, m_Query);
DDX_Text(pDX, IDC_EDIT1, m_Response);
//}}AFX_DATA_MAP
}
Any help is greatly appreciated
|
|
|
|
|
No Prob Buddy,
Open ClassWizard and Add WM_INITDIALOG message to your application.
let me explain the steps->
1.right click on your dlg class in class view.
2.select window message handller
3.add WM_INITDIALOG message.
i think now you got
BOOL CMainwindow::OnInitDialog()
have fun
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
How to use flash button,flash menu and flash image in vc++??
How to call flash in vc++??
I want to use flashMX in vc++.
What I use dll or ocx??
What control??
pls help me??
|
|
|
|
|
|
me think you can only use a whole flash movie in a vc application, you cannot use individual components within an application.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
First off, I'd like to thank anyone that even reads this.
I have a class called runinfo that holds three strings, company, town, address. In a class called TempRun there is one string, driver.
How do I declare an array of runinfo's in an array of tempruns?
So in final it would be a list of drivers and each driver would have an array of stops?
I tried CArray<CRunInfo,CRunInfo&> obj; but got an error
Once again, thanks for any help
shotgun
|
|
|
|
|
I dunno why you can't do it with CArray, but CArray is crap anyhow. You can definately create a vector of vectors.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|