|
|
You still seems confused, since your question doesn't make sense.
SQL is, to my knowledge, a language for dealing with database queries.
A SQL database is a database that supports the SQL language.
A database usually resides in some kind of (remote) server machine.
In order to communicate with a database (SQL or not), your program has to "talk" to the server that hosts the database. And of course, the database itself.
Two ways to communicate with a database is ODBC and ADO. There are other ways as well.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
|
See benjymous response, earlier in this thread.
Or just Google for it.
Or try MSDN.
There are heaps of samples out there, just pick one.
Good luck.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
how to list all the files and folders in c: drive programatically.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Use CFileFind class of MFC.
Smile
|
|
|
|
|
hmm i think this lists all files. i have to list all files and folders in a drive for example c: drive
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: hmm i think this lists all files.
It lists the directories too...
nave
|
|
|
|
|
Have u read it carefully? It gives u folders too.
Smile
|
|
|
|
|
Try using CFileFind .
Regards,
Paresh.
|
|
|
|
|
yes i got it but how to list it in list box
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
A easy way is that you can use of DlgDirList
|
|
|
|
|
hmm yes sir but i have to list the files similar to windows explorer ie with icons
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
WhiteSky wrote: A easy way...
But not the correct way. The requirement was to list "all the files and folders in c: drive." DlgDirList() does nothing more than populate a listbox with the names of the subdirectories and files in a specified directory.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
deeps_cute wrote: to list all the files and folders in c: drive programatically.
you can use FindFirst() and FindNext() functions. But using the CFileFind class would be an easier option.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
I am hiding my window when its close button in clicked and i am keeping it in the system tray.
When some condition is true the window has to be shown on the window.
For this i wrote
AfxGetMainWnd()->ShowWindow(SW_SHOW)
But the window is not coming up. Its coming into the task bar only and when i am clicking on it its being shown.
I want my window to be automatically poped up.
Where i have gone wrong?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
ShowWindow(SW_MAXIMIZE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
just try the below code...
DWORD dwThreadId = GetWindowThreadProcessId(::GetForegroundWindow(),NULL);
DWORD dwCurrentThreadId = GetCurrentThreadId();
AttachThreadInput( dwThreadId, dwCurrentThreadId,TRUE );
AfxGetMainWnd()->ShowWindow(SW_SHOW)
AfxGetMainWnd()->SetForegroundWindow();
AfxGetMainWnd()->SetFocus();
AttachThreadInput( dwThreadId, dwCurrentThreadId ,FALSE );
nave
|
|
|
|
|
Thank you Naveen. It worked.
KIRAN PINJARLA
|
|
|
|
|
Hi
I have a object.And i want to convert it into VT_DISPATCH variant.How can i do this.
|
|
|
|
|
Is it a COM object which implements the IDispatch interface? If not it makes little sense to do so.
Steve
|
|
|
|
|
Hi
Does anyone know how to import makefiles for GNU into VC++6.0?
I have some open source code and makefiles. The code is written portable.
But the makefiles arent.
Please anyone suggest me what can be done.
There are lots of module therefore the makefile is important as to tell which one should be compiled first etc.
Regards
The Best Religion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi All
I got some .h and .cpp file for read/write floppy drive from this link
http://www.codeproject.com/system/cfloppydisk.asp
But i unable to understand how to use it and can i set permission for read/write on Floppy drive using this code?
Thanks in advance
RYK
-- modified at 5:39 Monday 2nd April, 2007
|
|
|
|
|
have you asked the author directly using the forum at the bottom of that article ?
|
|
|
|
|
Hello Friends
I remember there was something that allowed to do some code & full excel was there in a Doc / View Application , but i could not remember that.
Any idea?
Regards
|
|
|
|