|
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.
|
|
|
|
|
Hi you all
I'm struggling with this for a week now:
I need template class ,which receives 2 template parameters:
a) T- data type
b) container<t*> - STL container ( vector or list ) – elements of container are of type T*
tContainer_t<T, vector<T*> > or
tContainer_t<T, list<T*> >
how can i define this class???
i think it should be something like this?
template <class T, container< T*> >
class tContainer_t
{
public:
tContainer_t(void);
~tContainer_t(void);
};
can one help me please
|
|
|
|
|
Explain in a bit more detail what you want to do please.
> 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!! <
|
|
|
|
|
You don't need to specify any template parameter list for the container.
Just write template <class T, class container>
Go ahead and use container as if it was list<T*> or vector<T*>
If someone tries to instantiate your class with something else, they will get a compilation error if it has a different interface.
template <class T, class container>
class tContainer_t
{
public:
tContainer_t(void)
{
container c;
T t;
c.push_back(&t);
}
~tContainer_t(void);
};
void main()
{
tContainer_t<int, std::vector<int*> > cont1;
tContainer_t<int, std::vector<int> > cont2;
}
|
|
|
|
|
Remember that the most common template parameters are types.
template <class T, class containerType >
class tContainer_t
{
containerType m_container;
public:
tContainer_t();
~tContainer_t();
};
tContainer_t<char, vector<char*> > vc;
tContainer_t<char, list<char*> > lc;
template <class T, class containerType = std::vector<T*> >
class tContainer_t
{
containerType m_container;
public:
tContainer_t();
~tContainer_t();
};
tContainer_t<char> vc;
tContainer_t<char, list<char*> > lc;
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence." - Edsger Dijkstra
"I have never been lost, but I will admit to being confused for several weeks. " - Daniel Boone
|
|
|
|
|
Thank you!!! It was very helpful
|
|
|
|
|