|
MFC type project makes your life easier!
Maxwell Chen
|
|
|
|
|
Yes you can use the MFC AppWizzard with the view derived from a form view.
|
|
|
|
|
hi,
I am realy interested with your project. please let me know the the requirement. we both work on that project.
Use MFC to Create the project.
use LoadImage function to load a image into application
display that loaded image using Onpaint message handler of the view class
|
|
|
|
|
thanks guys
hasansheik can u give some piece of code to start with at least the 1st requirement. (eventually I have to build a multimedia search engine - one in which u input an image and u get as output 'similar' images)
|
|
|
|
|
I am a beginner of C++ programming. Please help me
I came across this problem of creating a DVD class. The part I don't understand is in my handout for project, the instuctor asked us to assume
DVD consists of a number of audio/video chapters, How can I store data(like lyric of a song) into those Chapters?
Should I create a class named Chapters and use an array of Chapters in DVD class?
I mean we only pass data through like:
DVD* dvd = new DVD("show me the meaning of being lonly";
but all I can do is store one line into the class, how can I store the whole lyric into the class?
hu yu
|
|
|
|
|
foxele wrote:
Should I create a class named Chapters and use an array of Chapters in DVD class?
This sounds reasonable.
foxele wrote:
DVD* dvd = new DVD("show me the meaning of being lonly";
but all I can do is store one line into the class, how can I store the whole lyric into the class?
How about:
DVD dvd;
CHAPTER *chapter;
chapter = dvd.AddChapter();
chapter.AddLyrics("This is line 1");
chapter.AddLyrics("This is line 2");
chapter.AddLyrics("This is line 1\nThis is line 2");
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
How can I get the tooltips for CTreeCtrl to dsiplay some other info rather than the name of the tree nodes
|
|
|
|
|
Hi,
I want to communicate with USB device which is a Embeded Linux PDA. This devices are attached to Windows 2000 box. The requirement is that there may be more than one such device on the USB hub and the application on a windows box should be able to indentify and communicate with those devices. As the device is not yet ready the driver is not available to me.
I just wanted to know these functionality for detecting and communicating individualy with the device is provided by the driver, wether the USB drives provides some sort of call backs or events when ever a device is attached, detached or sends data. How the application using the driver should be able to know about these events and read and write data to the devixe.
I will be thank full if some one gives a clear Idea about the using USB drivers for detecting device attach, detach read and write to perticular device.
Reagrds
AbdulMunaf Chhatra
|
|
|
|
|
hi all!
does anyone know how to enable autorun of a program (.exe ) from an USB drive? autorun.inf as we know works for CD's and not for USB drives, but it's possible to autorun from an USB drive...an example is microtoolz.com....anybody knows how that can be done in the VC++ environment? thanks.
Kane
|
|
|
|
|
If you search @ msdn.microsoft.com for "autorun usb", you'll see that it is possible to associate apps to removable drives for autorun if you're using Autoplay V2 (embedded in WinXP).
I guess (!) that PenDrive Autorun associate itself with removable USB drives and if an USB drive is added to the system and XP is polling what application likes to autorun, PenDrive Autorun says 'yes' if autorun.inf is found. So WinXP gives the control to PenDrive Autorun and PenDrive Autorun executes the file specified in autorun.inf. But that is only a guess.
If it's true, than it's not possible to trigger an autorun from the USB, so only if PenDrive Autorun (or something like it) is installed on the computer, the trick will work.
|
|
|
|
|
Hi all;
I am a final-year university student and i am using SkinMagic to skin my application. However, the problem is that i do not have the registered version (student=no money!) and i keep getting the annoying message "you are using an unregistered version of SkinMagic" each time i start my application. This will not be very nice when i will present my application to the examiners. Could anybody possibly provide me with a copy of the SkinMagic.h file and the lib file. I have asked the authors but they seem reluctant to lend me a copy for educational purposes.
Thanks guys;
Krugger
Plan tomorrow today itself or else it will be too late..
|
|
|
|
|
there are many skinned demo source codes in the codetools, why not using those than SkinMagic lib?
like this one
http://www.codeproject.com/dialog/skindlg.asp
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Using skinmagic you can skin the application with little affort rather than coding the logic to skin the app yourself.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Yes, 3rd party library must be convinient. But as a student, should he did this kind of thing by himself? What the point of submiting something that you have not putting effort into it?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Anthony_Yio wrote:
What the point of submiting something that you have not putting effort into it?
true,
But i guess his application will work even without the skin too... As a college student he is more expected to implement the logic.
Developing skinmagic kind of component is a huge task for even a fairly experienced programmer.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
copy of skinmagic.h and .lib will not help you with removing the anoyying popup dialog... you need to enter a registration key while loading the skinmagic.dll
I do have one but alas i cant give it to you.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Hello,
In a C++ program, I would like to change the string
"ty^Hypescript ^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H
^H^H ^H^H ^H^H ^H^G^G^G^G^Gty^Hypescript ^H ^H^H ^H^H ^H^H ^H^M"
into the string
"typescript".
The letters like '^H', '^H^H', and '^G' represents some of the ANSI control characters such as backspace. (the characters are shown on VI editor.)
So, I think it's possible to process control characters within a code, like a VT100 virtual terminal does.( In deed, I am not sure whether the process is done in a terminal, shell or whatever.)
If you have a sample code or a function to suggest, please post them. Thank you.
|
|
|
|
|
MFC:
CString::Remove
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
Also, does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
-thanks
|
|
|
|
|
hsdfhkgkhshk wrote:
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
Yes.
hsdfhkgkhshk wrote:
does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
It's exactly the same because _tcscpy() etc. are simply macros that expand to the appropriate function calls depending on whether yuo're compiling for unicode/MBCS/ANSI.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
TEXT() or _T(...) for short.
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
hsdfhkgkhshk wrote:
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
You don't have to if you you're using an ASCII character since the conversion is automatic (and valid by C++ standard.) Except for zero, I tend to do it though.
hsdfhkgkhshk wrote:
Also, does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
Generally, lstrcpy results in smaller code while _tcscpy results in faster code. (The same with _tcscat and _tcslen .) For the rest, I prefer the Windows API, especially lstrcpyn which guarantees a null terminated string, since the performance is usually a wash.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I'm studying about window achitecture,, and assembly language..
Where can I get a information about Window Protected-Mode?
If you know, tell me.. except Microsoft web site or MSDN? (it sucks)
|
|
|
|
|
First, Windows doesn't have protected mode, the Intel CPU does.
See the following:
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
experience it... use low-level debuggers and explore...
Don't try it, just do it!
|
|
|
|