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...
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...
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.