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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JCARPENTER

  1. JCARPENTER

    Jbuilder seems to be crashing Windows

    I'm running JBuilder7 PE on a Windows 2000 server machine. I've only used it twice (for about 2 days at a time) over the past couple of months. After both of these sessions I ended up with a corrupted OS. Both times the problem presented itself when I tried to reboot the machine. Under normal...
  2. JCARPENTER

    System Beep using C#?

    It seems you have to use the API. This works for me: public class MyBeep { [System.Runtime.InteropServices.DllImport("User32.Dll")] private static extern int MessageBeep(Sounds uType); public static void Beep() { MessageBeep(Sounds.MB_OK); } public static void...
  3. JCARPENTER

    Freeing IMalloc allocation from managed code

    I have a class that allows me to browse folders. It uses unmanaged code in shell32.dll. Everything works, but I can't figure out how to call IMalloc::Free() from C#. I've included the class below. The commented section is the equivalent C++ code that's the problem. Can anybody help...
  4. JCARPENTER

    Printing--how many lines on a page?

    Assuming you have a device context for the printer and that you've selected a mapping mode and a font into it: 1. Get the physical length of the page: int iHorzRes = pDC->GetDeviceCaps(HORZSIZE); 2. Convert the resolution into the map mode (This app...
  5. JCARPENTER

    Can't browse local symbols in VC++.NET

    I'm trying to figure out how to set a VC++.NET project to enable browsing of local symbols, but /FR doesn't seem to be doing it for some reason. I've been able to determine that the .sbr file for the source has 0 bytes after a rebuild. I've taken the exact same code in VC++ 6.0, set the...
  6. JCARPENTER

    Changing TextBox border refires enter event

    Here's what I'm trying to do: I have a form with several TextBox controls. I want whichever control has the focus to also have a different appearance. I've trapped the enter and leave events for the controls and reset the background color and border style within those handlers. It works fine...
  7. JCARPENTER

    ADO, Stored Proc, and temp tables

    That did it! Thanks! It also "fixed" a couple of other problems. Jim
  8. JCARPENTER

    ADO, Stored Proc, and temp tables

    I have a couple of stored procedures which use temporary tables or table variables. I want to access a returned record set using ADO (VC++ vein). I can get back recordsets from SP's that don't use temp tables and from SP's that have temp tables as long as I don't insert any rows into them. But...

Part and Inventory Search

Back
Top