|
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
|
|
|
|
|
|
Why do you need the two types?
You could specify your template as:
template <typename container>
class pointer_container
{
};
and check that it really contains pointers (or something dereferenceable) in the constructor:
pointer_container()
{
container::value_type ptr;
*ptr;
};
then:
pointer_container<std::vector<int> > int_container;
pointer_container<std::vector<int *> > int_ptr_container;
Now the sermon:
IF you want to maintain a collection of pointers and delete what they're pointing to when the object dies, how about using the magic of smart pointers instead?
std::vector< std::shared_ptr< my_class> > my_class_v;
or use Thorsten Ottosen's pointer containers from Boost[^].
If you're not, please disregard the second half of this message!
Cheers,
Ash
|
|
|
|
|
Buenas, busco programadores de C++ para un proyecto relativamente pequeño, el cual consiste en desarrollar un Motor para creación de videojuegos, basado en DirectX 10.1 para Windows 7. El framework pretende abarcar las 4 grandes ramas de DirectX: Gráficos (Direct3D), Sonido (DirectSound), Comunicaciones (DirectPlay) y Entrada/Salida de periféricos (DirectInput). Aunque se diseñará en tal sentido, no se contempla su portabilidad, lo cual permite una mayor especialización, mayor velocidad de avance y mejor soporte. El proyecto será Open Source en cuanto alcance cierto grado de madurez que facilite la integración de aportaciones externas.
Se requiere:
- Nivel alto de inglés leído / escrito. La documentación y la nomenclatura de los elementos del framework serán en inglés; además, eventualmente será necesario leer algún libro o documentación en tal idioma.
- Conocimiento "a fondo" de C++.
- Gran capacidad autodidacta. Esto es muy importante, quizá lo más valioso.
- Pasión por la programación, el diseño de sistemas o los videojuegos.
- Seriedad y constancia.
- Alguna experiencia desarrollando con Microsoft Visual Studio (se usará 2010 express... ejem ).
- Alguna experiencia con Subversion (quizá se use Mercurial).
- No se requiere alto control del SDK de DirectX 10.1, puede aprenderse sobre la marcha. Se apreciará experiencia con cualquier versión de DirectX, incluso con cualquier versión de OpenGL.
- Preferible residencia en España, cuanto más próxima a Málaga mejor.
- Capacidad de autocrítica. Vital para la fluidez de equipo de trabajo.
- Tiempo. Aunque cualquiera pueda dejar el proyecto cuando le plazca, no es plato de buen gusto que asegure su disponibilidad sabiendo que no la va a tener.
Se ofrece:
- Dinero no, desde luego. Es un "trabajo" vocacional, aquella persona que prentenda subir al barco debe disfrutar participando, trabajando en equipo, aprendiendo, aportando ideas, viendo crecer el proyecto.
- Todos los puntos que se requieren.
- Aporto gran conocimiento de C++ y sus entresijos (particularidades de diseño, trucos de optimización, etc.).
- Conozco a fondo el SDK de DirectX 9.0c (de ahí que prefiera dar el salto a DX10 y no a DX11 directamente, aunque todo se andará) y tengo a mano una buena biblioteca cuya lectura aconsejar.
- No tengo inconveniente en ayudar a autoformarse a los integrantes del equipo.
- Capacidad de gestión. Tengo ya pensada y a medio montar la plataforma de desarrollo. Aunque en principio actúe como director, más tarde mi rol se disipará hasta quedar como un desarrollador/diseñador más, con la carga adicional de mantener la calidad y cohesión del proyecto.
- Tengo ya trazadas las líneas maestras del proyecto y sus objetivos, se aceptarán opiniones y cambios al respecto.
- Compromiso.
Un saludo, espero formar algún día un equipo capaz de crear una obra cada vez más ambiciosa y de cuyos integrantes aprender tanto como les haya podido enseñar.
Thund.
|
|
|
|
|
This type of advertisement is not appropriate in this area. You should post to the job board instead.
|
|
|
|