|
no something went wrong with my disc i got a new copy of ms visual studio and reinstalled it and all is fine again
|
|
|
|
|
Hello,
I have created a MDI application using CFormView.
In MS Access, when a table is opened and then the user selects View - Design View from the menu, a window opens with the usual max/min buttons. On maximizing, the window docs itself with the main menu just like the default CFormView of my MDI application.
How do I do the same thing in my application.
Thanks.
Fortitudine Vincimus!
|
|
|
|
|
MFC provides a few sync mechanisms
such as CMutex , CSemaphore .
As for Eg the CSemaphore has a Lock and Unlock mechanism .
Now I looked up the documentation for CSingleLock
It demonstrates a usage such as
CSemaphore sema
CSingleLock sLock ( &sema)
Now what is the difference between this as using sema.lock and sema.unlock
Engineering is the effort !
|
|
|
|
|
The semaphore is automatically unlocked when the sLock object is destroyed which typically happens when it falls out of scope.
|
|
|
|
|
Hi,
I have a simple GUI in which I want to implement a history feature of keywords that were typed in the CEdit box. How can I get a notification when the up or down arrow keys were preseed when the CEdit control is in focus ?
Thanks,
|
|
|
|
|
See if this article helps. Here is another.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thr first one was just an autocomplete, the second one was better.
thanks
|
|
|
|
|
I'm using VS6 ( yeah I know, crappy STL support )
I have a crash when trying to sort a vector of pointers to structures using a custom sort functor; at some point in the sort, one of the 2 parameter of my comparision is invalid ( 0xcdcdcdcd ). This does not happen the first time I call the sort, but at the second time.
I check the values in my vector before calling the std::sort , and the pointers are all valid, as well as the data inside.
std::sort( vector.beginvector.end(), sort_by_type() );
and the comparision is something like :
class sort_by_type
{
public:
sort_by_type();
public:
bool operator() (const my_struct* p1, my_struct* p2 ) const
{
return IsSmaller( p1, p2 );
}
};
and with my all-mighty luck, this works on VS.net 2003, so I assume that it must be related to the crappy STL of VS6.
Any ideas ?
so, if there is not quick fix to std::sort, is there a way to have a new and better STL for VS6 ? I don't think all the rest of the developers want to switch to vs.net 2003; I'm the only one using it.
Thanks a bunch !!
Max.
|
|
|
|
|
First of all, have you downloaded the patch (or the upgrade from Dinkumware) for the VC6 STL issues? I don't think Microsoft still has the VC6 patches available, but you might be able to find them on www.dinkumware.com s site.
My guess is that is probably going 1 past the end of the array (that is, the sort's iterator check was implemented incorrectly).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
dinkumware, that's what I was looking for.
is it "safe" to install ?
|
|
|
|
|
I used to use the SGI STL implimentation when I was stuck with VC6, but Dinkumware wrote the original VC6 STL, so their's is probably most likely to be 'safe'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I tried the patches, rebuild, and got the same crashes.
but I think we'll all upgrade to vs.net 2003.
|
|
|
|
|
Maximilien wrote: I have a crash when trying to sort a vector of pointers to structures using a custom sort functor; at some point in the sort, one of the 2 parameter of my comparision is invalid ( 0xcdcdcdcd ). This does not happen the first time I call the sort, but at the second time.
and with my all-mighty luck, this works on VS.net 2003, so I assume that it must be related to the crappy STL of VS6.
The bug is most probably in your code. Bugs in std::sort would have been detected so far.
|
|
|
|
|
Hi,
i have all the programmation in my CFormView ( which is raccorded with a Dialog (plus simplement) )
CMDIChildWnd with a CFormView and a CDocument ( Doc is not used )
So i have different CFormView's ... The CMDIChildWnd Object doesn't change normally
If i want open a new Child window, i need to do what?
Big thanks
|
|
|
|
|
Hi all,
I use the edit control EN_CHANGE event in order to update a slider in a software.
The edit control contains a number. My problem is that every time i write a digit in
the edit control this triggers the EN_CHANGE event, the slider is updated and the cursor
in the edit control is put at the beginning. I wanna the update of the slider
AFTER i enter the whole number in the edit control, not for every digit, but my
boss want me to do that without using a button to load the value entered in the edit control
into the slider. Is there another event i can use to obtain that ?
Thanx in advance,
Desmo16.
|
|
|
|
|
what is a whole number ?
I know what it is, but what is the difference between 23 and 234 if both values are valid ?
you could handle the kill focus event to only update the slider when the focus change, or handle the enter key and update the slider when the user hit the enter/return key.
|
|
|
|
|
When i say "whole number" i mean "not a single digit",
that is to say 345 or 765 and not 1 or 5 or 9.
And no, not all values are valid 'cause they had a geophysical meaning in the software.
Anyway, how can i trigger the event handling the enter key ?
Thanx in advance,
Desmo16.
|
|
|
|
|
Your use of 'whole number' makes no sense. I presume you mean a number that's been completely entered.
There is no event that's fired only when the text is a certain length, you'd have to check that yourself in the EN_CHANGE event, and update the slider only when it's within the range you're hoping for.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi the same thing will happend when u use EN_CHANGE.Without using any button down then you can do in one way . but there u need to tell application to do something after a perticular size of data is entered.
eex. data will update when u typed perticular number of characters in it.
|
|
|
|
|
Hi all,
How can i do if i need to create a system that uses two different Network Interface Card and i need to create a server on one card and a client on the other?Please help me!!!
|
|
|
|
|
i've solved the problem taking the second address in the address list and passed it in the SOCKADDR_IN structure.
|
|
|
|
|
hi all i m writting a software for Documents mangaments and i want to hide the folders containg the documents,
what my aim is that Anobody could not see the files from respective
Folder even the administrator,
i hadd found a software on the internet that hides the files and folder i mean thase are not shown in the drive,but i m able to read and write through my code without the password or any thing like that,
how to hide the folder so that its icon is not visible.
Tasleem Arif
|
|
|
|
|
So why not just add the "hidden" attribute to each file/folder?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I want to use Domodal() function call child windows, and also want parent windows can click during child windows appear.
How I write the code.
|
|
|
|