|
You can write it as one line of code, do you expect to find something shorter ?
What's wrong with declaring a new class?
That's what you asked for.
...cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
Thanks.
Could you recommend me any books when there is detailed descriptions of these questions ?
|
|
|
|
|
|
Here is one way to do it.
typedef A<int> IntA;
typedef A<MyOtherType> MyOtherInt;
B<IntA> b1;
B<MyOtherInt> b2;
Or you could go one step further.
typedef A<int> IntA;
typedef A<MyOtherType> MyOtherInt;
typedef B<IntA> myIntBA;
typedef B<MyOtherInt> myOtherBA;
myIntBA b1;
myOtherBA b2;
You could also make the above into a single typedef.
typedef B<A<int>> myIntBA;
typedef B<A<MyOtherType>> myOtherBA;
myIntBA b1;
myOtherBA b2;
|
|
|
|
|
Hi
Can i get image morphing source code ,written with visual c++ 2008 ,from dog to cat or something like that...
Regards
fpehpeh
|
|
|
|
|
I assume you checked with google before ? there are couple of hits with source code, maybe not c++/vs2008, but nothing preventing you to look at them and convert them.
anyway, good luck.
This signature was proudly tested on animals.
|
|
|
|
|
hi,
I need to convert outlook contact information into a text file or a rtf format. Please if any one knows any references related to this send me..
Thanx in advance
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote: I need to convert outlook contact information into a text file or a rtf format.
Use the File Export function of Outlook.
|
|
|
|
|
Thanx for Replay,
Hey I want to perform this operation using MAPI programming. Any samples If you know please tell me.
sampath-padamatinti
|
|
|
|
|
sampath-padamatinti wrote: Hey I want to perform this operation using MAPI programming. Any samples If you know please tell me.
Hi,
See Accessing the address book data using MAPI[^]
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hello sirs ,
How to convert 24 bit bmp to 16 bit bmp ... i tried many workouts but its all fake to convert 16 bit bmp as my search ..
So please give me your valuable suggestion
Thanks
|
|
|
|
|
raju_Code wrote: i tried many workouts
What have you tried? Why is it all fake? Have you read the documentation [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote :
What have you tried? Why is it all fake?
Thanks for your replay Sir ...i tried means ...i build some sample application from codeproject but its not creating 16 bit bmp ....
this is my workout
actually this application do's Converting DCM 2 BMP ... i can able to convert 8 and 24 bit ..its creating perfectly ..using DCMTK package but 16 bit bmp its having problem ....
this is my code snippet
bool CxImageDCM::LoadDCM(const TCHAR* filename)
{
DcmFileFormat *dfile = new DcmFileFormat();
OFCondition cond = dfile->loadFile(filename, EXS_Unknown,
EGL_withoutGL,DCM_MaxReadLength,OFFalse);
if (cond.bad()) {
AfxMessageBox(cond.text());
}
E_TransferSyntax xfer = dfile->getDataset()->getOriginalXfer();
DicomImage *di = new DicomImage(dfile, xfer,
CIF_AcrNemaCompatibility ,
0, 1);
if (di->getStatus() != EIS_Normal)
AfxMessageBox(DicomImage::getString(di->getStatus()));
di->writeBMP("D:\\Esm.bmp",8,0);
return CxImage::Load("D:\\from_dicom.bmp",CXIMAGE_FORMAT_BMP);
}
Please give me your valuable suggestion ....sir i am waiting for your replay ..
Thanks
|
|
|
|
|
Well, you may obtain a 16 bit bitmap from a 24 bit one: it's a quite lenghty coding task, but it isn't too difficult (starting point: CreateBitmap documentation [^]). If you ahve the option of using GDI+ then have a look at Bitmap::ConvertFormat method [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
hi all i have an application in which i have to wipe/clean all the deleted files and folder from disk. please tell me how it will possible.
thanks
|
|
|
|
|
Maybe you can write a program to put bytes of random values to the unused space of the disk, for example, by creating a large file that fills the whole disk space. That will erase all deleted files, I believe.
|
|
|
|
|
Or before you delete the file write garbage in it...
Rozis
|
|
|
|
|
That works as long as he erases the files he wants to delete (using his application.) If the program wants to erase all the deleted files and folders (they might be deleted by other programs) it still needs a way to get rid of all the traces of those files on the disk.
|
|
|
|
|
Hi
After debuging a MFC Application ,then closing it produce the following
message in the output window .
Dbug
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
"
"
"
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
What does it mean? Thanks in advance 
|
|
|
|
|
|
It simply shows u log that which of the dlls it used for running ur MFC application.
|
|
|
|
|
can we make class cant be derived at all? if yes how to make it. please let meknow?
Nice talking to you. If you judge people, you have no time to love them. -- Mother Teresa
|
|
|
|
|
class foo sealed
{
};
use the 'sealed' keyword.
|
|
|
|
|
theCPkid wrote: use the 'sealed' keyword.
The ISO standard C++ has no such keyword.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
okay.. Thanks for the information.
Visual studio compiler supports this keyword [^] and above all,if a person happens to use VS, "it works" without "any additional implications".
Making the c'tor private will certainly stop the class from being inherited but it will also force the person to provide 'other' way of creating the class object.
I think OP wanted to stop inheriting not instantiation. And my suggestion only helped him do what he wanted - nothing more, nothing less. 
|
|
|
|