Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: LyMc
  • Order by date
  1. LyMc

    Total beginner asking for pointers

    Presuming you are using the resouce editing tools to build your dialog, then every time you create an object on the form a #define statement will be added to resources.h which defines the name you gave your object (generally something like "IDC_NAME_COMBOBOX") and assigns it a unique value...
  2. LyMc

    Using the Parallel Port Control Lines

    The four control lines are not meant to be "read" in the sense that data lines are. Some of them are meant to be read by the port driver and some written to. There are many places on the web that detail how to program parallel ports; see, for instance...
  3. LyMc

    Problems implementing operator==

    I have a problem trying to generate a custom == operator for a class I've created, and cannot see what the problem is. The relevant code is in the following snippets: Color.h: class Color { public: Color (); // constructors Color (COLORREF); Color (int)...
  4. LyMc

    How to get the default dialog color

    Thanks, Lazy. I think that is exactly what I need.
  5. LyMc

    How to get the default dialog color

    I have found (and used) lots of information on setting the dialog background color. What I want to do is *get* the color so I can use it to background some text. I understand that that color is editable by the user, and I want to match what they have chosen.
  6. LyMc

    What happened to debug?

    I'm using MSVC++ .NET (2001). Everything was going along swimmingly when all of a sudden I got an error in my application and it "had to exit". I clicked on Retry (meaning Debug), and the app simply vanished, as if I'd clicked on Close. It's now happened with several of the apps that I work...
  7. LyMc

    Using MessageBox in a WM_PAINT procedure

    xwb, thanks for the response. I'll consider doing option 1. If I understand you correctly, option 2 is telling me that what is causing the redrawing to happen repeatedly is the fact that I'm trying to debug on the same machine I'm running the app on. I'm not actually using the MessageBox to...
  8. LyMc

    Static Library Problem

    It sounds to me like you have runtime library problems here. I'm using MSVC .NET 2001, and if you right click on the main module in the solutions window and look at the properties->C++->Code Generation->Runtime Library, you have a number of choices there. The option chosen has to be the same...
  9. LyMc

    Using MessageBox in a WM_PAINT procedure

    I have a Windows SDK program that runs an extensive WM_PAINT routine to generate the window contents. I would like to be able to use MessageBox to display an error while drawing the window, but it seems that the act of putting up the MessageBox causes another WM_PAINT message to be issued...
  10. LyMc

    where is szTitle initialized?

    Generally, the VC template C++ file created at project initialization contains this line and also has a line inside the main program that says something like LoadString (hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); It is loading the string from the string resources which are also...
  11. LyMc

    startup?

    InstallShield Express 4 has a gui for adding keys during the install, I have to believe that all these super-expensive install programs must. The Nullsoft free installer has the capability.
  12. LyMc

    UDP Sockets VC++(not .net) part 2

    I'm not sure if it helps, but under UNIX sockets you would be using a select call, which would poll all the open requests for received data. There has to be some analog to that in your class methods; it is very basic to the socket paradigm.
  13. LyMc

    VC++ makefile

    A console project is a "traditional" DOS-type app. It will run in a DOS box (CMD box for w2k/XP. A true windows app using the Windows SDK is a "Win32" app. The differences have to do with differing assumptions about compiler/linker options and included libraries. They all use makefile (or...
  14. LyMc

    VC++ makefile

    In the build rules you require $(OBJMOC) to be prepared to build $(TARGET). $(OBJMOC) is moc_barmonley.obj, but there is not explicit rule for creating mac_barmonkey.obj. There are several implict rules, but unless moc_barmonkey.cpp exists, then it can't supply the right rule. An explicit...
  15. LyMc

    how can i ass a "Status Bar" to my Win32API Applaction??

    This is a piece of code that establishes the status bar. The calls to fill the parts with text use the SB_SETTEXT message. #include <windows.h> #include <commctrl.h> // Startout status bar control routine. Creates a status bar, divides it into nParts sections. // hStatus must be zero on...
  16. LyMc

    reference pages

    I use MSVC .NET, but generally I program using the platform SDK - I don't need managed extensions, MFC, SQL server, MSBasic, .Net framework, etc., etc. However, the Help indexing for the pages I'm interested in ranges from poor to non-existant - I generally have to do a web search to find the...
  17. LyMc

    Where are the settings?

    I'm about to rebuild my hard disk, and I'll have to re-install MSVS .NET (2001?). I've become really comfortable with the toolbars and the various windows positions, the edit screen colors and so on, so where are these settings stored? I'd like to save them off before skrogging the disk and...
  18. LyMc

    Windows XP SP2

    Installed SP2 on an OEM XP Home system. All seemed to go well. Went out to Windows Update and it wants to start out loading SP1, followed by 38 other critical updates. What's happening here?
  19. LyMc

    Error from CreateDialog

    The code: SetLastError (0); hWin = CreateDialog (thisDialog, MAKEINTRESOURCE (IDD_PT), pHdr->hTabs, (DLGPROC) (thisPage == 0 ? DlgSchemes : DlgPairs)); This occurs in the WM_NOTIFY code for a tabbed control. The tabbed control is created in the WM_INITDIALOG section, which them...
  20. LyMc

    c++ decompiler?

    Just for grins, let's sum this up. It is impossible to decompile and .exe file and come up with the original C or C++ code that created it. The problem is that a lot of language sematics is lost in reducing the source to binary. Take, for instance, the first pass of the compile - the C...

Part and Inventory Search

Back
Top