|
Go to [Project Settings], tab [C/C++],
select the cpp file(s) you are interested in,
select "Precompiled Headers" in the "Category" combobox and
then click on the "Not using precompiled headers" radio button.
SkyWalker
|
|
|
|
|
I don't think we're talking about the same here
I'm not using precompiled headers at all, I want to turn off the incremental complilation feature. According to the documentation /Gi- should turn it off but "vc60.idb" is still created.
And yes, I've checked all files and checked that the flag is set on all files (using gnumake, it's easy to check).
---
There are 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Then we are talking about this one:
Project Settings -> C/C++
Category: Customize
The option "Enable incremental compilation" should be unchecked
SkyWalker
-- modified at 10:52 Monday 14th November, 2005
|
|
|
|
|
Yes, that's the /Gi- option but it's not working, the *.idb file is still created.
---
There are 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
There is also a step in the link phase that has to be turned off. I think it is part of the debug options.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I have char* holding jpeg image and want to seperate header and data parts
hadi be
|
|
|
|
|
|
Does the following JpegHdr structure correspond to your requirements?
typedef struct JpegHdr
{
short width;
short height;
short restartInterval;
short numOfQts;
char precision;
unsigned char numComps;
char blockWidth[3];
char blockHeight[3];
char qtId[3];
char compId[3];
char maxBlockWidth;
char maxBlockHeight;
JpegQt qt[4];
JpegHt ht[4];
} JpegHdr;
See more here: http://www.cs.cornell.edu/dali/api/jpeg-c.html[^]
SkyWalker
-- modified at 10:16 Monday 14th November, 2005
|
|
|
|
|
hi all,
if two funcions in one class ,their parameter type and numbers are same ,but only the return type is different ,the two functions belong overload?
thx
vivid
|
|
|
|
|
Tder wrote something like: if two functions in one class are the same, but differ only in return type
That is illegal by the C++-standard.
Different functions must have a differing paramater list or const ness.
VC7.1 raises error C2556 "'identifier' : overloaded functions only differ by return type"
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
if when compiling ,there is a error
vivid
|
|
|
|
|
Hello,
Whether two functions should be overloaded or not should not be determined by the parameter list. Functions should only be overloaded if they do the same thing with different parameters!
The following example illustrates:
class DoOverload
{
public:
void AddOneInteger(int nValueToAdd);
void AddTowIntegers(int nVal1, int nVal2);
void AddInteger(int nVal1);
void AddInteger(int nVal1, int nVal2);
};
class DontOverload
{
public:
void DoFoo(int i);
void DoBar(int i);
};
Hope this helps
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
if
void AddInteger(int nVal1); int AddInteger(int nVal1, int nVal2);
the two funciton belong overload?
vivid
|
|
|
|
|
Hello,
Yes, the term would be that AddInteger() is overloaded for one parameter and for two parameters.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
no,my meaning is void AddInteger(int a) and int AddInteger(int a,int b);
their return type is different,they belong to overload?
thanks
vivid
|
|
|
|
|
Hello,
Your return type can be different as long the function is overloaded by parameters.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Does anyone know how to get another "virtual folder" to My Compuer? What I mean is something like the Recycle Bin. - not visible to the user directly, but can be accessed via that icon in the Explorer.
Live long and in prosper
johny74656@gmail.com
|
|
|
|
|
|
I have the following Image Object loaded from BITMAP HANDLE
Image *image = Bitmap::FromHBITMAP(hBitmap,NULL);
I need to get the Image size in bytes, how can I do this?
|
|
|
|
|
since you have the hBitmap, i suggest you use:
CBitmap::GetBitmap(BITMAP)
the BITMAP structure contains the necessary information you desire...
hope this helps ya
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
the problem i do resize for image
image = ScaleByPercent(image,50);
so image will have a new size , then i saved the image object into IStream object as following :
<code>
CLSID encoderClsid;
GetEncoderClsid(L"image/jpeg", &encoderClsid);
image->Save(pStream,&encoderClsid,NULL);
</code>
any suggestion in getting the scaled image size in bytes.
<b>ScaleByPercent Function</b><code>
Image* ScaleByPercent(Image *imgPhoto, int Percent)
{
float nPercent = ((float)Percent/100);
int sourceWidth = imgPhoto->GetWidth();
int sourceHeight = imgPhoto->GetHeight();
int sourceX = 0;
int sourceY = 0;
int destX = 0;
int destY = 0;
int destWidth = (int)(sourceWidth * nPercent);
int destHeight = (int)(sourceHeight * nPercent);
Bitmap *bmPhoto = new Bitmap(destWidth, destHeight);
bmPhoto->SetResolution(imgPhoto->GetHorizontalResolution(),
imgPhoto->GetVerticalResolution());
Graphics *grPhoto = Graphics::FromImage(bmPhoto);
grPhoto->SetInterpolationMode(InterpolationModeHighQualityBicubic ) ;
RectF destRectA(destX, destY, destWidth, destHeight);
Unit srcunit = UnitPixel;
grPhoto->DrawImage(imgPhoto,destRectA,sourceX,sourceY,sourceWidth,sourceHeight,srcunit,NULL,NULL,NULL);
return bmPhoto;
}
</code>
|
|
|
|
|
|
Hi all,
I am real desperate here cause there aren't any good documentation regarding the matter...
i am interested to launch windows explorer via code or command line, to be opened in my desired folder, in a 'film strip' mode...
heard i can use IFolderView or other shell objects, but couldn't find any good sample of doing such...
can any1 please show me piece of code on how it can be done?
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
YaronNir wrote: in a 'film strip' mode...
What's this?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
if you are using winXP,open My Documents-->My Pictures, choose in the 'View' Menu 'Film strip'
it shows the pictures in a special way, in the bottom, small thumbnails of the picture and in the middle, the selected picture in large...
i want to open such a window programatically (c++ or by command line)
really need help here
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|