|
Cool_Phillip wrote: how ll i know wheather its a SDi or MDI or dailogbased project?
By looking at it?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
DavidCrow wrote: By looking at it?
Hi
thanx for reply.
But how come i'll know the type by looking at code. my project doesn't ve any CFramewnd, or CDoc.
Regards
Phillip
|
|
|
|
|
Cool_Phillip wrote: But how come i'll know the type by looking at code.
Look at what is in the InitInstance() method.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thank you very much.
Regards
Phillip
|
|
|
|
|
Try to create each one of the 3 types project, look at what is difference, the main difference is CMainFrame
|
|
|
|
|
Thank you very much.
Regards
Phillip
|
|
|
|
|
You can use a mirror. Just keep it in front your monitor, stand behind your monitor and the mirron will reveal what kinda application is it. Or you can use a simple see-through glass and sit in the usual place. That's how I do it every time.
As our mate just said above, create 3 different apps of each type & you will know.
Hints:
1. Dialog applications : Calculator
2. SDI : Mspaint, Notepad
3. MDI : MSWORD, Excel.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I want use hook to catch net data passed by local machine,how can I do?
|
|
|
|
|
1, The best way is sniffer, download the WinPcap http://www.winpcap.org/[^], and look at the samples.
2. Hoot the network api, such as send sendto etc. download M$ detours , look into the sample which hooks the network api.
|
|
|
|
|
Or Etherreal[^]
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hai all
Is it possible to convert a 32 bit driver application to 64 bit compatible using visual studio 08.
If yes what are the requirements which we should take care?
Advance thanks for all the answers forwarded...
Santo
|
|
|
|
|
Windows drivers are built using the Device Driver Kit which is a free download.
It is called as Windows Driver Kit (WDK).
Download and install the latest verion.
Then select the 64-bit environment from which you can rebuild your driver.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks
let me try it out...
|
|
|
|
|
Hi,
I need some help on how to send emails using VC++ code..? is there any API available for sending emails..?
If so please kindly let me know..
Any help will be appriciated...
Thanks in advance...
|
|
|
|
|
MAPI[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
if MAPI is not an option its very easy to write a simple mailing functionality just look up the RFC for SMTP.
a programmer traped in a thugs body
|
|
|
|
|
Just to add the replies, when you create a new xDI project in visual studio, you can choose the option for MAPI in the wizard itself.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I have created an MFC application, dialog based. The application contains 4 child dialogs. and everything was fine.
Now I tried to create a 5th dialog box. The program compiled and ran fine but when i try to close the main dialog window I receive:
Unhandled exception at 0x7c22c81a (mfc71d.dll)
The Call Stack refers to the InitDialog?
llp00na
|
|
|
|
|
Hi ,
Wanted to know if all the handlers for the child windows are correctly returning the value.
Is the 5th dialog box having some extra code , or is it not returning the value which it is supposed to .
|
|
|
|
|
looks like a memory leak.
llp00na wrote: Now I tried to create a 5th dialog box.
You are using Dialogs from the resource right? Just doing a domodal()? Or a modaless? what are you doing throw some more light.
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Hi All,
Im using CTreectrl. I need to display the content of particular folder. The folder is "Sample" it has sam.txt, example.txt ,book.xml etc. How to display the Folder(Sample) and it content.
Please help me..........
Thanks & Regards,
Anitha
|
|
|
|
|
In the old days, there was a very nice function called DlgDirList (and DlgDirListComboBox) which filled a listbox / combobox with the files in a directory.
But there is no equivalent for a Tree Control, sorry.
You need to combine two bits of knowledge:
1/ FindFirstFile / FindNextFile to loop through all the files in a directory that match (eg) "*.txt".
FindFirstFile has a decent bit of code sample in its documentation that will be better than anything I can quickly type.
2/ And CTreeCtrl::InsertItem to put those items in the tree.
Lastly, download my article: http://www.codeproject.com/KB/system/Drive_Detect.aspx[^], and look in the code. It has code to construct an imagelist with the pictures for the different drives in it. This stage is optional, but little pretty pictures never hurt!
Good luck,
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|
|
Iain Clarke wrote: In the old days, there was a very nice function called DlgDirList (and DlgDirListComboBox) which filled a listbox / combobox with the files in a director
In VB6, a directory control used to fill & display file/directory contents automatically. Intelligent eh?
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
I never had to use VB (well, not much) but I thought it was great up to a point. But I was too much of a control and speed freak...
Iain.
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
|
|
|
|