Click here to Skip to main content
15,888,100 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC main thread return codes Pin
Antti Keskinen23-Jan-04 22:49
Antti Keskinen23-Jan-04 22:49 
GeneralSQL and Windows Database Programming Pin
valikac23-Jan-04 6:11
valikac23-Jan-04 6:11 
GeneralRe: SQL and Windows Database Programming Pin
Michael P Butler23-Jan-04 7:05
Michael P Butler23-Jan-04 7:05 
GeneralRe: SQL and Windows Database Programming Pin
l a u r e n23-Jan-04 14:36
l a u r e n23-Jan-04 14:36 
Generalvoice masking ...plz help Pin
30jenny23-Jan-04 4:01
30jenny23-Jan-04 4:01 
GeneralRe: voice masking ...plz help Pin
Xander8023-Jan-04 4:10
Xander8023-Jan-04 4:10 
GeneralUsing a RecordView in Dialog Pin
Calder23-Jan-04 4:01
Calder23-Jan-04 4:01 
GeneralRe: Using a RecordView in Dialog Pin
David Crow23-Jan-04 7:22
David Crow23-Jan-04 7:22 
All you need to do is derive a class from CRecordset. Then in your dialog's OnInitDialog() method, put something like:

CDatabase db;
CMySet set(&db);
TRY
{
    set.Open();
    if (! set.IsBOF())
    {
        set.MoveFirst();
        while (! set.IsEOF())
        {
            // populate controls on the dialog with member variables from 'set'
            set.MoveNext();
        }
    }
}
CATCH(CDBException, pDBException)
{
    AfxMessageBox(pDBException->m_strError);
}
END_CATCH
set.Close();



A rich person is not the one who has the most, but the one that needs the least.
GeneralRe: Using a RecordView in Dialog Pin
Calder23-Jan-04 7:38
Calder23-Jan-04 7:38 
GeneralRe: Using a RecordView in Dialog Pin
David Crow23-Jan-04 8:13
David Crow23-Jan-04 8:13 
GeneralRe: Using a RecordView in Dialog Pin
Calder23-Jan-04 8:24
Calder23-Jan-04 8:24 
GeneralRe: Using a RecordView in Dialog Pin
David Crow23-Jan-04 9:11
David Crow23-Jan-04 9:11 
GeneralRe: Using a RecordView in Dialog Pin
Calder23-Jan-04 9:25
Calder23-Jan-04 9:25 
GeneralRe: Using a RecordView in Dialog Pin
David Crow23-Jan-04 9:31
David Crow23-Jan-04 9:31 
GeneralRe: Using a RecordView in Dialog Pin
Calder23-Jan-04 10:01
Calder23-Jan-04 10:01 
GeneralRe: Using a RecordView in Dialog Pin
David Crow23-Jan-04 10:14
David Crow23-Jan-04 10:14 
GeneralDialog dissapears... ? Pin
Calder23-Jan-04 11:51
Calder23-Jan-04 11:51 
GeneralRe: Dialog dissapears... ? Pin
David Crow26-Jan-04 2:22
David Crow26-Jan-04 2:22 
GeneralRetrieving a bitmap using a URL. using a pluggable protocol Pin
Member 1329456923-Jan-04 3:43
Member 1329456923-Jan-04 3:43 
GeneralRe: Retrieving a bitmap using a URL. using a pluggable protocol Pin
valikac23-Jan-04 5:42
valikac23-Jan-04 5:42 
GeneralRe: Retrieving a bitmap using a URL. using a pluggable protocol Pin
Member 1329456923-Jan-04 7:03
Member 1329456923-Jan-04 7:03 
GeneralRe: Retrieving a bitmap using a URL. using a pluggable protocol Pin
l a u r e n23-Jan-04 14:39
l a u r e n23-Jan-04 14:39 
GeneralApplication Error: The Instruction at --- pReturnVal = (char*) calloc(strlen(s)+1,sizeof(char)); Pin
AssemblySoft23-Jan-04 3:27
AssemblySoft23-Jan-04 3:27 
GeneralRe: Application Error: The Instruction at --- pReturnVal = (char*) calloc(strlen(s)+1,sizeof(char)); Pin
Ian Darling23-Jan-04 3:58
Ian Darling23-Jan-04 3:58 
GeneralLink Error Pin
BrockVnm23-Jan-04 2:30
BrockVnm23-Jan-04 2:30 

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.