CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (458 messages)

#29640- USRDLL & VB Message #30276
Hello Israel, Sorry for not getting back to you sooner. There are several options I wanted to explore on this question. After looking into this issue and considering it a little further I would recommend NOT using a message hook to insure that the temporaries get deleted. MFC already provides…
Resources Low Message #30275
Hi, Our application is using up resources but not properly releasing them when finished … The problem apprears to lie with our forms. About 60 bytes in USER Dgroup, 500 bytes in one USER Private area and 1000 bytes in another USER Private area get used and are not released…
I was wondering if it is still possible to get into the beta program for Visual C++ 2.0 and if so how one would attempt to do so. Thanks, Michael
#29898- Menu & Title bars Message #30271
Roger, OK, got it. I tried WM_NCPAINTs and all sorts of other methods to no avail. Odd how this seemingly unconnected call finally did the trick. Some MFC stuff is still rather obscure… Thanks, CHR$, Matt.
#29988- #MFC Control lib needed Message #30270
Eric, Are you aware that some of the VBX controls in Visual Basic can also be used in Visual C++ (Only the ones written for Visual Basic 1.0 though, unfortunately). Other than that, we use FarPoint tools for grids, but they aren't really as user friendly as VBX controls, as…
#29454- ORACLE ODBC connect Message #30269
>I have a problem connect to ORACLE database using MFC CDatabase. >I can connect using MS Query and return data to the Excel SpreadSheet. >Anyone out there have any success connecting to ORACLE using the ODBC >driver downloaded from ORACLE Forum? If you use ClassWizard to create a new class,…
#29210- #MFC Beginer Message #30268
>Help! I've just purchased VC++ v1.5 and I would be grateful if anyone could recommend a >beginnesr book on MFC. I have extensive experience of C++ under DOS but most of the >books I've seen on VC++ start from scratch on C++ and only briefly mention MFC. Are there >any…
#30208- MFC Journal Message #30267
Mary, Thanks. I guess with all the problems we had with issue 1 I just got nervous. I'll be patient and wait for issue 2 to arrive. At least my anxiety shows how eagerly I am awaiting the next issue! Take care, Ken
#30033- WM_* in dialog listbox? Message #30266
Yikes! You've hit the nail on the head, by the looks of it. I hardly expected you to send such a complete answer, but how am I to complain? Thanks a bunch, I'm off to incorporate your suggestion … I had tried deriving my own listbox class, but guess I…
#29998- WM_* in dialog listbox? Message #30265
I haven't seen this method before (still wading through all that 'documentation') but found this to be quite interesting. The only thing is that it does not give me access to mouse button clicks (in particular the right mouse button) — it appears to be keyboard-related stuff only. Having said…
#29993- WM_* in dialog listbox? Message #30264
I looked at the LBN_* messages, but they are all generated (except for errors) by a left mouse button event. I received another message (from Gary Capps) which seems to be the approach I am looking for (which, BTW, does involve subclassing the listbox). Thanks for your quick reply! Al
#30162- CFileDialog Message #30263
From: Randy Foundation Classes Forum · Doc/View/UI July 8, 1994 8:20 AM
Thanks I did find the documentation.
#30151- CFileDialog Message #30262
From: Randy Foundation Classes Forum · Doc/View/UI July 8, 1994 8:20 AM
Yeah, sorry, I found what you are talking about. Being a beginner at MFC and Visual C++ I was going through an example out of a book. They had a "string" defined in the .RC file that contained the extension information for a default extension. I was looking for a…
#30220 Window menu Message #30261
From: Peter Glick Foundation Classes Forum · Doc/View/UI July 8, 1994 7:53 AM
Hi Paul – I just went through this exercise and hacked together the following code to display and add a check beside the current top window. CGrayFormView is derived from CFormView. GetNextView is a routine to find all the active views. This varies on how one keeps track them. I…
#30159- CFormView limits? Message #30260
From: Peter Glick Foundation Classes Forum · Doc/View/UI July 8, 1994 7:53 AM
Hi Pete – Boy, you are going through almost an identical scenario as I did with tons of CFormViews in a MDI application. The problem I had initially was assigning menus to the views in the AddDocTemplate calls. This immediately ran me out of user heap. I wound up assigning…
#29011- waveOutOpen && MM_WOM_x Message #30259
Vhanks for responding. >What window handle am I passing. (Frame, View, Derived) I am deriving a class directly from CWND and attempting to create a hidden child window of the Frame to handle the callbacks. This is the code I am using to Create the window and initialize the Callback…
#29094- #OCX Controls Message #30258
>> We are trying to get away from the OCX label and are simply calling them OLE controls. > Thanks for the OCX info – yes it helps (lets see… summer started when?) -jim-
#30228 #CEdit and Margins Message #30257
Steve: That's exactly my point. I want to set a hard margin within the window regardless of how the window sizes. The fact that the MLE wraps at the window boundary is my problem. Thanks, Kev.
Dear Ed, I am trying to find a solution for the following problem. I want to create a modal dialog whose parent is formview. However, I do not want the dialog to be modal for the complete application, but only modal for the parent formview. I want to be able…
#29891- MDI Menu Resource leaks Message #30255
From: Peter Glick Foundation Classes Forum · Doc/View/UI July 8, 1994 7:14 AM
Hi James – Good news. I finally nailed the problem. Turns out that there was an old line in three of the .RC files: "MENU n", where n was some low integer. This must have been a holdover from a time when I was attempting to assign menus in the…
#30217- #Time functions Message #30254
check out the CTime object. I think that provides decent amount of flexibility. just look it up in help, under MFC. hope this helps a little, ciao – jvs
#30244 Large Model Message #30253
Hi, Well Michael, I have good news for you on both counts. Petzold's comment was probably made in the first edition and not corrected in subsequent editions. As you mentioned, Windows maintains a selector table and when segments move, your pointers will remain valid. As far as the local heap…
#30201- #PostMessage(WM_CLOSE ? Message #30252
Yes, this is a modal dialog but I am not calling EndDialog. I will give it a try and let you know what happens. BTW, is the next issue of the Journal being mailed yet? I have been trying to find the telephone number I had for SPA but can't.…
#29630- Access & over 64K data Message #30251
Pierre, There is a _tiny_ bug in the CLongBinary transfer mechanism: it doesn't work for > 64 K. Whoever wrote it forgot 2 things, one of the 2 was to split up the transfer in 64K pieces. There should be a KB article on this in MSKB either now or…
#29811- ID_RECORD_FIRST Message #30250
Dan, >> Note: The SQL Server ODBC driver allows only >> one open recordset per database connection. The cursor library (odbccurs.dll) works around this limitation. In fact the way the MFC database classes are written they would not work at all with the SQL Server driver without the cursor lib.…
#29959- Can not update record Message #30249
Kyle, The only Access driver that is available is the one from MS. Since MS does not release the interface specs, no third party can produce a competing driver at the moment. Watcom does support Dynasets. -Ronald-
#29976- CRecordset Query ? Message #30248
Ted, Sorry for coming in this late, but I don't quite understand your exact question: If you have no "order by" cluase, the question is meaningless, because then there is no order in which you will get the records, so "scroll forward from the selected record on" is quite meaningless.…
#29785- ODBC RFXText failure Message #30247
Joseph, I have always found that posting a question here gives the best results. I don't bother with phone support at all anymore. -Ronald-
#29709- Best C++ DB API? Message #30246
Will, WINEXT Section 10, message # 109679. -Ronald-
CRecordSet -> ACCESS Message #30245
(This request for information is being sent to : – ODBC – Desktop Drivers – MSMFC – Database Classes) I am having trouble with the reaction times when using CRecordSet and would like to know if this a common problem or am I doing something wrong : .MDB : The…
#Large Model Message #30244
I have been working through Charles Petzold's book 'Programming Windows'. Could anyone help with a couple of misunderstandings on my part, please. On page 285 of Petzold's book for win v3.1, he talks about why using large model is a bad idea, you use an example of a static pointer…
We urgently need some help!!!! I am the European Vice-President for Research of Computer Sciences Corp. (as you may know, the second largest systems integrator in the world). We have been developing a system for one of our clients in France, client-server based, Oracle DB on the server, WFW3.11 on…
#29860- #MFC Journal May/June? Message #30242
#30185- Beware of Protoview! Message #30241
Hi John, I don't know Protoview products, but I've been following this thread, and I think you're a bit too impatient. As it appears you posted your warning about Protoview after less than a week since you asked them technincal question. I'm also a developer, and I always demand my…
We are using windows timer function to trigger time based routines at intervals of 1 minute. Some times the interrupts are not coming at the intended time. How can we get the interrupts at intended time. Example: Interrupts are required at 10:45; 10:46; 10:47; ………… Timer is registered at 10:45:50,…
#30094- Using CMapStringToObj? Message #30239
Michael, cast your pointer manually to a CObject pointer! ThomasZ
#30064- subclass window assert Message #30238
David, this is due to CTL3D, since it subclasses all the controls in your dialog before your OnInitDialog is called. MFC checks the window proc when subclassing and complains. The easiest way to circumvent should be to swich off automatic subclassing and to to this manually in your OnInitDialog. ThomasZ
Mark, VC++ 1.1 targets win32 only ! And if you hit the compatibility button in the online doc, you will see they aren't supported on win32. If you want to target win16, you have to use VC++ 1.0 or VC++ 1.5, which of cours run on NT ( although 1.0…
#30068- #Subclass woe Message #30236
Charles, PMFJI, you only have to override this function for CWnd derived classes, the MFC control classes already override it, providing a place for the window proc pointer. Clear as mud ? ThomasZ
#30140- Changing the Cursor Message #30235
Craig, I assume that you in fact returned TRUE in your first code snippet to stop further processing ! I looked around a little and found an article "Static Controls" on the MSDN CD, below I paste the relevant paragraph: >>Static controls might be called "no input controls" because they…
#30094- Using CMapStringToObj? Message #30233
I think you want to use a CObject pointer in the function, and then after you get it, cast it to a pointer to your own class that you are mapping before using it, something like: CObject* pObj; GetNextAssoc ( …, … , pObj); CMyClass* pMyClass = (CMyClass*) pObj; There…
MDIChild Windows Message #30232
How do I create MDI Child Windows that are initially maximized? I have derived a new MDIChildWnd class and have a PreCreateWindow function but I'm not sure what I need to do there. Would appreciate anyone's help, Thanks, Jeff
From: Scott Smith Foundation Classes Forum · Doc/View/UI July 8, 1994 2:18 AM
I ran into an interesting 'bug' today. It isn't really a bug, but it's caused by an easy-to-make mistake, and the results are pretty disasterous. Here's a sample of some code using CListBox::GetText: MyDlg::MyFunc(int iIndex) { CString sListBoxItemText ; m_CListBoxFoo.GetText( iIndex, sListBoxItemText ) ; … } The GetText function is…
I am writing code to allow me to save am MDI child window position and restore it next time a document is opened (it is saved in the document). I now have this working except for the fact that I need to "factor-out" the vertical size of the toolbar. It…
#29813- #CEdit and Margins Message #30228
#29809- app with no document Message #30227
> Not with the MFC doc/view architecture–documents are an integral part of that design, and a view must be attached to a document. > Turn off the FWS_ADDTOTITLE bit in a PreCreateWindow() override.
#29726- mainframe client area Message #30225
> really stripped down bare-bones application (with no view or document) > Hey no problem–I can take it. Besides, I know where you live…. But my post was a subtle (maybe *too* subtle) hint that people using things like tool bars and status bars really ought to be using the…
#operator= and MFC Message #30224
In the interest of good C++ practice I am coding my classes with copy contructors and where appropriate overloaded assignment (operator=) functions. Now I come accross the MFC defined classes (from which I inherit) and I find that they dont in fact define copy contructors or even assingment functions. So…
Not Present Fault Message #30223
Hi, Occasionally, while starting up my app under debug (although I have not tried under a release build), I get a "Voice caused a Not Present Fault in module KRNL386.exe at …" Voice, while not name of my application, IS the name of my .ini file. I have not seen/heard…

Page 9 of 10