Click here to Skip to main content
15,895,880 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdding text to toolbar buttons into a standard MFC SDI App Pin
Alex Cramer24-Nov-02 18:35
Alex Cramer24-Nov-02 18:35 
GeneralRe: Adding text to toolbar buttons into a standard MFC SDI App Pin
Anonymous25-Nov-02 23:46
Anonymous25-Nov-02 23:46 
Generalhelp! CreateThread! Pin
devvvy24-Nov-02 18:13
devvvy24-Nov-02 18:13 
GeneralRe: help! CreateThread! Pin
Michael Dunn24-Nov-02 18:20
sitebuilderMichael Dunn24-Nov-02 18:20 
GeneralRe: help! CreateThread! Pin
devvvy24-Nov-02 18:40
devvvy24-Nov-02 18:40 
GeneralRe: help! CreateThread! Pin
devvvy24-Nov-02 18:47
devvvy24-Nov-02 18:47 
Questionhow can i repair and compact the access2000 database using ado in vc? Pin
whelk24-Nov-02 17:42
whelk24-Nov-02 17:42 
AnswerRe: how can i repair and compact the access2000 database using ado in vc? Pin
paulb24-Nov-02 18:07
paulb24-Nov-02 18:07 
I don't know if it is possible in ADO, you need to get the IJetCompact interface and call its Compact method. It is dead easy using OLE DB:

<br />
CDataSource src;<br />
// ... open data source ...<br />
<br />
CComPtr<IJetCompact> spCompact;<br />
hr = src.m_spInit->QueryInterface(IID_IJetCompact, (void **) &spCompact);<br />
<br />
CDBPropSet init(DBPROPSET_DBINIT);<br />
init.AddProperty(DBPROP_INIT_DATASOURCE, "compacted.mdb");<br />
<br />
hr = spCompact->Compact(1, &init);<br />
// database is repaired and compacted to "compact.mdb"<br />

GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
whelk24-Nov-02 18:58
whelk24-Nov-02 18:58 
GeneralRe: how can i repair and compact the access2000 database using ado in vc? Pin
Alexinuk25-Nov-02 3:12
Alexinuk25-Nov-02 3:12 
Generalthe CDaodatabase dont support access2000 Pin
whelk25-Nov-02 14:52
whelk25-Nov-02 14:52 
GeneralToolbar dependent bitmaps in my Popup menus Pin
Mr Bose Dayala24-Nov-02 17:31
Mr Bose Dayala24-Nov-02 17:31 
GeneralCreating Line Count for CRich Edit Control Pin
E324-Nov-02 16:34
E324-Nov-02 16:34 
GeneralCustom compiler steps... Pin
Matt Gullett24-Nov-02 16:03
Matt Gullett24-Nov-02 16:03 
GeneralRe: Custom compiler steps... Pin
Chris Losinger24-Nov-02 16:33
professionalChris Losinger24-Nov-02 16:33 
Generalglobal variables Pin
pnpfriend24-Nov-02 15:42
pnpfriend24-Nov-02 15:42 
GeneralRe: global variables Pin
Christian Graus24-Nov-02 16:01
protectorChristian Graus24-Nov-02 16:01 
GeneralRe: global variables Pin
pnpfriend24-Nov-02 16:29
pnpfriend24-Nov-02 16:29 
GeneralRe: global variables Pin
Christian Graus24-Nov-02 17:23
protectorChristian Graus24-Nov-02 17:23 
Generaldatabase Pin
Shotgun24-Nov-02 15:12
Shotgun24-Nov-02 15:12 
GeneralRe: database Pin
Christian Graus24-Nov-02 15:17
protectorChristian Graus24-Nov-02 15:17 
GeneralRe: database Pin
Alexinuk25-Nov-02 3:15
Alexinuk25-Nov-02 3:15 
GeneralWINVER puzzle Pin
Antosha24-Nov-02 12:00
Antosha24-Nov-02 12:00 
Questionhelp!! how to pause a simulation? Pin
Anonymous24-Nov-02 9:45
Anonymous24-Nov-02 9:45 
GeneralDrive Properties Pin
georgiek5024-Nov-02 8:33
georgiek5024-Nov-02 8:33 

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.