|
well, just do it.
We'll not help you if you at least do not tell us at least what the problems are.
What kind of errors you are having?
|
|
|
|
|
god, you just don't answer anything there !
i asked WHY DO YOU NEED IT TO COMPILE WITH VC++ ???
that means, WHO asked you to do that, and what for ???
and i also asked WHY DON'T YOU JUST DOWNLOAD THE EXE ?!
|
|
|
|
|
God this is annoying, and I've run into it too - The ORIGINAL question was "Has anyone tried this..." and your answer is, "Why would you do that?" This isn't an answer, you're wasting his time and my time and ANYWAY, why WOULDN'T you want to compile it if they give you the source code????
|
|
|
|
|
stdafx.h
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define _WIN32_WINNT 0x500 ----- "added"
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
still its undeclared.. HELP!!!
Thanx n advance
|
|
|
|
|
Make sure you have latest platform SDK installed.
This FAQ[^] by Michael Dunn should give you idea.
|
|
|
|
|
i need to display characters like Alpha, lamda, theeta, etc.. in groupbox caption of a dialog.
In resource editor its appearing but if i run the exe its not showing correct one in the dialog.
How to get these special chars please help?
modified on Thursday, May 15, 2008 5:55 AM
|
|
|
|
|
|
void CMainFrame::OnSize(UINT nType, int cx, int cy)
{
CMDIFrameWnd::OnSize(nType, cx, cy);
if(this->m_wndToolBar)
{
rect.SetRectEmpty();
this->m_wndToolBar.GetWindowRect(&rect);
this->ScreenToClient(&rect);
this->GetWindowRect(&rc);
BOOL bReset = this->m_wndToolBar.SetWindowPos(NULL,rect.left,rect.top,rc.Width(),rect.Height(),SWP_SHOWWINDOW);
if(this->m_wndComboBox)
{
this->GetClientRect(&rect);
this->m_wndComboBox.SetWindowPos(NULL,0,0,rect.Width(),22,SWP_SHOWWINDOW);
}
}
}
wqewqqeweqwrwerewrwe
|
|
|
|
|
ftbk wrote: SetWindowPos doesn't seem to work
this doesn't mean anything.
how does it behave ?
how do you intend it to behave ?
do you have any error message ?
ps: please edit and format your post !
|
|
|
|
|
ftbk wrote: BOOL bReset = this->m_wndToolBar.SetWindowPos(NULL,rect.left,rect.top,rc.Width(),rect.Height(),SWP_SHOWWINDOW);
Is that a typo here? or the typo is in your programm? If it is so... correct it and try again.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Hi,
on a view (MDI Procect) i have some textboxes. The focus is on textbox (A).
Then i hit the Return-Key to simulate a click on a button.
The click on the button does some work and finally i set the focus on another textbox (B).
I set the focus on (B) this way:
- Post a Message
- At the MessageHandler i set the focus directly: textboxb.SetFocus();
after this the focus is correctly into the textbox (B) BUT the cursor (vertical insertion bar) is still
at the textbox (A)
If i click the button with the mouse, all works fine. I get only this kind of problem if i hit return.
Sets the "return-key" on the button the focus automatically on the last "entry-control"?
Big thanks for any answer
Greetings
|
|
|
|
|
Hope it [^] helps.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks for your article.
I tried the following:
SendMessage(hdlg, WM_NEXTDLGCTL, (WPARAM)hwndControl, TRUE);
But it has exactly the same effect. Focus is on textbox B and the insertion bar is in textbox A
If i switch to another application and come back to my application, the focus and the bar is correctly displayed.
That's strange to me :S
|
|
|
|
|
Well, you could use use Invalidate () to make the dialog redraw for a quick bodge - but I'm curious why the WM_NEXTDLGCTL isn't working properly.
Can you get to your desired control by pressing TAB a lot? If not, that may be a clue for you.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Iain Clarke wrote: but I'm curious why the WM_NEXTDLGCTL isn't working properly.
i'm sure it's working like the OP told it to work
|
|
|
|
|
Thanks for the answer, but it also don't work.
But i see a reason :
If i hit the return-Key i execute the "OnButtonClick" block, there in i open a MessageBox.
With this messagebox it failes. If i comment out this line, it works nicely.
If i click really with the mouse on the button, to launch the operation, i change the focus
by clicking on the button... Then it works nicely (using the MessageBox)
So, i change the focus myself, programatically on the button BEFORE i open the MessageBox.
Then it works again ...
But it's seriously not the solution to set at the beginning the focus on a button, then on another textbox ... or?
Thanks for answers
|
|
|
|
|
Hi all,
I am working om an ftp client module in MFC C++ 6. Using the CInternetSession and CFtpConnection. This all works fine. However, I have a customer who is connecting through a Socks proxy. I have tried to install such a proxy myself and get my ftp client to connect through that proxy, but I don't seem to get it to work. First of all, the CInternetSession has the ability to specify a CERN proxy name, but I am not using a CERN proxy here. Even if I specify the name and port number of my proxy (using the name:## format) my tcp sniffer does not see any attempt to connect to the proxy at all! Secondly, I need to pass the connection a second username/password in order to satisfy the needs of my customer's proxy (In a normal ftp session, this is done using a "USER" command twice: first for the proxy's username/password and secondly for the ftp server)
I can't seem to find any usefull information on the internet either. Does anyone have any realy bright ideas that can shed some light on the subject please?
Many thanks in advance
William
|
|
|
|
|
Hello I have a little problem,
Have a program in borland C++ and wanted to transfer it in Visual C++ but i got some error. One of it is with randomise and rand function. What should I include? Or is there other function that do the work in term of randowm numbers in visual c++ ?
|
|
|
|
|
Without seeing the code and the exact error it's a bit difficult to see what the exact problem is. Anyway, you have to use srand to generate the seed and rand to retrieve the random number (see those functions in MSDN if you need more info). You have to include <stdlib.h> also.
|
|
|
|
|
rand function is used in vc++ also.
int rand( void );
Do you include "stdlib.h" library.
Please send your code or error message.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
modified on Thursday, May 15, 2008 4:11 AM
|
|
|
|
|
Please explain me why low score.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Shilpi Boosar wrote: Please explain me why low score.
Actually it did not deserve it. I've balanced.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
ok
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
mihai123 wrote: Have a program in borland C++ and wanted to transfer it in Visual C++ but i got some error.
Oh, you're so informative...
mihai123 wrote: What should I include? Or is there other function that do the work in term of randowm numbers in visual c++ ?
Documentation my, friend, documentation [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Hello all,
My requirement is to place hyperlink in Message Box along with some other message. How could i accomplish this??
Any help is greately apprecited.
Regards,
Hemang
|
|
|
|