|
No, of course not!
You use a recordset, (coded in C++) which needs a query string like the one I showed.
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
|
Hi
This is again a problem with thread. The thread is affected by programs running on the background. It is affected by the programs showing in the system tray. Is there any way to close all programs and processes other than my application and related processes and threads.
Help Me Soon.
Regards
Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
|
|
|
|
|
Sreekanth Muralidharan wrote:
Is there any way to close all programs and processes other than my application and related processes and threads.
EnumProcess and then Use WM_QUIT to kill Process other than you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi Alok
You are back again!! Glad for me !!
Thanks a lot. Will check that and shoot you a reply.
Shall we now open bottles?
Regards
Sreekanth Muralidharan
Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
|
|
|
|
|
Sreekanth Muralidharan wrote:
Shall we now open bottles?
Your Wish
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi Alok
See.. If I am setting the priority of the application process as a REALTIME_PRIORITY_CLASS in its OnInitDialog() function (if not in this function, where?) and setting the thread created by that application using SetThreadPriority() (calling in the thread itself) to TIME_CRITICAL_PRIORITY level , what would be the priority of the thread that I have created? Can any process or thread interrupt the thread I have created?
Regards
Sreekanth Muralidharan
Hyderabad
Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
|
|
|
|
|
Sreekanth Muralidharan wrote:
TIME_CRITICAL_PRIORITY level , what would be the priority of the thread that I have created? Can any process or thread interrupt the thread I have created?
According to MSDN, REALTIME_PRIORITY_CLASS :-" A thread with a base priority level above 11 interferes with the normal operation of the operating system. Using REALTIME_PRIORITY_CLASS may cause disk caches to not flush, hang the mouse, and so on.
"
So i believe no process or thread wil interrupt your high priority thread
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I think I'll never buy products from your company .
Seriously, I don't think this is a good solution ! Maybe the user doesn't want that your program kills its own applications don't you think ?
A better way would be to solve the problem itself. Maybe this is due to thread priority or something like that.
|
|
|
|
|
Hi Cedric
What you said was perfect. But I am using a thread with a real time priority for that. But still the disturbances happen.
Regards
Sreekanth Muralidharan
Sreekanth Muralidharan,
Corporate Systems Consultant [Embedded Systems],
INDIA
|
|
|
|
|
Hi:
I overload the CToolBar class , and process the default TBN_GETINFOTIP event to dynamicly changge the tips.
( ON_NOTIFY_REFLECT( TBN_GETINFOTIP, OnGetInfoTip)
the way works well. Then I create a toolbar in the statusbar in one of my project, but this way doesn't work at all. I couldn't get the OnGetInfoTip event form the toolbar created in the statusbar now. Why? how could I do?
Thanks
Benben
|
|
|
|
|
Get the tooltip control associated to your toolbar (MFC : GetToolTips()) and call the RelayEvent() function once after the init of the toolbar.
~RaGE();
|
|
|
|
|
|
Hey guys,
I'm absolutely not a experienced programmer but i have a problem, i will be happy someone can help me.
I have a dialog class CSimulator with a number of timers:
//part of the XXXXX.h file ****************************************************
class CSimulator : public CDialog
{
DECLARE_DYNAMIC(CSimulator)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
...
...
...
public:
virtual BOOL OnInitDialog();
void OnTimer(UINT nIDEvent);
//part of the XXXX.cpp file ****************************************************
IMPLEMENT_DYNAMIC(CSimulator , CDialog)
void CSimulator::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CSimulator, CDialog)
ON_WM_TIMER()
...
...
END_MESSAGE_MAP()
void CSimulator::OnTimer(UINT nIDEvent)
{
...
...
...
CDialog::OnTimer(nIDEvent);
}
When i start the class CSimulator from another class (CWnd) with DoModal() everything is working fine and the function CSimulator::OnTimer(UINT nIDEvent) is called after setting a timer with SetTimer(IDTIMER,50,0);
But when i start the class CSimulator from another class (CWnd) with m_Simulator.Create(IDD_SIMULATION_DIALOG); (m_Simulator is the instance of class CSimulator)
i have a problem. In this situation i don't receive the ON_WM_TIMER message .
Note: At another situation i need the class CSimulator (CDialog) showed in a window, but in this situation i only need the algorithm of the class, only modeless
What i'm doing wrong? I search a lot, but don't see the problem, can anyone help me?
Thanks, Bart
|
|
|
|
|
ON_WM_TIMER requires a message pump to be running, that's why you are not getting the messages.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Thanks, but how can i solve the problem? What is it for a message pump?
Greetz, Bart
|
|
|
|
|
Probably a silly question but where are you calling SetTimer() from?
If you are calling it in IntiDialog() in the CSimulator class then
it is never getting called when you instantiate and create the dialog
class from your CWnd class. If not then maybe you have some other code
in InitDialog() that needs to be run.
Steve T
|
|
|
|
|
Hi,
I've trying to create a browser helper object (BHO) for explorer. I've got a main "manager" class that initializes two objects. Each of these uses an simple XML parser (using MSXML). Now, when parsing XML files, I want to store the results to a struct array (not a class). The struct array is in turn comprised of a few other struct arrays. All mem allocation is static, only the topmost parent struct array is dynamically allocated. That's where the problem is: When I allocate (using new) the struct arr in the first object, its ok. Then when I init the second obj, the new fails and crushes the explorer. I did a simple test in the second obj:
int *i = new int[x];
when x is <255 it's ok. if x>=255 then it crashes (and of course, my struct arr is bigger than 255*sizeof(int) bytes). I don't think I have any serious mem leaks in the code before this.
Has anyone seen this before? Is there a memory limit imposed by explorer (unlikely as it sounds)? I would appreciate any comments.
Thanks,
Pete
|
|
|
|
|
Hello,
Can i edit a ms flexgrid(insert text into flexgrid and save it to a database).Or How can i place a textbox or combobox into a flexgrid cell.
Thanks in advance,
Best regards,
John.
|
|
|
|
|
Subclassing should be usefull
|
|
|
|
|
I cant seem to understand wat these errors indicate... Can U guys pls help...
Compiling...
ArrayDemo.cpp
Linking...
ArrayDemo.obj : error LNK2001: unresolved external symbol "int __cdecl sumArray(int * const,int)" (?sumArray@@YAHQAHH@Z)
Debug/ArrayDemo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
ArrayDemo.exe - 2 error(s), 0 warning(s)
Then why should we turmoil in cares and in fears,
Turn all our tranquill'ty to sighs and to tears?
Let 's eat, drink, and play till the worms do corrupt us,
'Tis certain, Post mortem 25
Nulla voluptas.
For health, wealth and beauty, wit, learning and sense,
Must all come to nothing a hundred years hence. - Thomas Jordan
|
|
|
|
|
It indicates that the implementation of the
int __cdecl sumArray(int * const,int)
function is missing.
|
|
|
|
|
Truse me 2 make the stupidest of erroes.... LOL I mistypes Sum as Aum...
Thanks for the help though....... Really appreciate it
Then why should we turmoil in cares and in fears,
Turn all our tranquill'ty to sighs and to tears?
Let 's eat, drink, and play till the worms do corrupt us,
'Tis certain, Post mortem 25
Nulla voluptas.
For health, wealth and beauty, wit, learning and sense,
Must all come to nothing a hundred years hence. - Thomas Jordan
|
|
|
|
|
You seem to have declared the function sumarray(...) but forgot to implement it.
Rahim Rattani
|
|
|
|
|