|
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
|
|
|
|
|
Can you do it like this?
<br />
struct SJourney<br />
{<br />
CString m_strCompany;<br />
CString m_strTown;<br />
CString m_strAddress;<br />
};<br />
<br />
class CTempRun<br />
{<br />
CString m_strDriver;<br />
CArray <SJourney, SJourney> m_astJourney;<br />
};<br />
|
|
|
|
|
Can you do it like this?
<br />
struct SStop<br />
{<br />
CString m_strCompany;<br />
CString m_strTown;<br />
CString m_strAddress;<br />
};<br />
<br />
class CTempRun<br />
{<br />
CString m_strDriver;<br />
CArray <SStop, SStop> m_astStop;<br />
};<br />
|
|
|
|
|
Hi,
This isn't a technical question so I'm not sure if it belongs here but I'm not sure where else I could ask, please let me know if I'm in the wrong place.
I want to publish a game that I coded in Visual C++ 6.0. Now what do I need to license in order to publish? Do I need to just have a legally purchased copy of Visual C++? Or do I actually have to have some sort of registered business with a business license?
Thanks!
Kelly Ryan
|
|
|
|
|
No, if you own VC++, then you are fine.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
now I am doing a job to capture the screen and the data format is .bmp,I want to compress it. not save it to bmp file and compress it but convert the data of bmp to data of jpg in memory,what should I do?
thanks a lot
|
|
|
|
|
In memory, it must be a bmp to be of any use to you. To save it to disk as a jpg, you need libjpg, or better yet, use GDI+.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
could you tell me how to do it by GDI+
|
|
|
|
|
Read my articles on GDI+, I present a paint program I called 'doodle' ( so search Code Project for doodle ), which has all the code you need in it.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|