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

C / C++ / MFC

 
QuestionHow to Set Environment Variable using Mfc coding Pin
Murugan k27-Dec-06 20:00
Murugan k27-Dec-06 20:00 
AnswerRe: How to Set Environment Variable using Mfc coding Pin
prasad_som27-Dec-06 20:14
prasad_som27-Dec-06 20:14 
GeneralRe: How to Set Environment Variable using Mfc coding Pin
Murugan k28-Dec-06 18:20
Murugan k28-Dec-06 18:20 
AnswerRe: How to Set Environment Variable using Mfc coding Pin
James R. Twine28-Dec-06 3:03
James R. Twine28-Dec-06 3:03 
GeneralRe: How to Set Environment Variable using Mfc coding Pin
Murugan k28-Dec-06 18:19
Murugan k28-Dec-06 18:19 
QuestionVideo Capture but from other player Pin
InFuPr27-Dec-06 19:47
InFuPr27-Dec-06 19:47 
AnswerRe: Video Capture but from other player Pin
Mark Salsbery28-Dec-06 5:48
Mark Salsbery28-Dec-06 5:48 
QuestionNo retrieval. [modified] Pin
Shouvik Das27-Dec-06 19:09
Shouvik Das27-Dec-06 19:09 
in an MFC Appl with DB without file support i've a two field (Database in Access) in Table Password -- [User] n [Pass].

The hint box in the m_pSet variable is showing the variable but on tryin to retrieve th data( i'v three records in the table) only "" is returnedConfused | :confused: .

what can be the error. I don't want to use m_pSet->m_strSort rather in the m_pSet->Open(...) i'm pumping the exact query.

what can b the error.

a snippet of the whole code is
    <code>Pass p1;
p1.DoModal();
CString str,query,str1;
int flag = 0;
str=p1.m_pass;

m_pSet->Close();
query = "Select * from Password where User='Admin'";
m_pSet->Open(CRecordset::dynaset, (LPCTSTR)query,CRecordset::none);//,(LPCTSTR)query,0);
m_pSet->MoveFirst();
MessageBox(m_pSet->m_Pass.GetBuffer(20));
while(!m_pSet->IsEOF())
{
    str1=m_pSet->m_Pass.GetBuffer(20);
    if(str1==str)
    {
        flag=1;
        break;
    }
    m_pSet->MoveNext();
}</code>

actually i've to retriev user n pass from a popup dlg n then verify it from the DB.
here to check i've used default user as Admin.

what can b the error.
plz help


-- modified at 1:37 Thursday 28th December, 2006

Shouvik

AnswerRe: No retrieval. Pin
Venkata Rama Subbarao27-Dec-06 19:43
Venkata Rama Subbarao27-Dec-06 19:43 
GeneralNo retrieval. Pin
Shouvik Das27-Dec-06 20:11
Shouvik Das27-Dec-06 20:11 
AnswerRe: No retrieval. Pin
prasad_som27-Dec-06 19:55
prasad_som27-Dec-06 19:55 
AnswerSolved Pin
Shouvik Das27-Dec-06 19:55
Shouvik Das27-Dec-06 19:55 
GeneralRe: Solved Pin
prasad_som27-Dec-06 20:05
prasad_som27-Dec-06 20:05 
AnswerRe: Solved [modified] Pin
Shouvik Das27-Dec-06 20:31
Shouvik Das27-Dec-06 20:31 
AnswerRe: Solved Pin
prasad_som27-Dec-06 20:35
prasad_som27-Dec-06 20:35 
GeneralRe: Solved Pin
Shouvik Das27-Dec-06 20:50
Shouvik Das27-Dec-06 20:50 
QuestionTree view control with check boxes Pin
ramesh_s2127-Dec-06 19:09
ramesh_s2127-Dec-06 19:09 
AnswerRe: Tree view control with check boxes Pin
prasad_som27-Dec-06 19:16
prasad_som27-Dec-06 19:16 
GeneralRe: Tree view control with check boxes Pin
ramesh_s2127-Dec-06 19:39
ramesh_s2127-Dec-06 19:39 
AnswerRe: Tree view control with check boxes Pin
prasad_som29-Dec-06 0:17
prasad_som29-Dec-06 0:17 
AnswerRe: Tree view control with check boxes Pin
kalyan_gowl27-Dec-06 21:37
kalyan_gowl27-Dec-06 21:37 
GeneralRe: Tree view control with check boxes Pin
ramesh_s2127-Dec-06 23:54
ramesh_s2127-Dec-06 23:54 
GeneralRe: Tree view control with check boxes Pin
Hamid_RT29-Dec-06 17:36
Hamid_RT29-Dec-06 17:36 
AnswerRe: Tree view control with check boxes Pin
Hamid_RT28-Dec-06 5:47
Hamid_RT28-Dec-06 5:47 
QuestionHow to get data from clipboard Pin
Max++27-Dec-06 18:58
Max++27-Dec-06 18:58 

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.