|
Can u please tell me the Common API's ?
|
|
|
|
|
If I get the file path of the database(Access), is there any way to check whether any table is existing in that or not?
If yes then how is it possible to get the table name??
|
|
|
|
|
Yes, you can do all that using ADO. There are tutorials on this site and in MSDN. However, you seem to be contradicting yourself a bit, you should take a step back, consider what you're trying to achieve, and consider if you provide more specific information, we might be able to help you a bit more.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
What I understood was that he wanted to write his own version of ADO.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Me too, until he started asking how to open an Access file and check if it contains any tables.
And Lord *knows* between ODBC, DAO and ADO, we need something else.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
LOL
yeah, that's all we need now
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hi,
My Aim is to create an ActiveX Component which should work as MSRDC Component.Actually I don't know how to create it.So I am seeking the methods for developing such Component.Pls do help
SSN
|
|
|
|
|
1/ Please don't post under different names, and please don't post the same questions over and over. It just annoys people.
2/ So you want to *use* a M$ database accessing technology to create a control that accesses databases, you don't want to write your own version of ADO/DAO/OBDC ?
I did however mean exactly what do you want thins thing to do ? Do you have any prior experience using ATL ? Creating ActiveX controls ? Using ADO/DAO/OBDC ? I'm just trying to get an idea of what you're actually trying to achieve *specifically* and how much you already know about the process you're proposing.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hi,
My Aim is to create an ActiveX Component which should work as MSRDC Component.Actually I don't know how to create it.So I am seeking the methods for developing such Component.Pls do help
SSN
|
|
|
|
|
Hi,
If I know the database path is there any way to serche any table is there or not?
SSN
|
|
|
|
|
Assuming that u are using DAO, since u refer to flat files(path to Database!)
Use CDaoDatabase::GetTableDefCount and CDaoDatabase::GetTableDefInfo
And Compare the Table Name in the CDaoTableDef::m_strName returned.
|
|
|
|
|
Given the handle to a app instance or a window, how to obtain the path of the executable file? e.g "c:\winnt\notepad.exe".
Thank you,
Wally Wang
|
|
|
|
|
GetModuleFileName
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hello Wally,
Use GetModuleFileName().
Regards,
Bio.
|
|
|
|
|
assume a windows client 's height and width is yClient,xClient,
what's the relation between the ScrollInfo structure 's member nMin,nMax and
the yClient,xClient;
assume the font's height is ftheight, the client window should contain
yClient/ftheight lines buffer(buffer[yClient/ftheight][]).
if there is already yClient/ftheight LINES buffer displaying in the client area.
when the scroll box is moved , assume member nPos in the ScrollInfo structure
amount to 1, then the buffer[0] will dispear, and the Client Area shows the buffer from the 2nd row in the buffer, and so on.
then if nPos=yClient/ftheight,the the scroll box is showed in bottom of Scroll Shaft?
can anyone explains those concept about usage of ScrollBar?thanks in advance a lot
sorry for my poor english.
one is the other who absorbs the thoughts of others
one is the other who absorbs the thoughts of others
|
|
|
|
|
I'm not sure what you're asking, but if a bitmap is 800 pixels high and the window that shows it is 300 pixels high, the scroll range will be 500, because at position 0 you see the top and at position 500 you see from 500-800, i.e. all the way to the bottom.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hey all
Just wondering, why is it when you check ownerdrawn for Combobox controls in dialogs, the combobox appears to have grown in height when compiled and run...?
this doesn't make a huge diff, but my colorpicker combobox just doesn't fit in with his fellow brothers, cuz he's a tad larger in the vertical and i don't want him to feel outta place. Is there anyway(which i sure there is) to correct this height difference and how...?
TIA
P.S-This is only my second question posted on an online message board...i've never chatted, joined forums or anything so i'm unsure of the proper etiquette or forum ehtics. What i'd like to know is...will i be hated if i ask too many questions...?
"An expert is someone who has made all the mistakes in thier field" - Niels Bohr
|
|
|
|
|
Perhaps you can override MeasureItem. Not sure about this.
Nish
p.s. No probs with any number of questions. As long as you post them in the right forum
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Can I add an icon resourse to a CImageList? I have added bitmaps but can I add Icons, if so how. Thanks.
- Matt Newman
- Matt Newman
-Sonork ID: 100.11179:BestSnowman
|
|
|
|
|
CImageList::Add has this overload which might interest you :-
int Add( HICON hIcon );
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Ahh. I was working with a sample I had a while back and all I saw was the CBitmap. Thanks for pointing that out.
- Matt Newman
- Matt Newman
-Sonork ID: 100.11179:BestSnowman
|
|
|
|
|
When I start a new project, I have Edit at the top
with undo, cut, copy and paste. How can I
activate these options? If I click the right
mouse button on an edit box, then alittle box
pops up which lets me access these commands. But
I would really like to know how to activate the
menu bar Edit command as well. It just seems like
a waste unless its activated.
Please, any response any one can give me will be
greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
The edit box is handling these for you in the edit box. To activate them in the menu, you need to write code that handles undo for your app, and cuts/copies/pastes to and from the clipboard.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Change the IDs of the menu items to these values :-
ID_EDIT_COPY
ID_EDIT_CUT
ID_EDIT_PASTE
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Nish [BusterBoy] wrote:
Change the IDs of the menu items to these values :-
ID_EDIT_COPY
ID_EDIT_CUT
ID_EDIT_PASTE
I don't understand - that's what they are to start with, isn't it ? There's still no way that the items will ever be visible unless there are functions linked to them, or does MFC provide basic, text only ones by default ?
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|