Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
51
Server/NFAuthTool/NFAuthServer/NaveServer/NFDBComponent.h
Normal file
51
Server/NFAuthTool/NFAuthServer/NaveServer/NFDBComponent.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* @file NFDBComponent.h
|
||||
* @brief OLE DB<44><42> <20>̿<EFBFBD><CCBF><EFBFBD> DB <20><><EFBFBD>۳<EFBFBD>Ʈ
|
||||
* @remarks
|
||||
* @author <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(edith2580@gmail.com)
|
||||
* @date 2009-05-09
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "NFOLEDB.h"
|
||||
|
||||
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20>ִ<EFBFBD> OLEDB<44><42> nchar <20><> nvarchar<61><72> 2byte <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ϰ<EFBFBD> <20>ִ<EFBFBD>.
|
||||
namespace NaveServer {
|
||||
|
||||
/**
|
||||
* @class
|
||||
* @brief
|
||||
* @remarks
|
||||
*
|
||||
* @par
|
||||
* @author Edith
|
||||
* @date 2009-05-09
|
||||
*/
|
||||
class NFDBComponent : public NFOleDB
|
||||
{
|
||||
public:
|
||||
enum
|
||||
{
|
||||
MAX_QUERY_LENGTH = 4096,
|
||||
QUERY_BUFFER_LEN = 1024
|
||||
};
|
||||
|
||||
NFDBComponent();
|
||||
virtual ~NFDBComponent();
|
||||
|
||||
bool Connect(LPCWSTR szDBServerName, LPCWSTR szDBName,
|
||||
LPCWSTR szDBAccount, LPCWSTR szDBPass,
|
||||
NFOleDB::ConnType connType = NFOleDB::ConnType_MSSQL);
|
||||
|
||||
bool Select(const WCHAR *Query_In, void** lpLoginTable_Out, int Size_In,
|
||||
int StartNum_In, int RowNum_In, int *GetRowNum_Out);
|
||||
|
||||
WCHAR* GetQueryBuffer() { return m_Query; }
|
||||
|
||||
const int GetQueryBufferLen() { return MAX_QUERY_LENGTH; }
|
||||
|
||||
private:
|
||||
WCHAR m_Query[MAX_QUERY_LENGTH];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user