|
I'm currently writing a FTP-client and I would like to implement a class which resumes downloads if they're broken. So what I need is an example of this (hopefully mfc...) or some links where I can get more info about this.
/XTSea
|
|
|
|
|
Hi,
I want to prepare one compiled HTML file.
Looks like MSDN help etc (it should contain one left pane, and right pane,
on clicking on any item in left pane, the related html file come into right pane).
Ex: MSDN help
How to do this?
Any one has an idea, tell me some APIs or related ideas to solve this problem.
thanks in advance,
Perumalla Koteswara Rao.
---------------------------------------------------------------------
Genius is one percent inspiration and ninety-nine percent
perspiration. --Thomas Alva Edison
|
|
|
|
|
Hi Koteswara,
You need to use the "HTML Help WorkShop", this is a freeware program from Microsoft, it includes an API to hook up the help to your program. Read the following article at codeguru to get started "Starting with HTML Help" by Joep Oude Veldhuis.
http://codeguru.earthweb.com/help/html_help.shtml
In the article there is a link to download the program.
Best regards
Jose
|
|
|
|
|
I mean that I need something like a CScrollView which make much of the work for scrolling with code ready to go (and also I need zoom capability, but this is easier to do). Unfortunately it is not possible to have a CScrollView created in a dialog because the class is to much linked with doc and so on. So actually I need a kindof simple and ideal CScrollZoomWnd.
I have tried to put a CSplitter with CView inside my dialog since there are some good examples on www.codetools.com. But I found that it is not possible to have a CSplitter object with only one row and one column. The programm crashes.
Other ideas ?
Thanks
Pierre
|
|
|
|
|
Why don't U try the above splitterwnd with 2 rows and 1 column and give the size of the second pane as CSize(0,0)???
|
|
|
|
|
Hi All,
I'm new to MFC and am trying to write a dialog-based application which accesses an ODBC database. Multiple dialogs are involved and I can't figure out how to access the same CRecordSet object from each dialog class. Any help would be greatly appreciated.
|
|
|
|
|
One way to do this would be to change the constructor of each of your CDialog derived classes so that you can pass in a pointer to your CRecordset object.
|
|
|
|
|
Hi Everyone,
I'm using Visual C++6 and I'm wondering if there is a code that allows me to call up the OPEN AND SAVE dialog boxes. (i.e when you want to open an existing document in Words, a dialog pop up.)
How do I write codes for those dialog boxes for OPEN, SAVE, AND SAVE AS??? And how do I Use those dialog boxes to save things inside my application?? Do I have to connect the dialog box to the application?? PLMK. THANKS AGAIN!
Steve
|
|
|
|
|
Read up on the GetOpenFileName() and GetSaveFileName() APIs. If you're using MFC, look at CFileDialog .
|
|
|
|
|
What is the best method of preventing the download of certain elements of a web page (ie .gif, .jpg, .mpeg). I'm sure it's relativly simple, but I'm not too up to date on COM so it gets very confusing trying to go thru the documentation and the samples are not too helpful. Any thoughts would be appreciated.
|
|
|
|
|
I need a MFC class implementing a scrollable window inside a dialog. Any idea ?
|
|
|
|
|
Even a CWnd could be OK... It depends on what you want to do with that window!
If you are more specific you get more specific answers
|
|
|
|
|
I have MSVC++ 5.0 I want a RELIABLE method of detecting the number of buttons a mouse has within my program (inclusive of the Intellimouse Explorer), that will work under Windows 95/98/2000 and NT! I already know the following:
1.)Win32 will always report 2 mouse buttons no matter what type of mouse is connected to the system.
2.)Attempting to use the following code:
if ((hMouse = GetModuleHandle ("MOUSE")) != NULL)
lpfnInquire = (LPFNINQUIRE) GetProcAddress( hMouse, "Inquire" );
This technique will only work if MOUSE.EXE is specified as being loaded under the WIN.INI file! (Most people don't do this anyway, at least under 95. And I don't want to mess up other people's systems by writing to the WIN.INI!)
3.)I DO NOT want to have a list of every possible mouse type that can be connected to the system! (hoplessly dating my program!)
There should be a way (short of writing my own mouse driver) that I can detect the mouse driver and obtain this (number of buttons) information. What is it?
|
|
|
|
|
Where did you get the info that the OS always returns 2 buttons? Both GetNumberOfConsoleMouseButtons() and GetSystemMetrics() return 5 for my IM Explorer me on 2K.
|
|
|
|
|
Still in need of an answer! Will not work under Windows 95!!! (I know, I tried BOTH, and both give the same answer (2 buttons))! The app I am designing is to be a mouse/keyboard remapper, and is to be TSR (so I can't play tricks like capturing the mouse in a screen and disecting the packet structure!) Need help please! I've wasted a week already on this problem!
|
|
|
|
|
How to find no of comm ports available in the system? (apart reading from the registry)
thanks in advance.
|
|
|
|
|
2 questions
1) I have a Rich edit control in a dialog box. I add text to the end through a CString. I want to keep the scroll position it the bottom of the text. Whenever you call UpdateData (FALSE); it springs back to the top of the text. I've had a look at the setscrollpos, etc (that are in CWnd), but they are not very effective.
2) In the rich edit control i want to have different colours, but since the user does not enter text directly i use updatedata and all formatting is lost (and all text goes to the last setting used). Anyway around this?
thanks
|
|
|
|
|
for question #1
Have you tried the LineScroll() member function ?
For example, after UpdateData(FALSE);
int nVis = m_edit1c.GetFirstVisibleLine();
int nscroll = m_edit1c.GetLineCount() - nVis;
m_edit1c.LineScroll(nscroll);
(assuming that you have a control variable,
m_edit1c, associated with the Rich edit control)
|
|
|
|
|
I've tried to implement an Unicode program, to read and write Unicode character, but when I compile the program, this is the error message :
msvcrtd.lib(wcrtexew.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/DAS Converter.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
I already define _UNICODE, and also use wWinMainCRTStartup as the entry point.
Please help me,
Thanks
|
|
|
|
|
I have in an application several List controls. I don't want scrollbars, even when all the content of the list is not visible.
I have tried different ways but I didn't find the solution.
I did this with CListBox with no problems but list controls are different.
The LVS_NOSCROLL style is not what I want, because I still want to be able to scroll programatically.
I would appreciate a hint.
Best regards
Jose
|
|
|
|
|
1. What are the minimum requirements to use 'Microsoft Web Publishing API' programs? To run a application developed using this API what do I need to have installed? I could not find this info anywhere.
2. The following code segment crashes with a 'Unhandled exception in <whatever>.exe[WEBPOST.DLL]: 0xC0000005: Access Violation.', after WpPost is called. I have Administrative privileges on my system.
<code_segment>
char *fname[] = {"E:\\workdocs\\book.xml"};
LPTSTR szLocalPaths = NULL;
szLocalPaths = *fname;
LPTSTR szSiteName = NULL;
char *dname[] = {"http://160.86.13.190/"};
LPTSTR szDestURL = NULL;
szDestURL = *dname;
lReturn = WpPost(NULL, 1, &szLocalPaths, 0, NULL, 0, szDestURL, WPF_NO_UI);
<\CODE_SEGMENT>
What am I doing wrong here?
Thanks,
Sai
|
|
|
|
|
You need to have the web post installed on the client machine to post files to a server.
Search MS web site for this client-related download :
pa20setup.exe - Web post acceptor
Keyword search for "web publishing wizard" and "web post"
You need to have web server extensions installed to the server machine to accept web publishing.
Use these links to get started on server side :
Resource Kit
officeupdate.microsoft.com/frontpage/wpp/serk/adoview.htm
Download
msdn.microsoft.com/workshop/languages/fp/2000/winfpse.asp
I recently had to get all this sh*t programmatically installed to a machine, so there are definitely two parts required - one on each end. You are probably more interested in the client portion for now.
|
|
|
|
|
Hi,
I wanr ro disable the Copy and Drag operations in Webbrowser control . One way of doing it is in Pretranslatemessage of Webrowser container we can trap the CTRL+C and WM_LBUTTONDOWN AND disable them. Is there any other way of doing it ????.
Thanxs in advance.
Balak
|
|
|
|
|
I have designed and implemented a set of services for NT. I used the ATL COM wizard to create the skeleton and then fleshed it out with my desired Run() actions. I want to make ( and have tried to ) several user-defined controls. Whenever I call the ControlService() API I get ACCESS_DENIED. I have domain admin rights on both machines so I do not think NT security is the issue. I obtained a service handle using OpenService. I have passed EVERY combination of SERVICE_ACCEPT_ flags to OpenService
including SERVICE_ALL_ACCESS. None of them work. All of them result in GetLastError() = 5 ( ACCESS_DENIED ). I am able to START and STOP the service but all other controls fail. I have noticed that the SERVICE_STATUS returned after opening indicates that only STOP controls are accepted. Could some kind soul out there enlighten me on how to get PAUSE, CONTINUE, and USER-DEFINED controls to work for the ATL NT service model ? Please send any reply to my email address ( although I will check this site as often as I can ). If you have a good example of a
service ( source code ) then send it along.
Many thanks,
Robert
|
|
|
|
|
Hi,
How do i disable the PrintScreen and Print functionality in a dialog based MFC application???. Can anybody
enlighten me about this
|
|
|
|