This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (458 messages)
Carl I used Borland C++ and OWL for about 18 months and used templates extensively, I liked that environment and the tools that Borland provided. I have missed not having that capability in VC++. We found the Borland templates to be very reliable and did not have any problems to…
JT Please post that baby, I think we could use it and maybe there are others. Michael
The problem with OnInitDialog is that it is called before ShowWindow. Everything that goes on it OnInitDialog takes place before the Dialog is drawn. I want the Dialog to load,draw itself, and then call a routine to load a file that then draws to the dialog what it's doing. I…
Don Thanks for the detailed explanation. Michael
I'm pretty sure there's at least one progress-bar class in the freeware category in Lib 8. Suggest you check the library listing to see if you can find one you like. -steve
They don't mind not explaining it as applied to AFX, why should it bother them when applied to OCX? (If this is really a problem for them they need to apply some imagination and make up a believeable meaning for it.) -steve
DestroyWindow() on CEdit
Message #30594
Hi John, I think it is a problem with Windows not painting the deleted edit control's rectangle correctly. To workaround this problem, you might want to explicitly invalidate the region slightly larger than that occupied by the edit control. You can do this by calling InvalidateRect() on the parent window.…
Randy, Check out the file MFCJ.ZIP in the forum library, section 15 ("Unmonitored Chat"). It should explain everything you need to know…if not, feel free to ask. Thanks for your interest! Mary Kirtland MFCJournal
John, This is a bug in the NT version of MFC2.0. I believe ExitInstance() is *supposed* to be called in the PROCESS_DETACH case for DllMain(), but it isn't. Basically, you need to write your own DllMain(). I'm pretty sure you just need to modify the case for dwReason == DLL_PROCESS_DETACH…
Check to see if your menu has any item with empty text, or has a vertical separator at the end. If I remember correctly, those are two things that cause the half height menu problem… Hope this helps, Mary Kirtland MFCJournal
> Oh, I think you would have found out pretty quickly… Mary
>> Just what's wrong with "OCX" anyway? Maybe they don't want to explain what the "X" stands for… Mary
#Unfolding Dialogs
Message #30588
Is there any support in the MFC's dialog classes for "unfolding" dialogs to support a basic/advanced version of a dialog box. The style guide talks about doing this but I've found no examples about how to accomplish it. —
Thomas, I have tried it both ways! Sometimes it works, and sometimes not. The app is MDI, and I have a couple of View windows that I call it in OnInitialUpdate for. I find this is somewhat erratic. Some dialogs always work, and some sometimes do & sometimes don't. HELP,…
#CEdit
Message #30586
Well I have some good news!!!!!! I adjusted the stack like you said and that has appeared to fix it!!! Everything works great know. Thanks again for you help!!!!! Jay Perkins
Robert, This is a known linker problem. It seems to happen only for very large apps, and only in debug mode. The workaround is to extract afxinl1.obj from the lib file and link it into your project explicitly. Hope this helps, David
Thanks for mentioning two options in handling errors in a constructor. I guess I will use the option 1 (set a Error-In_Constructor flag). This option seems to be compatible with the way my program works. Thanks for your great tips !!
Thanks for telling me the truth that I cannot use throwing an exception to handle errors in a constructor. Thanks again.
Thanks, Norbert. Now that you explain it, I'm not sure I will run into this problem, but it's nice to know the solution in case I do.
I just faced this issue – what I did was use a CFormView parent, creating a dialog containing a listbox in AppStudio. To get the sizing to work, add a WM_SIZE message handler to the view, and in it call SetWindowPos on the listbox (using the cx and cy arguments).…
Truetypes on Bitmaps
Message #30580
I am trying to print truetype fonts on a bitmap and then send the bitmap to the printer. When I attempt to do the TextOut, the program crashes. I have an HP IIp and an HP 4p. When I check print truetype as graphics, it works; if not, it crashes.…
Group by clause for set
Message #30579
Has anyone successfully used the 'GROUP BY' clause with the Database Classes? Any examples?
There is a white paper over in WinEXT about the Access Jet Engine 2.0. It talks briefly about ODBC. The new ODBC driver is supposed to use the full Jet Engine instead of a subset as 1.0 did. It also talks about the index structure and support for optimal index…
#minimized document bug?
Message #30577
I am having a problem when I minimize a document – when it has the focus and I hit Enter, nothing happens. If I minimize my file and hit Enter, it opens as I would expect. Is there some sort of know bug, or do I have to trap for…
Using henvAllConnections
Message #30576
I'm still having problems accessing the static member of CDatabase, henvAllConnections. Here is an example of my code: void CMyDatabase::Open() // derived from CDatabase { AllocConnect(); // Just in case henvAllConnections isn't connected yet char acDSN[SQL_MAX_DSN_LENGTH+1]; char acDesc[256]; short iDSNLen; short iDescLen; CStringArray astr; ::SQLDataSources(CDatabase::henvAllConnections, SQL_FETCH_FIRST, (unsigned char*)&acDSN, SQL_MAX_DSN_LENGTH, &iDSNLen,…
Thanks, Jay. How would I write the override to simply turn off the FWS_ADDTOTITLE bit? I know this seems basic, sorry. Another thing that is happening to me is that I am getting this message: wn GISMAN 0487:AE61: Invalid value: -32767 This message comes up in the debug win when…
#Linking Error
Message #30573
All, I am having a bazaar linking problem with VC++. The project uses the CVBControl and CDatabase classes in the MFC. If a static collection class object (CStringArray, CObList etc.) is declared as follows: { CStringArray m_strarray; or CObList m_list; } I get the following link error: c:\msvc\mfc\lib\lafxcwd.lib(afxinl1.cpp) : error…
#Progress Meter Dialog?
Message #30571
Can anyone point me in the direction of an object that behaves like a progress meter? (something like the behavior you see when running an installer). I know I could set such progress information in the status bar of the window, but I'd much rather have a dialog. Any help…
> Sounds to me like the graph would be a view of a new document type, that document being one that obtains its data from the open documents rather than from a file or database. So, when the user wants to show the graph, you'd create a new document of…
> You might consider the difference between 1) Asking MS for help because something doesn't work the way the documentation says it should, or generates improper code, or whatever, and 2) Asking MS to write your application for you, or to tell you how to write it. Asking someone to…
#Slider Recommendations
Message #30567
Hi, Anybody have recommendations for a slider implementation/VBX/class? I'm looking for a good 3d chicago-like slider for a volume control. Thanks, -Gerry Hall
Hi Paul, >Actually, I had the controls pass the keydown/keyup and char up >to its parent. This explains why you are getting WM_KEYUP and WM_KEYDOWN but no WM_CHAR messages. Not all controls get all the messages. e.g. Buttons get key up/down messages but no WM_CHARs. What messages a control gets…
Max no CRecordsets…
Message #30565
Hi! I followed the CRecordset bug discussion, but have the following question: I am writing a MDI app, where Users open documents, that are records from a database. Because users can edit these forms on-line, I create a recordset for every document (OnOpenDocument), fietered by the filenumber. I keep the…
#30039-
#Mighty GDI Destructor ?
Message #30564
Thanks for telling me the truth (need to manually delete old bitmap handle before ending the destructor) before I make a big mess in my program.
CColumns Exception
Message #30563
I am using the CColumns class that comes with the catalog's mfc sample. Since I am only interested in 2 -3 attributes about each field I decided to trim down the information I am retreiving/binding. When retrieving an integer field I always got an exception informing me that The RFX…
Can you recommend a good/cheap/win32 compatible ISAM library?
Craig, There are two utilities that will do what yo want. Go CSNAV and search for filenames tt110.zip and mxf100.zip. The first will extract all threads from a given file cabinet and create a single text file out of it. The second will read in the newly created text file,…
Charles, >Congrats on the Annual award in SDK!! Thanks…and congrats to you! I have no doubt that you will be on the first Annual list for this forum. (Shall we form a mutual admiration society? You pat my back and I'll pay yours. ) Michael Meadows
Thanks, I will try to skip that message and see what happen.
GPF in debugger
Message #30555
I am very frustrated with a GPF error occurs only when I am in the debugger of VC++ 1.0. I can recreate the problem with a application freshly generated with AppWizard. I am grateful if anyone can shed some light on how to avoid this problem. The foloowing sequent of…
Newer MEDMFC uploaded
Message #30554
Hello All, A newer version of the editor DLL has been uploaded to the Doc/View section here. The filename of the editor is MEDMFC.ZIP. Bug fixes : – Selection of text improved Enhancements : – Ability to handle proportional fonts in the text – Initial VBX version done. It will…
Newer MEDMFC uploaded
Message #30553
Hello All, A newer version of the editor DLL has been uploaded to the Doc/View section here. The filename of the editor is MEDMFC.ZIP. Bug fixes : – Selection of text improved Enhancements : – Ability to handle proportional fonts in the text – Initial VBX version done. It will…
Jan, I think it will start in a month or so. -Ronald-
Israel, When I double checked the info before posting it to you, I also came across CanTransact in CRecordset and I wondered about what made that one special as well. So… I looked at the source and found that CRecordset::CanTransact is essentially implemented as return m_pDatabasem_bTransactions So I really wonder…
Ron, >>Add a message handler for WM_CHAR. The framework "pre-translates" keystroke messages when an ASCII character would be generated, and sends this message instead of WM_KEYDOWN. Thanks for the help. It sounded like a really likely solution, but I'm sorry to report that neither the CMyWindow::OnChar() handler, nor its CFormView-derived…
There are several navigators available. I tried WinNAV, OzCIS, NavCIS, and I think another one or two before settling on WigWam; there are things about it that I'd like to see improved, but it has the user interface that I find most intuitive. You can download a demo then register…
(I'm not MS.) Sounds like either a z-order or a WS_CLIPSIBLINGS problem, most likely you don't have WS_CLIPSIBLINGS specified for the new window. Suggest you run SPY and see (a) that you have a "real" window instead of something that just looks like a window but isn't (it can happen),…
Postscript Printing
Message #30545
I am bitblt'ing to a printer device context from a memDC for printing. If I print to a PCL printer everything works fine. If I print to a postscript printer I just get a blank piece of paper. Print Preview works fine in both cases. ( I have tried two…
transparent windows
Message #30544
It appears that when a transparent window is updated, Windows doesn't bother to have whatever windows are under it updated too. The only solution I've found to this is to capture whatever is under the transparent window as a bitmap and restore it before repainting the transparent window. That isn't…
Page 3 of 10