Click here to Skip to main content
15,909,051 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Installing WTL on VS2008 Pin
Jonathan Davies17-Dec-08 2:15
Jonathan Davies17-Dec-08 2:15 
GeneralRe: Installing WTL on VS2008 Pin
led mike17-Dec-08 5:42
led mike17-Dec-08 5:42 
GeneralRe: Installing WTL on VS2008 Pin
AghaKhan17-Dec-08 6:57
AghaKhan17-Dec-08 6:57 
GeneralRe: Installing WTL on VS2008 Pin
AghaKhan17-Dec-08 7:06
AghaKhan17-Dec-08 7:06 
QuestionDefining struct in IDL file Pin
KASR114-Dec-08 21:50
KASR114-Dec-08 21:50 
AnswerRe: Defining struct in IDL file Pin
Stuart Dootson15-Dec-08 12:24
professionalStuart Dootson15-Dec-08 12:24 
AnswerRe: Defining struct in IDL file Pin
Jonathan Davies17-Dec-08 3:03
Jonathan Davies17-Dec-08 3:03 
QuestionCCommand and CAccessor binding question Pin
forcewill14-Dec-08 13:12
forcewill14-Dec-08 13:12 
Is it possible to declare a CAccessor to allow "smart binding" based on the number of columns

im trying to do something like this
class CProductoAccessor
{
public:
	LONG m_ProductoID;
	TCHAR m_Nome[51];
	TCHAR m_Descricao[51];
	DB_NUMERIC m_Preco;
	float m_Iva;
	TCHAR m_TipoQuantidade[51];

        BEGIN_ACCESSOR_MAP(CProductoAccessor, 2)
		BEGIN_ACCESSOR(0, true)
			COLUMN_ENTRY_LENGTH_STATUS(1, m_ProductoID, m_dwProductoIDLength, m_dwProductoIDStatus)
			COLUMN_ENTRY_LENGTH_STATUS(2, m_Nome, m_dwNomeLength, m_dwNomeStatus)
			COLUMN_ENTRY_LENGTH_STATUS(3, m_Descricao, m_dwDescricaoLength, m_dwDescricaoStatus)
			COLUMN_ENTRY_PS_LENGTH_STATUS(4, 19, 4, m_Preco, m_dwPrecoLength, m_dwPrecoStatus)
			COLUMN_ENTRY_LENGTH_STATUS(5, m_Iva, m_dwIvaLength, m_dwIvaStatus)
			COLUMN_ENTRY_LENGTH_STATUS(6, m_TipoQuantidade, m_dwTipoQuantidadeLength, m_dwTipoQuantidadeStatus)
		END_ACCESSOR()

		BEGIN_ACCESSOR(1, true)
			COLUMN_ENTRY_LENGTH_STATUS(1, m_ProductoID, m_dwProductoIDLength, m_dwProductoIDStatus)
			COLUMN_ENTRY_LENGTH_STATUS(2, m_Nome, m_dwNomeLength, m_dwNomeStatus)
		END_ACCESSOR()

	END_ACCESSOR_MAP()


what im trying to accomplish is something like this

CCommand < CAccessor <CProductoAccessor> > cmd;
m.Open(m_session, "Select ProductoID, Nome From table");  // in this case it would use the 1 accessor map
                                                          // since the query returns 2 columns

m.Open(m_session, "Select * From table");                 // in this case it would use the 0 accessor map

QuestionVS 2008 and ATL Web Service / Server Pin
Hadi Rezaee12-Dec-08 5:53
Hadi Rezaee12-Dec-08 5:53 
AnswerRe: VS 2008 and ATL Web Service / Server Pin
Stuart Dootson12-Dec-08 8:40
professionalStuart Dootson12-Dec-08 8:40 
GeneralRe: VS 2008 and ATL Web Service / Server Pin
Hadi Rezaee13-Dec-08 0:16
Hadi Rezaee13-Dec-08 0:16 
GeneralRe: VS 2008 and ATL Web Service / Server Pin
Stuart Dootson13-Dec-08 1:07
professionalStuart Dootson13-Dec-08 1:07 
QuestionSet in Visual Studio 2005! Pin
SanjaySMK11-Dec-08 23:22
SanjaySMK11-Dec-08 23:22 
AnswerRe: Set in Visual Studio 2005! Pin
Stuart Dootson12-Dec-08 8:32
professionalStuart Dootson12-Dec-08 8:32 
QuestionWhy COM Pin
Varghese Paul M10-Dec-08 22:49
Varghese Paul M10-Dec-08 22:49 
AnswerRe: Why COM Pin
Stuart Dootson11-Dec-08 2:20
professionalStuart Dootson11-Dec-08 2:20 
QuestionRe: Why COM Pin
led mike11-Dec-08 5:03
led mike11-Dec-08 5:03 
QuestionPowerpoint Addin Using ATL (How do I deal with Events?) Pin
kalukaley10-Dec-08 8:14
kalukaley10-Dec-08 8:14 
QuestionHow to search elements in vector Pin
krishnakumartm10-Dec-08 0:12
krishnakumartm10-Dec-08 0:12 
AnswerRe: How to search elements in vector Pin
Michael Dunn10-Dec-08 9:22
sitebuilderMichael Dunn10-Dec-08 9:22 
GeneralRe: How to search elements in vector Pin
krishnakumartm11-Dec-08 4:09
krishnakumartm11-Dec-08 4:09 
QuestionBHO question: context menu item with "dynamic" title Pin
Dmitry Khudorozhkov9-Dec-08 14:55
Dmitry Khudorozhkov9-Dec-08 14:55 
QuestionRe: BHO question: context menu item with "dynamic" title Pin
led mike10-Dec-08 4:51
led mike10-Dec-08 4:51 
QuestionControl being created with a valid DC but no window until a refresh is made Pin
TClarke9-Dec-08 0:06
TClarke9-Dec-08 0:06 
AnswerFixed it Pin
TClarke9-Dec-08 1:21
TClarke9-Dec-08 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.