try running the command with parameters.
nSql = "SELECT ContractID FROM Contracts WHERE CustomerID = ?" & txtAcctID & " AND ComputerID = ?" & CompID
Then pass the values when you run the command. I think you need to use a command objectd to use this method, you cant just open it directly from...
Ive written a class to handle ftp functions using the Microsoft Internet Transfer Control. Everything works great except one case.
When I do a DIR command on an empty or nonexisting folder it takes about a minute to respond. Why is this the case?
Thanks
Jonathan Steel
My company is in the process of changing all code from using RDO to ADO to connect to oracle.
I ran a simple test program which opens a connect to oracle from both at the same time. I then ran several queries to time the speed of the two. For small queries RDO worked twice as fast. For larger...
Thanks. Ill mess around with that for a bit.
I was going to write my own bitmap reader but I decided to try and get it working this way first. I was messing around with the one the Andre Lamothe wrote in Trick of the 3D Game Programming Gurus but it can only read bitmaps that are no larger than...
Im trying to load a bitmap image from a file on the hard drive and then dump it onto a ddraw surface. The directx part ive got down, but loading a bitmap is retardedly hard. Where can I find a good source of information for doing this? Everywhere I look doesnt really tell me how to do it. Ive...
Thans a lot guys. Youve all helped me a lot. Its good to hear some opinions from people that dont live by the book, or are obsessed with speed and trying to cut corners. I guess you could say the realists.
Ive been creating a game and my best reference uses all public members in every class. I followed this example until now, when I can no longer go against my education. I want to add in accessor methods. But this seems like a very daunting task do do for every member.
Can you only use properties...
When I try and include X.h in another header (Y) I get 102 errors in X.h like:
rror C2061: syntax error : identifier 'UCHAR'
error C2146: syntax error : missing ';' before identifier 'colour'
error C2501: 'localVz' : missing storage-class or type specifiers
But I have already included this...
Ive tried all combinations of adding the include and std::. The code I gave is in the header. I have to #include in the cpp file which consists of just a mian method right now. Putting the include in the header doesnt work either.
#ifndef GRAPH
#define GRAPH
class CGraph;
class CListGraph;
class CMatrixGraph;
class CGraph {
public:
CGraph() { }
...
};
class CListGraph : public CGraph {
public:
CListGraph() { }
CListGraph(int nNumVertices);
...
private:
};
class CMatrixGraph : public CGraph {...
Im trying to create a class with a vector and a list. It gives me 8 errors, starting with error C2143: syntax error : missing ';' before '<', when i try and dclare either in the header file. Ive included <vector> and <list> in the cpp. I can declare them in the cpp as well. Im using VS6. Ive...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.