|
WM_TIMER would be best bet.. if you are beginner in MFC
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Check out SetTimer() .
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
I have a typical windows application that requires many dll's to work properly. One of the dll's generated during build process is actually a dummy dll (functions simply returns). This dll is supposed to be replaced by a third party dll with same function signatures.
Now the issue is
1. The Dll generated by the build process is a Win32 console dll, where as the third party dll I have is win32 GUI subsystem.
2. Even though the subsystems are different but actually the dll has simple C methods, nowhere using GUI stuff at all, so by simply replacing the dummy dll with the 3rd party dll should the things work.
Thanks and Regards.
|
|
|
|
|
As long as the functions in the dummy dll are declared in exactly the same way as the third party dll, then replacing the two dlls will work fine.
Dave Kerr
codechamber@hotmail.com
http://www.codechamber.com
|
|
|
|
|
plz tell me about the websites which help me in finding code and other problems in c++,vc++
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: plz tell me about the websites which help me in finding code and other problems in c++,vc++
you are already on that site!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
thanks for your reply sir
but i want to know much more
plz tell me
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: thanks for your reply sir
but i want to know much more
PlanetSourceCode for Beginner level programmer..
[ot] so where do your work in Noida!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i am not working yet but trying to find job
thats why i wnat to know about c++,vc++ helps
Ashish Dogra
MCA
Noida
|
|
|
|
|
How can I change the tooltip text for a Slider?
Moreno
|
|
|
|
|
you can set the tooltip for the slidecontrol using
void SetToolTips( CToolTipCtrl* pWndTip );
Once set u can change the text using:-
CToolTipCtrl::UpdateTipText
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
What is LPCTSTR lpszText? how can i set it?
and how can i found out the:
ID of the string resource that contains the text for the tool
(I'm trying to reset the tooltip text for a slider)
thanks
Moreno
|
|
|
|
|
Help me please i need to write function that reversing string, based on description :
str * revers(char * source)
Thanks in advance !
|
|
|
|
|
there's already a function
_tcsrev
nave
|
|
|
|
|
Thanks but i need to Write function , do not use exsting one ..
|
|
|
|
|
this will do....
char* revers(char * source)
{
int nCount = strlen( source);
char *pRev = new char[ nCount + 1 ];
for( int nIdx = 0;nIdx < nCount + 1;nIdx++)
{
pRev[ nIdx ] = source[ nCount - 1 - nIdx ];
}
return pRev;
}
nave
|
|
|
|
|
Assuming you're using the MS compiler, why not just view the CRT library source?
|
|
|
|
|
Or even better yet, why not do your homework yourself?
earl
|
|
|
|
|
I would advise you to do that (your own homework yourself). You see, the code Naveen R provided contains some potentially hazardous "features", is highly sub-optimal, and will surely get you in big trouble when you try to explain it to your teacher.
Here is my contribution:
char* reverse_string(char* s) {
char* p=0;
while(s) *p=*s;
return p;
}
If you can't get this code to reverse the string this may mean you should study harder
|
|
|
|
|
Hi all,
I am working with vc++(6).Now i am in trouble,i needed to get a popup menu when i right click on command button.I got pop up menu when i right click on dialog using WM_RBUTTONDOWN .But it does not work on command button which is on the same dialoge.Please help me
Thanks
Vinod Moorkkan
-- modified at 4:45 Monday 10th July, 2006
|
|
|
|
|
overide the PreTranslateMessage() funtion in the dialog and handle the WM_RBUTTONDOWN message there.
nave
|
|
|
|
|
Override WM_CONTEXTMENU..
CMenu menu;
menu.CreatePopupMenu();
menu.AppendMenu(MF_ENABLED | MF_STRING , ID_HELLO, _T("Hello"));
if(pWnd->m_hWnd == m_button.m_hWnd)
{
menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
}
m_button is object of u r button...
-- modified at 5:31 Monday 10th July, 2006
|
|
|
|
|
|
thanks sir
but if i want to add more items in bottom of hello.
and if i want popup menu for dialog box then what i can use in place of button member variable.
if(pWnd->m_hWnd == m_button.m_hWnd)
Ashish Dogra
MCA
Noida
|
|
|
|
|
menu.AppendMenu(MF_ENABLED | MF_STRING , ID_NEWITEM1, _T("NewItem1"));
menu.AppendMenu(MF_ENABLED | MF_STRING , ID_NEWITEM2, _T("NewItem2"));
just keep on adding as many items u want,..u can add separator,u can appened to existing menu also..
if(pWnd->m_hWnd == m_button.m_hWnd)..when u click on a button on dialog ,contextmenu appear,if u want it for whole just remove that line..that`s all...
-- modified at 7:38 Monday 10th July, 2006
|
|
|
|