|
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...
|
|
|
|
|
1. If you are giving the path to the database in consturcting the database object
then just pass the Database as a param in the constructor to the
recordset object.
2. Specify the path to the database in the DSN(ODBC control panel ..)
|
|
|
|
|
i tried ur suggestion but it failed...
i have a dialog class
and i have my Database and RecordSet objects as member variables.
in my dialog class constructor i created my Recordset object by passing DB object as parameter.
Then i called what i have done in the previous mail..
but again it calls "select database" dialog although i referred my Recordset class to DSN while creating RecordSet class by classwizard.
Do i have a mistake sending DB object in construction?
class CTest6SpecDlg : public CDialog
{
// Construction
public:
CTest6SpecDlg(CWnd* pParent = NULL); // standard constructor
CDatabase Test6DB;
CSpecRecordset SpecDBRecodSet;
..
..
}
CTest6SpecDlg::CTest6SpecDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTest6SpecDlg::IDD, pParent)
{
CSpecRecordset SpecDBRecodSet(&Test6DB);
..
..
other member variables initialization
}
just listening to you...
|
|
|
|
|
When you construct the CRecordset, you need to pass in a pointer to your CDatabase object.
It appears that you are istantiating the CRecordset object before you connect to the database. Try moving the istantiation of your CRecordset below the CDatabase::open call and be sure to pass in a pointer to the CDatabase object through the constructor.
CDatabase db
db.Open("somedsn", someoptions);
CRecordset rs(&db);
rs.Open();
rs.close();
db.Close();
I ommited error checking code for simplicity.
|
|
|
|
|
I use GetAce() function I to get the ACE of file.ACE has some defined types (e.g ACCESS_ALLOWED_OBJECT_ACE ).It is structure that it has a ACCESS_MASK and it is DWORD typedef that contain rights.Now I know how to get the ACCESS_MASK but the problem is that I don't know how can I check a DWORD type.For example I don't know how can I check for bit of 16 or 17 if they are true or not.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
|
Thank you PJ.I'll read it very soon.
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Hello everyone,
I want to display the controls on the view class which is not derived from CView.( The application is not using the Doc / View arch.)
Is there any way in which I can load the entire dialog template instead of calling the Create / CreateControl for each control that i want to display on the form?
thanks and regards
|
|
|
|
|
You want to display a view which is not derived from CView What are you trying to do, then? Could you please ellaborate?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|