Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert ActiveX DLL to ActiveX EXE. Pin
Anand Todkar17-Jul-07 21:28
Anand Todkar17-Jul-07 21:28 
Questionshelp relating to shell Pin
Chandrasekharan P17-Jul-07 20:08
Chandrasekharan P17-Jul-07 20:08 
QuestionRe: shelp relating to shell Pin
Perspx17-Jul-07 20:10
Perspx17-Jul-07 20:10 
AnswerRe: shelp relating to shell Pin
Chandrasekharan P17-Jul-07 20:12
Chandrasekharan P17-Jul-07 20:12 
GeneralRe: shelp relating to shell Pin
Perspx17-Jul-07 20:17
Perspx17-Jul-07 20:17 
GeneralRe: shelp relating to shell Pin
Chandrasekharan P17-Jul-07 20:21
Chandrasekharan P17-Jul-07 20:21 
QuestionRe: shelp relating to shell Pin
David Crow18-Jul-07 2:51
David Crow18-Jul-07 2:51 
QuestionCStringA variable to LPCTSTR Pin
marius.ichim17-Jul-07 20:06
marius.ichim17-Jul-07 20:06 
Hi,
I´m trying to make an application that uses a mySql database and a CTreeCtrl to display the element from the database. While I have managed to extract the information from the database using CDBVariant I have a problem while trying to insert the value into the tree.
From some reason the text that I´m extracting from the database is put in the CDBVariant.m_pstringA which is a pointer to a CStringA. The problem is that I can´t convert the CStringA variable into a LPCTSTR which is required by the CTreeCtrl::InsertItem(). Any ideas on how to do that?

Thanks.
<br />
CDBVariant varValue;<br />
short nFields = camere->GetODBCFieldCount();<br />
while(!camere->IsEOF())<br />
{<br />
      for (short index = 1; index < nFields; index++)<br />
      {<br />
	   camere->GetFieldValue(index,varValue);<br />
	   if (varValue.m_dwType == 10)<br />
	   {<br />
		CStringA cam;<br />
		cam.Append(varValue.m_pstringA->GetBuffer());<br />
		//HTREEITEM hCamera = m_tree.InsertItem((LPCTSTR)cam,0, 0, hCamere, NULL);<br />
           }<br />
      }<br />
      camere->MoveNext();<br />
}<br />

AnswerRe: CStringA variable to LPCTSTR Pin
User 58385217-Jul-07 20:08
User 58385217-Jul-07 20:08 
GeneralRe: CStringA variable to LPCTSTR Pin
David Crow18-Jul-07 2:53
David Crow18-Jul-07 2:53 
AnswerRe: CStringA variable to LPCTSTR Pin
CPallini17-Jul-07 20:37
mveCPallini17-Jul-07 20:37 
AnswerRe: CStringA variable to LPCTSTR Pin
Cedric Moonen17-Jul-07 20:46
Cedric Moonen17-Jul-07 20:46 
GeneralRe: CStringA variable to LPCTSTR Pin
marius.ichim17-Jul-07 22:26
marius.ichim17-Jul-07 22:26 
GeneralRe: CStringA variable to LPCTSTR Pin
Cedric Moonen17-Jul-07 22:40
Cedric Moonen17-Jul-07 22:40 
QuestionDebug assertion failed in wincore.cpp and postion showed is SendMessage Function Pin
neha.agarwal2717-Jul-07 19:34
neha.agarwal2717-Jul-07 19:34 
AnswerRe: Debug assertion failed in wincore.cpp and postion showed is SendMessage Function Pin
prasad_som17-Jul-07 20:03
prasad_som17-Jul-07 20:03 
GeneralRe: Debug assertion failed in wincore.cpp and postion showed is SendMessage Function Pin
neha.agarwal2717-Jul-07 20:09
neha.agarwal2717-Jul-07 20:09 
AnswerRe: Debug assertion failed in wincore.cpp and postion showed is SendMessage Function Pin
prasad_som17-Jul-07 20:15
prasad_som17-Jul-07 20:15 
GeneralRe: Debug assertion failed in wincore.cpp and postion showed is SendMessage Function Pin
Mark Salsbery18-Jul-07 6:32
Mark Salsbery18-Jul-07 6:32 
QuestionServer and Client Pin
shakumar_2217-Jul-07 19:30
shakumar_2217-Jul-07 19:30 
AnswerRe: Server and Client Pin
User 58385217-Jul-07 20:15
User 58385217-Jul-07 20:15 
AnswerRe: Server and Client Pin
SandipG 17-Jul-07 20:37
SandipG 17-Jul-07 20:37 
GeneralRe: Server and Client Pin
shakumar_2217-Jul-07 20:49
shakumar_2217-Jul-07 20:49 
AnswerRe: Server and Client Pin
Peter Weyzen17-Jul-07 23:03
Peter Weyzen17-Jul-07 23:03 
QuestionIs it possible to recompile MFC source code to some dlls? Pin
flyingxu17-Jul-07 19:20
flyingxu17-Jul-07 19:20 

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.