|
the panel associated with your ID ID_INDICATOR_RAINBOW need a string in a string table, and the panel will be sized to fit the string that you set in the resources.
at least that's what I did.
Max.
|
|
|
|
|
That was it-----I now recall doing that in my old project!
Appreciate your help,
ns
|
|
|
|
|
Hi trying to use Visual Studio 6.0 (sp5) but there seams to be some problem with my project. I have copied some source files and stuff from other projects in to this new one and now my class wizard don’t work as supposed any more.
Some of my classes do not show up in the class wizard but they are in the project, I can compile and edit the files. This also results (I think) in that the so helpful “inline help” in the code for those classes do not work when I edit them.
Anyone know of how the wizard store its information or if there is anny tool or other way to fix a
corrupt project like this?
regards Me...
|
|
|
|
|
Hello,
I don't know if there are better solutions (I'm novice)
You can try this:
1) Get a copy of your full project directory in a safe place.
2) Delete the *.clw file (where the class information is stored)
3) Try to access the class wizard (Ctrl + W)
4) regenerate class information from your project files (automatic process)
5) reorganize all your classes in the class wizard tree.
hope this helps...
|
|
|
|
|
I have found that Class Wizard often gets confused when I am modifying the code. Almost always, the way to fix it is to edit the header file for a class, change a character (any character) and change it back. Save the file and things start working again.
I can only presume that this forces some kind of parsing action on the files involved.
Good luck!
|
|
|
|
|
we have one editor(Text) which is executable. we want to write an application which captures the keyboard press events when user is typing into the editor.
we can get the editor window handle by FindWindow() win32 API.
But how to capture the keyboard Events when user is typing something into Editor??.
thanks in advance
adi narayana.
|
|
|
|
|
You'll either have to install a hook on the external window and intercept its WM_KEYDOWN, etc. messages or use functions like GetKeyState() and GetAsyncKeyState() to retreive the keyboard state (globally) in a loop.
Jeremy Falcon
Imputek
|
|
|
|
|
BTW, if you are trying to make a password snatcher I'll kill you!
Jeremy Falcon
Imputek
|
|
|
|
|
Hi,
I am trying to find a way of executing remote commands on an FTP server programmatically (i.e. some way of getting the same functionality as the ftp command 'quote'). CFtpConnection and the related classes don't have this functionality, so does anyone have any idea where I should look? are there some SDK commands I can use?
Thanks in advance,
Alex
|
|
|
|
|
MFC: CFtpConnection::Command
SDK: ::FtpCommand
|
|
|
|
|
Which version of MFC is this? I can't find a reference on MSDN either - I'm using VC 6.0...?
|
|
|
|
|
VC7. For VC6 use ::FtpCommand in wininet.dll(.lib)
|
|
|
|
|
AlexO wrote:
VC7. For VC6 use ::FtpCommand in wininet.dll(.lib)
Do you mean link with this? could you explain a bit more?
Thanks,
Alex
|
|
|
|
|
bool MyClass::ExecuteCommand(const CFtpConnection& rMyValidFtpconnection)
{
return TRUE == ::FtpCommand(rMyValidFtpconnection, FALSE, FTP_TRANSFER_TYPE_BINARY, _T("not_supported_by_mfc_ftp_command"), 12345, 0);
}
CInternetFile* MyClass::ExecuteCommandWithReturn(CFtpConnection& rMyValidFtpconnection)
{
HINTERNET hSteram = 0;
if(::FtpCommand(rMyValidFtpconnection, TRUE, FTP_TRANSFER_TYPE_BINARY,_T("not_supported_by_mfc_ftp_command_that_returns data"), 123456, &hSteram))
{
return new CInternetFile(hSteram , T("not_supported_by_mfc_ftp_command_that_returns data"), &rMyValidFtpconnection, TRUE);
}
return 0;
}
|
|
|
|
|
Cheers for the reply.
I understand how to use the function, but I simply can't use it. I get the message:
c:\ftpcmd\ftpcmd.cpp(32) : error C2065: 'FtpCommand' : undeclared identifier
or that 'FtpCommand is not a part of Global Namespace'.
I've tried linking with wininet.lib, and i'm on IE6.0.
How can I use this function?
-Alex
|
|
|
|
|
This brings me to the original point. When you look through MSDN for description of the function at the bottom of the page you see the following table:
Stock Implementation wininet.dll
Custom Implementation No
Header Wininet.h
Import library Wininet.lib
Minimum availability Internet Explorer 5
Minimum operating systems Windows NT 4.0, Windows 95, Windows CE 2.12
Which implies that you have to link to Wininet.lib(you got that), AND you have to include Wininet.h (you did not get that).
|
|
|
|
|
Just in case you forgot, in begining of stdafx.h you should have something like
#define _WIN32_IE 0x0500 //_WIN32_IE>=0x0500
|
|
|
|
|
Right, done all that.
I've linked with wininet.lib, #include'd wininet.h, and added the line you suggested to stdafx.h. no joy, however - I still get the same error messages.
I've looked through wininet.h and can't find the prototype for FtpCommand() which makes me think i might need an update...? Although MSDN (on the web - not my copy) mentions that this function should be available from Win95 up. I'm using Win98 SE.
Any ideas?
btw: really appreciate the help!
-Alex
|
|
|
|
|
I do not have VC6 at hand, but I suspect you need to download/install Platform SDK, where the Wininet.h is up to date. it is free but you have to search msdn.microsoft.com for it.
|
|
|
|
|
Cheers mate. That sorted it. It's amazing how hard it is to come across anything that makes you think that this could be the problem.
Thanks again,
Alex
|
|
|
|
|
I created a CButton with the BS_ICON and BS_TEXT flags. However I do not see the text. Is it possible to create a button with an icon and text with the default CButton? or must I use a derived class with ownerdraw ?
|
|
|
|
|
Hi,
I have a CPropertySheet window that has two pages. How can I do to make the width of each tab increase, if necessary, to each row of tabs fills the entire width of the tab control ?
thanks.
|
|
|
|
|
I want the user to type in a command in my edit box and then press enter to execute it.
I've subclassed my edit and intercept WM_COMMAND and VK_RETURN from LPARAM in the WndProc. But when I press enter, an annoying sound, like "pling" is playing. I don't want that sound! How to do?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
why dont you intercept OnOK()(or edit) and then execute it... or do i understand you wrong?
|
|
|
|
|
Again I forgot to tell that I'm doing pure Win32 programming!
Damn me!
NO MFC!
Do you know how to do it in Win32?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|