Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > im****t ADO DLL
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 10964 of 11205
Post > Topic >>

im****t ADO DLL

by Jim Johnson <aopiyy001@[EMAIL PROTECTED] > Apr 14, 2008 at 08:55 PM

I have an application that needs to im****t a DLL file for some
database call like - 

#im****t "c:\Program Files\Common Files\System\ADO\msado15.dll" \
              rename("EOF", "EndOfFile")

the path is OS dependent - what if I run on some other PC but the
msado15.dll is not specificed in the path specified? for this case -
#im****t "c:\Program Files\Common Files\System\ADO\

any easy way to work around this problem where I don't have a hard
coded path in my code??



============

#im****t "c:\Program Files\Common Files\System\ADO\msado15.dll" \
              rename("EOF", "EndOfFile")

typedef ADODB::_RecordsetPtr	RecPtr;
typedef ADODB::_ConnectionPtr	CnnPtr; 

class Database;
class Table;

class Database
{
public:
	CnnPtr m_Cnn;
	char m_ErrStr[500];
	Database();
	bool Open(char* UserName, char* Pwd,char* CnnStr);
	bool Execute(char* CmdStr, Table& Tbl);
	void GetErrorErrStr(char* ErrStr);
};

class Table{
public:
	RecPtr m_Rec;
	char m_ErrStr[500];
	Table();
	void GetErrorErrStr(char* ErrStr);
	int ISEOF();
	HRESULT MoveNext();
	HRESULT MovePrevious();
	HRESULT MoveFirst();
	HRESULT MoveLast();

	bool Get(char* FieldName, char* FieldValue);
	bool Get(char* FieldName,SYSTEMTIME& FieldValue);
	bool Get(char* FieldName,int& FieldValue);

    BOOL VariantTimeToSystemTimeWithMilliseconds (/*input*/ double
dVariantTime, /*output*/SYSTEMTIME *st);
};
 




 2 Posts in Topic:
im****t ADO DLL
Jim Johnson <aopiyy001  2008-04-14 20:55:01 
Re: im****t ADO DLL
Morten <morten@[EMAIL   2008-04-15 15:08:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 4:48:11 CDT 2008.