Files
Client/CryptoSource/SQLExecute/NaveServer/NFDBComponent.h
LGram16 dd97ddec92 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>
2025-11-29 20:17:20 +09:00

51 lines
1.1 KiB
C++

/**
* @file NFDBComponent.h
* @brief OLE DB를 이용한 DB 컴퍼넌트
* @remarks
* @author 강동명(edith2580@gmail.com)
* @date 2009-05-09
*/
#pragma once
#include "NFOLEDB.h"
// 현재 소지하고 있는 OLEDB는 nchar 와 nvarchar즉 2byte 유니코드 문자형을 제대로 지원하지 못하고 있다.
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];
};
}