LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2004, 08:27 PM   #1
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Rep: Reputation: 15
Exclamation MFC Coding


What is coding for Drap and drop item for MFC Visual c++? Can anybodyhelp me?
 
Old 12-22-2004, 09:04 PM   #2
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
Arrow

Wow! An MFC question on a Linux board ? That's pretty brave.

The proper response would be to direct you to an MFC ressource. The comp.os.ms-windows.programmer.tools.mfc is VERY active (I use it almost every day for my Win32 contracts). Now you DO know how to access NNTP newgroups, yes? I know it's a dying art but it's as good as any web based BB. While there are more flames and spam, the number of genuine posts in an active group compensate greatly for this. And this group is really good, populated with top-notch Windows programmers. Charlie Calvert himself (of "Teach yourself Windows programming in 21 days" fame) responded to me once

But the geek in me is always up to the challenge. Basically, it's as simple as overriding your CWnd based window's ON_WM_DROPFILES message handler. Assuming your are using ClasswWizard, experiment with the newly creatred OnDropFile(hDropInfo) parameter with a call to DragQueryFile(hDropInfo) with different other parameters in order to retrieve the number of files, the buffer size for the file names and the filenames themselves. Then get buzy on those files you retrieved. Read the on-line help, it's all there.

Voilà.

narc.
 
Old 12-22-2004, 09:12 PM   #3
Ameii83
Member
 
Registered: Dec 2004
Location: malaysia
Posts: 56

Original Poster
Rep: Reputation: 15
thanks coz reply for reply my question.... you are very expert are you ?Can you give me the best web that will help me ?? can you...
 
Old 12-22-2004, 10:53 PM   #4
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
Web access to the above mentionned MFC newgroups can be done though Google (http://groups.google.ca/groups?q=com...=Google+Search)

The Code Project (http://www.codeproject.com/) has many tutorials and free code.

Use Google and type the name of standard MFC class. Your first hits will probably end up on MSDN of course, which is a good place to start. But it will also display other sites where someone answers common questions.

At last, CodeGuru (http://www.codeguru.com/) has extensive tutorials and forums (http://www.codeguru.com/forum/).

Good luck.

narc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32/MFC porting toolkit? Artik Programming 3 08-09-2005 01:03 PM
Using MFC under WineLib rjlee Programming 0 01-12-2005 08:23 AM
C++ MFC Command Line Question neozero62 Programming 8 05-10-2004 10:18 AM
MFC and GTKMM janiv Linux - Software 0 09-11-2003 05:57 AM
MFC file serialization t1mc00per Programming 2 03-16-2003 02:58 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration