Hi. I'm not about to answer your question, but to remind you, that posting the same message under different titles and more than once (I think I counted at least 10) isn't nice style. If you want to correct a message or add something, reply on your own message thread. And if you did hit 'Submit' more than once, because it seemed like the server hang, delete the message posted additionally. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
skfnmuisl dmufa oi
Posts
-
Mysterious Dot.......Really challenging question -
Resizing a FormView to the size of the dialog displayedDoes anybody know a way to resize a CFormView derieved class, so that it exactly encloses the dialog resource and no scrollbar are visible? I tried it on CWnd::SetWindowPos(), but this does only change the size of the View and didn't affect the frame. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
SQL QuestionDon't mind, I found out that cascading inner joins is possible. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
Background color of CListCtrlSorry, but it doesn't help me. On handling this message, i can decide to paint or not paint the background. This is well doing, and my desired black background is already painting but not at the items background. That is my problem. The areas, where no item is 'overpainting' are black. Any idea? -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
Finding records ...Hi. The solution is very simple: SELECT * FROM Table WHERE Name Like 'Ali*' The question is, how to implement this: 1) If you're using Recordset-classes derieved by the classwizard, you have to modify the CDaoRecordset::m_strFilter member (like CMySet::m_strFilter = "Name like 'Ali*'). Remember that there is no 'WHERE'. 2) If you're using recordsets returned upon an querydef, just open the querydef with the whole SQL-string, including that 'like' condition. If you have further questions, you can contact me by eMail, as I'm often in touch with DAO and SQL in my projects. -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
SQL QuestionHi. I designed a database as data source for an application I wrote. The database has about 19 tables and several 1:n relations. Esspecially one table, that has 2-3 relations, like [Patienten].[Kasse] = [Kassen].[ID]. Now I'd like to query this table and instead of all the reference longs should stay the [name] field of the related record. I know how to do it for one field with an inner join like 'SELECT Name, Vorname, Kassen.Name FROM Patienten INNER JOIN Kassen ON Patienten.Kasse = Kassen.ID' But how can I do it for more fields? I can't cascade INNER JOIN, or is it possible? Thankfull for any answer... -------------------------------------------------- "Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. "
-
Background color of CListCtrlI'm using a CListView-derieved class which displays SQL-results in report style. I decided to turn the background gray, so I called SetBkColor() in OnInitialUpdate. The problem is, that this backgroundcolor can only be seen in areas, where no items are draw and as a flickering background when scrolling the list. :confused: What must be done to override the standard item background color? Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software.
-
MFC: Creating and showing a second, docking toolbarHi, I've created a MDI project with the Doc/View architecture (which I don't use, but it has advantages). As you will know, CMainFrame initialises the standard docking toolbar. But I wanted another one, that contains dynamically updated buttons depending on the MDIChildWindow that is active. So I've got two questions: 1. How does the CMDIFrameWnd get message if a new child window has been created by CDocTemplate::OpenDocumentFile(NULL), and 2. how can I create a second, docking toolbar in the Mainframe Thanks in advance, Karl
-
STL QuestionsHi. > Finally, whilst Im here can I also ask whats the difference between including things > with < and >, and in speech marks... Easy: #include searches stdio.h in the defined include directories while #include "stdio.h" searches the file first in the current directory and then in the standard include dirs. Thus, use <> for standard files or standard modules you use often and "" for your own files the current project. Karl Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software.
-
UpdateData ( FALSE ) don`t work in a FOR loopHi. Your code would be right for a console (or DOS) app, which is run as a sequence. As mentioned above, you block the message pump, because you do your work in thread which runs the GUI of your app. So you block the whole app! There are some ways to avoid this problem: 1. Use threads Count in a thread and send the changes as a (User-)message to the main window. 2. Use a timer Create a timer when clicked on "Start" and kill it when clicked on "Stop" In the timer routine you can do your UpdateData(). A propos: Never forget to call UpdateData(TRUE) before UpdateData(FALSE) !! Learning to make a good desing will save you a lot of trouble! Bye, Karl
-
Message queue overloadHi. Perhaps you should try to prevent the message queue from getting overload. I assume you don't need more than a few refreshs in a second?! So you can implement a global thread-safe bool which - is set when a message is sent to the GUI. - is reset by the paint reoutine after completion. The threads only send a refresh request, when the bool is not set. Hope it will help you. Karl
-
Questions on the TCP/IP Stack of Win9xHi. I need to access not only the sent data but the whole IP packets to analyze the headers (for a firewall-like app). My problem is, that I can't find any entry point in the MSDN to learn about access to the low level network traffic. How can I 1. get notified when a packet arrives ? 2. get the packet form the queue ? 3. put packets into the queue ? I'd be happy to learn about a good website/tutorial about this issue...
-
visible/disible of picture in run_timeYou just call the ShowWindow method of the corresponding CWnd, with parameter SW_SHOW or SW_HIDE. The CWnd* can be retrieved by GetDlgItem(ID) or you subclass the ctrl with the classwizard. Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software.
-
Devloper WantedHello out there, greetings from Germany. If you need developers, I could be your man. I'm currently engaged in WAP, XML, MFC, ODBC and other technologies. Check out my bio or talk to me, which I assume to be the more informative way. My E-Mail is K.Klose@gmx.net. Would be nice to hear from you in any case. Perhaps we could exchange code and/or experiences with our world of bits&bytes. So long. Karl Klose ---- Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. (Thanks a lot who ever wrote Robert's Perl Tutorial)
-
Detecting a Net connectionYou can check for open PPP-(Point To Point Protocol) connections by calling RasEnumConnections() (see help for params). The function will return the number of active connections. If there is none, you can dial up one by calling RasDial(). Hope this will help you. --- Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. (Thanks a lot who ever wrote Robert's Perl Tutorial)
-
Brand new to Perl and need HELP!!!1. a) >Here is 21. b) >\21 is my favorite. c) >Insert $num here. 2. Whatever you think about, a sub function is defined as following: sub MySub() { $arg1 = $_[0]; $arg2 = $_[1]; #etc return "A little text"; } and called: print &MySub("Hello"); --- Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. (Thanks a lot who ever wrote Robert's Perl Tutorial)
-
How to count the devices used in a RAS connection.I'm using VC++5.0 and my problem is as following: I want to count my families online time with a program that always runs and writes a state every 30 secs. The state should contain of the B-channels used but I can't figure them out with the RasGetEntryProperties() func. That is because I'm using Win95 (WINVER=0x400) as the docu says. In this ver the multilink part of the certain structure is not implemented. BUT I CAN DO MULTI-LINK CONNECTION? Does anyone know how I can figure out how many devices I use in a connection? Thanks for your attention. ----------------------------------------------------------- Pseudocode is code to demonstrate a concept, not designed to be run. Like certain Microsoft software. (Thanks a lot who ever wrote Robert's Perl Tutorial)