|
I'll try to explain again in hope of yours help.
one of my tabs contains an CDialog based window (myDlg), the problem is when tab is selected (shown) a myDlg window is shoving a resizing triangle in right down corner (also when resizing myDlg goes blank white ). How can I remove that triangle, myDlg is created with child style and border: none
|
|
|
|
|
Solved.
I totally forget about resizing class included for my dlg. Sorry for my mistake.
|
|
|
|
|
Hi all,
please tell me how can i handle a function when exe close from task manager.
please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
What do you mean by "handle a function" ?
|
|
|
|
|
like use Messagebox on closing.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
When an executable is 'killed' from task manager (by choosing "End Process"), the process will die abruptly and silently. I don't think there's a chance given to the process itself to execute any code in such a case. This is by design.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
If the user tries to close your app from the task manager on the Applications page (End Task), you can handle that by catching the WM_CLOSE message. However, it the user kills your app from the Processes page (End Process), then you're probably out of luck.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
thanks.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi,
I run a application uses command line. After running, it provides a monitor console for interacting with it. It also takes a command to intract i.e CTRL-ALT-2. How I can give this command through any other method. My mean to say using programming, How could I do that?
|
|
|
|
|
Hi All
How to create excel 2007 file through vc code?Plz help me
|
|
|
|
|
|
Hi superman
i use 2nd link which is given by you.I go through step by step but i got error
: error C3861: 'AutoWrap': identifier not found
|
|
|
|
|
AutoWrap problem solve.
But how can i save this file like(C:\add.xlsx).
|
|
|
|
|
MsmVc wrote: But how can i save this file like(C:\add.xlsx).
Use the Workbook::Save() method.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
Hi,
I need to export some Registry Keys in HKCU in my application, so I simply make a call to regedit and user commandlineparameters /s /e to export these keys to a file. This used to work fine, but under Windows 7, everytime I call regedit I get an annoying message from UAC asking the user to allow this (in my eyes really uncritical) action.
Do you have any suggestion how I can easily export a whole registry key to a reg-file, without getting a UAC warning?
|
|
|
|
|
You need to elevated privileges to run <code>regedit.exe</code>.
So you either select allow from the UAC prompt or run <code>regedit.exe</code> from an elevated process.
For example, if you run <code>cmd.exe</code> in elevated mode and then run <code>regedit.exe</code> from this command prompt you will not be asked whether to allow or deny.
|
|
|
|
|
Will RegSaveKeyEx() work for you?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hello Friends
I am having one file in java tht is having one class with two functions.
I want to use that function in My another c++ application.
Is that Possible?
Or PLease Suggest me some other Ideas?
Thanks IN Advance.
Regards
Yogesh Sikri
|
|
|
|
|
If it is just one or two functions, why not write a C++ implementation?
|
|
|
|
|
Actually ,that code encrypts the file and I dont know that same class in c++ and Moreover If i encrypt in c++ then I have to decrypt the same in java code.
Any Ideas??
Do u know the some classes in C++ for encryption as In java ,we r using like Cipher.keyGenerator,SecretKey.
And If it is possible to call java function in c++ code then please tell me that way some Ideas.That makes my work faster as I am in very short span of time.
Regards
Yogesh
|
|
|
|
|
|
Hi,
2 days back i posted for change position and size of maximising window.With our forum friends help,i get the solution.But now i face one problem that after maximising the child windows, the caption bar is not updated ,It just display as blue color blank bar.
Any one pls help me to sort out of this problem.
void CChildFrame::OnSize(UINT nType, int cx, int cy)
{
CMDIChildWnd::OnSize(nType, cx, cy);
int XBorder = GetSystemMetrics(SM_CXMAXIMIZED);
int YBorder = GetSystemMetrics(SM_CYMAXIMIZED);
switch (nType)
{
case SIZE_MAXIMIZED:
if (::IsWindow(this->m_hWnd))
MoveWindow(40,40,XBorder-50,YBorder-40,TRUE);
break;
}
}
When i debug,this OnSize() getting called four times.
Anu
|
|
|
|
|
The container item would be a pointer to an object composed of a key and a pointer to another object.
The key will be a composite key, composed of 3 or 4 subkeys appended to each other in relative level of significance.
I'll need to be able to access the items in ascending order, based on a partial key lookup. Then after
getting the first item, be able to get each subsequent item in order. For example, if the composite key
is composed of 4 subkeys, be able to get the lowest key that matched the first 3 subkeys, then get each next higher key if necessary.
I don't need necessarily to get the full set of key items that match, just the next best one. Maybe,I could initially enter a key that would be lower than any possible real key and get returned the first key better(higher).
Then I could put that returned key in to get the next higher and so on.
Finally, I would also need another dataset, same as above but in descending order. This has to be fast, both on the insert and lookups,so walking a list would not be a solution as the number of items involved could easily exceed 1000 and the activity would be hundreds/thousands per second.
Hope this explanation is clear enough for someone to suggest a solution that would be a good fit.
Thanks in advance.
|
|
|
|
|
The first data structure that comes to my mind for this is a B+ tree with a pooled memory allocator for nodes. Now there isn't one of these sitting around in the standard library. It also may not be the most effective tree data structure for your needs. It is slanted towards moving through consecutive elements once you find your starting point.
What I would try first is the tree based container available in the STL. This is std::set ( std::map if your key was separate from your payload). For your usage, you would provide your own binary predicate implementing less for your objects (with a built-in level of indirection since you are using pointers). I believe that this is generally implemented using a red-black tree and emphasizes effective insertion and deletion of nodes.
Rather than creating a second container for reverse order, just use one and go backward for the reverse order.
You'd have to run some test to see if this would meet your performance requirements.
Any solution will compromise one thing for something else. You may have to experiment to discover what is suitable for your actual balance of activities.
modified on Wednesday, January 27, 2010 1:32 AM
|
|
|
|