|
LockWorkStation. Only supported on NT5+.
|
|
|
|
|
Yes. NT5 ( starting Win2K) supports LockWorkStation. But how to do the same in NT4? Something to do with winlogon.exe & GINA(.dll) ?
How do I programmatically lock the workstation in NT4 ?
Kaustuv Basu
India
|
|
|
|
|
Hi, pals!
I try to download MSI installer from,
http://www.codeproject.com/atl/rbcwindowimpl.asp
but failed, how can I get a copy of it?
If you can mail it to me, please mail a copy to
george@mails.gscas.ac.cn
Best regards,
George Ma
|
|
|
|
|
http://www.microsoft.com/msdownload/platformsdk/instmsi.htm
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Thanks, Nish pal!
I have got it from the M$.
Best regards,
George Ma
|
|
|
|
|
When I run command "RegSvr32 RBDeskBand", Windows says,
the command is not found.
How to resolve the trouble?
Best regards,
George Ma
|
|
|
|
|
George Ma wrote:
When I run command "RegSvr32 RBDeskBand", Windows says,
the command is not found.
How to resolve the trouble?
Hmmmm. See if you have a file called regsvr32.exe in C:\WINDOWS\system32\ or whatever your system folder is.
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Thanks, Nish pal!
I search it but failed to find a file whose name
is "regsrv32.exe". How to resolve the trouble?
I am using Windows Me.
Best regards,
George Ma
|
|
|
|
|
George Ma wrote:
I search it but failed to find a file whose name
is "regsrv32.exe". How to resolve the trouble
I hope you or someone else didn't delete it accidentally!!!
Anyway you can copy the file from a friend who is using ME
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Thanks, Nish pal!
Do you know when the file is installed to
my computer? When installing Windows Me or
when installing VC?
Best regards,
George Ma
|
|
|
|
|
George Ma wrote:
Do you know when the file is installed to
my computer? When installing Windows Me or
when installing VC?
It's part of the OS, in your case, Windows ME
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
When I run command "RegSvr32 RBDeskBand", Windows says,
the command is not found.
How to resolve the trouble?
The information about RBDeskBand is from,
http://www.codeproject.com/atl/rbdeskband.asp
Best regards,
George Ma
|
|
|
|
|
Hi again!
Uhm... Apparently I'm not the only one not knowing how to directly access image data in a CImgEdit control. (see former thread)
OK, so I thought of another method to do my task of en-/decrypting image data... I can easily copy the the TIFF image into clipboard and get it back from there as a bitmap...
The (so-highly-recommended-to-take-a-look-first :p ) MSDN library told me to use CBitmap::GetBitmapBits and CBitmap::SetBitmapBits to access bitmap image data. As I recognized that this doesn't work and SetBitmapBits just results in a beautifully-but-solely-filled-with-black-pixels bitmap I even found a notice at MSDN (after hard search of course!) that these functions are obsolete and should not be used!
The final hint: I should try GetDIBits/SetDIBits to access the bitmap bits. Nice idea... But I'm too dumb to get it work
So, can anyone give me structured information what I have to do in order to use these methods on a bitmap stored in a CBitmap object? All information I found in this and other forums and even (or better 'as expected') MSDN just confused me more than it helped.
Many thanks in advance!
Best regards,
Andreas Dilling
|
|
|
|
|
Hi,
How to realize the following c code by using MessageBox with same functions.
fprintf(stderr, "Add. Info 0x%08lx ", val);
fprintf(stderr, "%s\n", sense[i].desc);
fprintf(stderr, " %02ld:%02ld:%02ld ", val / 75 / 60, val / 75 % 60, val % 75);
Thanks in advance!
chen
|
|
|
|
|
CString s;
s.Format("Add. Info 0x%08lx",val);
MessageBox(s);
s.Format("%s", sense[i].desc);
MessageBox(s);
s.Format(" %02ld:%02ld:%02ld ", val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(s);
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
IMHO this one's slightly better than Nish's.
CString strMsgBoxText;
strMsgBoxText.Format("Add. Info 0x%08lx \n%s\n %02ld:%02ld:%02ld ", val, sense[i].desc, val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(strMsgBoxText, "MsgBoxCaption");
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
'It is so much simpler to bury reality than it is to dispose of dreams.'
- Don Delillo, Americana
|
|
|
|
|
Re-Hi!
I'd use CString::Format or sprintf and create an output string first which is then displayed via MessageBox.
So, in your case...
either:
CString sOutput;
sOutput.Format("Add. Info 0x%08lx %s\n %02ld: %0202ld:%02ld ", val, sense[i].desc, val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(sOutput [...]);
or:
char sOutput[MAX_SIZE];
sprintf(sOutput, "Add. Info 0x%08lx %s\n %02ld: %0202ld:%02ld ", val, sense[i].desc, val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(sOutput [...]);
...
Hope this will help...
Best regards,
Andreas
|
|
|
|
|
Re-Hi!
I'd use CString::Forma or sprintf and create an output string first which then is displayed via MessageBox.
So, in your case...
either:
CString sOutput;
sOutput.Format("Add. Info 0x%08lx %s\n %02ld:%02ld:%02ld ", val, sense[i].desc, val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(sOutput [...]);
or:
char sOutput[MAX_SIZE];
sprintf(sOutput, "Add. Info 0x%08lx %s\n %02ld:%02ld:%02ld ", val, sense[i].desc, val / 75 / 60, val / 75 % 60, val % 75);
MessageBox(sOutput [...]);
I hope this will help.
Best regards,
Andreas
|
|
|
|
|
Dear All,
I known that. Thanks a lot.
Waht is the differences of
int MessageBox(CString str);
int MessageBox(
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType // message box style
);
and the
AfxMessageBox(str).
Thanks again!
chen
|
|
|
|
|
chen wrote:
int MessageBox(CString str);
That's the MFC CWnd version
chen wrote:
int MessageBox(
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType // message box style
);
That's the original API version
chen wrote:
AfxMessageBox(str).
This is a global MFC function
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Is it possible to set timers in a worker thread function? I created an invisible window inside the worker thread function and set timer using that window. When it timed out, it never called the timer procedure.What could be the problem?
RamDili
|
|
|
|
|
Hi,
Pass the Parent Pointer to the Worker thread.
Then you can use the PostMessage(WM_TIMER ..)
using the Pointer of the Parent.
Handle the Message in the OnTimer() function
of the Parent
Regards
Sameer
ramdili wrote:
set timers in a worker thread function
|
|
|
|
|
Hi,
I have created an ActiveX Control which exposes 3
methods
Connect
Disconnect (no arguments)
Send
My Disconnect works fine under ASP, but my CONNECT and
SEND are not working, I have arguments as LPSTR in both
which are [in].
The ASP error is
Automation Variable not supported.
How do i Overcome this problem
Sameer
|
|
|
|
|
I am working on Customdraw toolbars and I have a problem. Perhaps I am overlooking something obvious or trivial but is it possible to render the button separators myself? For some reason they are not included in the CDRF_NOTIFYITEMDRAW notifications
Thanks,
- Jan
|
|
|
|
|
when i have tried to connect my DSN file using the codes below a "Select Database" dialog always screens out. Although i used CDatabase::noOdbcDialog flag when i call Recordset.Open() it again asks me to select the database from the dialog
What should i do next?
Test6DB.OpenEx( _T( "DSN=Test6Spec" ), CDatabase::openReadOnly |
CDatabase::noOdbcDialog );
SpecDBRecodSet.Open(); // It calls my DefaultSQL() and displays a "select database" dialog...
Thanks for ur help...
Atilla Selem
just listening to you...
|
|
|
|