Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RTF Formatting & preview Pin
Gary R. Wheeler20-Nov-02 14:02
Gary R. Wheeler20-Nov-02 14:02 
GeneralRe: RTF Formatting & preview Pin
Steve S20-Nov-02 21:52
Steve S20-Nov-02 21:52 
GeneralMaximize box Pin
suresh_sathya19-Nov-02 21:34
suresh_sathya19-Nov-02 21:34 
GeneralRe: Maximize box Pin
Paul M Watt19-Nov-02 22:15
mentorPaul M Watt19-Nov-02 22:15 
GeneralRe: Maximize box Pin
suresh_sathya19-Nov-02 22:22
suresh_sathya19-Nov-02 22:22 
GeneralWindow with multipe pages Pin
Luke Murray19-Nov-02 20:59
Luke Murray19-Nov-02 20:59 
GeneralRe: Window with multipe pages Pin
dima_t20-Nov-02 23:45
dima_t20-Nov-02 23:45 
Questioncan u use HRESULT_CODE in VC's tool "Error Lookup"? Pin
devvvy19-Nov-02 20:57
devvvy19-Nov-02 20:57 
AnswerRe: can u use HRESULT_CODE in VC's tool "Error Lookup"? Pin
Gary R. Wheeler20-Nov-02 14:08
Gary R. Wheeler20-Nov-02 14:08 
Generalexception for ADO recordset open method Pin
devvvy19-Nov-02 18:37
devvvy19-Nov-02 18:37 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:39
protectorChristian Graus19-Nov-02 19:39 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 19:44
devvvy19-Nov-02 19:44 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:48
protectorChristian Graus19-Nov-02 19:48 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:06
devvvy19-Nov-02 20:06 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:07
devvvy19-Nov-02 20:07 
Questionhow can u enumerate tables given a database? Pin
devvvy19-Nov-02 17:12
devvvy19-Nov-02 17:12 
AnswerRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 17:22
protectorChristian Graus19-Nov-02 17:22 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 17:34
devvvy19-Nov-02 17:34 
just scan yr article briefly. isnt it for .NET?

anyway, i'm building all my code with VC6 - lots of anti microsoft types here in this company.

anyway, i am thinking, perhaps I can read MyDB.Tables.sysobjects

there're three columns of interests:

a. "names" -- object name: a simple string

b. "id" -- object id: just a simple integer

c. "xtype" and code as follows:

Object type. Can be one of these object types:
C = CHECK constraint
D = Default or DEFAULT constraint
F = FOREIGN KEY constraint
L = Log
FN = Scalar function
IF = Inlined table-function
P = Stored procedure
PK = PRIMARY KEY constraint (type is K)
RF = Replication filter stored procedure
S = System table
TF = Table function
TR = Trigger
U = User table
UQ = UNIQUE constraint (type is K)
V = View
X = Extended stored procedure


So, I will just count and retrieve an array of names (names - column one of sysobjects table) for all entries where xtype==U

norm
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 17:47
protectorChristian Graus19-Nov-02 17:47 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 18:16
devvvy19-Nov-02 18:16 
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 18:17
protectorChristian Graus19-Nov-02 18:17 
GeneralRe: how can u enumerate tables given a database? Pin
devvvy19-Nov-02 18:21
devvvy19-Nov-02 18:21 
GeneralRe: how can u enumerate tables given a database? Pin
Christian Graus19-Nov-02 19:41
protectorChristian Graus19-Nov-02 19:41 
AnswerRe: how can u enumerate tables given a database? Pin
RichardGrimmer19-Nov-02 22:01
RichardGrimmer19-Nov-02 22:01 
QuestionDetect CEdit number of lines? Pin
Anonymous19-Nov-02 16:40
Anonymous19-Nov-02 16:40 

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.