|
|
Ofcourse im using all this functionalities in that dialog class for someother features.
Anu
|
|
|
|
|
Pardon?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
In that dialog class..Im using mouse lcick functional;ities and Key up and down functionalites to get another function like to invoke another view by mouse clcik or short cut key.
But i dont know how to stop to enter(click value of radio button) in dialog .
Anu
|
|
|
|
|
Derive a class from CButton, handle those messages in this derived class and use it for your radio.
Something like this:
CReadOnlyRadio: public CButton
{
public:
DECLARE_MESSAGE_MAP()
void OnLButtonDown(UINT nFlags, CPoint point) { }
void OnLButtonUp(UINT nFlags, CPoint point) { }
void OnLButtonDblClk(UINT nFlags, CPoint point) { }
void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { }
void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) { }
void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { }
};
...
BEGIN_MESSAGE_MAP(CReadOnlyRadio, CButton)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_LBUTTONDBLCLK()
ON_WM_KEYDOWN()
ON_WM_KEYUP()
ON_WM_CHAR()
END_MESSAGE_MAP()
...
class CMyFancyDialog: public CDialog
{
...
DoDataExchange(CDataExchange* pDX);
CReadOnlyRadio m_ReadOnlyRadio;
...
};
...
void CMyFancyDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
...
DDX_Control(pDX, IDC_READONLY_RADIO, m_ReadOnlyRadio);
...
}
...
Hope it is understandable...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
The only issue is you probably don't want to declare the member variable in the constructor. That should be in the header file for the class or, in this case, where you have all of those empty methods.
|
|
|
|
|
Declare the variable in the constructor? What do you mean?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
What I mean is you have :
CReadOnlyRadio m_ReadOnlyRadio;
in the constructor of the dialog class.
|
|
|
|
|
class CMyFancyDialog: public CDialog
{
...
DoDataExchange(CDataExchange* pDX);
CReadOnlyRadio m_ReadOnlyRadio;
...
};
-this is the ("pseudo"-)declaration of the class, not its constructor.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Computers are evil, EVIL i tell you!! <
|
|
|
|
|
Hi,
I am using ProC code in my 64 bit application.
i am getting the following error while building it:
error LNK2001: unresolved external symbol sqlcxt
I have added extern"C" in sqlcxt definition.
extern "C"
{
void sqlcxt (void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
void sqlcx2t(void **, unsigned int *,
struct sqlexd *, const struct sqlcxp *);
void sqlbuft(void **, char *);
void sqlgs2t(void **, char *);
void sqlorat(void **, unsigned int *, void *);
}
Does any one has any idea why I am getting this?
|
|
|
|
|
What you're getting is a linker error.
This can be fixed by referencing the library in which sqlcxt etc. are implemented.
|
|
|
|
|
I am linking to orasql9.lib.
Can u tell me which library I have to link?
Actually this is working fine for 32 bit application.
But for 64 bit i am getting this error.
Please Help......
|
|
|
|
|
Make sure you're linking to the library in the 64-bit configuration.
Each configuration will have separate settings.
So you must have missed referencing the library for the 64-bit configuration.
|
|
|
|
|
Actually orasql9.lib is a sql file,which is present in the Oracle 9i client I have installed.
So for 64 bit I am not getting which lib file to link.
|
|
|
|
|
.LIB files are usually the same for 32-bit and 64-bit.
It's only the corresponding DLLs that are different.
|
|
|
|
|
So do i need to install oracle 9i client for 64 bit?
or is there any way to use 32 bit dll?
|
|
|
|
|
You will need to install the 64-bit client if there is one.
64-bit applications cannot load 32-bit DLLs and vice-versa.
|
|
|
|
|
ok got it....
Thanks -Superman- for your replies
|
|
|
|
|
i lost one of my key c++ file
i m not able to recover
i have my dll file
so please help me out to get a proper decompiler
very urgent
|
|
|
|
|
There are a few C++ decompilers available, but it is highly unlikely that you will get the exact source back.
Most of the C++ compilers available today especially Visual C++ does heavy optimization on the code and so when you get back the code, it will be very different from the original.
However, here are a few links that may help you.
http://www.backerstreet.com/rec/rec.htm[^]
http://www.itee.uq.edu.au/~cristina/dcc.html[^]
|
|
|
|
|
thanks i will
try its not necessary for me to get the exact code...
but very urgent... atleast 10% will help me a lot
|
|
|
|
|
Hi,
I am using MS access database for storing values.
while retrieving records from a table sequentially by record set
first two records are coming sequentially
and then last record is coming again 3rd, 4th are coming.
what is the problem?
I am using record set class for retrieving values.
I am using MoveNext() function.
|
|
|
|
|
You can use an ORDER BY statement when fetching the records to arrange it in the order that you need.
|
|
|
|
|
You should never assume anything about the order of records in a record set unless you use ORDER BY as superman wrote. The order is unspecified and is affected by a lot of parameters like sql engine implementation, order of insertion, indexes, etc.
SELECT a, b FROM TableC ORDER BY a ASC;
|
|
|
|
|
yaah fine ORDER BY clause is working.
thank you.
|
|
|
|