|
|
Tried to compile it but my application requires the following header files, which I can not find:
atlsrvres.h
atlisapi.h
atlisapi.h
Have any advice ?
Thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I am able to compile the VS 2005 solution, those headers are in standard MFC include directories.
|
|
|
|
|
Is it possible to set font to bold by editing the resource?
|
|
|
|
|
Do you want to set bold font for a control?
|
|
|
|
|
Yes, I want to set bold font to few controls like static text etc.. but not through code. Is there a way to do this in resource by editing it???
|
|
|
|
|
So you can use of CreateFont for make font with its attributes and then use of SetFont for each control that you want.
|
|
|
|
|
U can use LOGFONT structure ...
fill this structure for font and manupulate ur font according 2 u.. in OnInitDialog fon.
Enjoy......
|
|
|
|
|
U can use LOGFONT structure ...
fill this structure for font and manupulate ur font according 2 u.. in OnInitDialog function.
Enjoy......
|
|
|
|
|
please delete your duplicate post.
and also, keep your english up please
|
|
|
|
|
CFont also provide same with Create call in MFC or CreateFont call in Win32 api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello,
I have a solution containing 4 different projects and whenever I try to build one of the projects VC++ rebuilds the entire solution (every single file for each project !) even if nothing has been modified since the last build. This is very annoying as certain projects are quite big and are a bit long to build.
I checked for circular dependencies but this is not the case.
Has anyone else had this problem??
Thanks,
Sylv33
|
|
|
|
|
Are you sure to use PCH files? Make sure this option is set.
- Malli...!
|
|
|
|
|
Yes I'm using PCH files.
This problem only happens when I have a solution containing multiple projects. Everything builds fine when I only use a single project.
|
|
|
|
|
Sylv33 wrote: Has anyone else had this problem??
Sorry, no. I've got a solution that has 8 projects in it and the "build only what changed" works fine. If anything, it occasionally misses a dependency and doesn't rebuild enough.
Before you ask it to build, go through Explorer and look at your date/time stamps on your .obj files and check what they show copmpared to the date/time on the source files. Maybe something else is messing up your file dates.
Judy
|
|
|
|
|
In VC++ can we make variable of less than a byte, something like store data of 4 bits?
--
"Programming is an art that fights back!"
|
|
|
|
|
I dont think so.May be i am wrong but as per i know it is not possible.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
you cannot for individual variable, but using structure bitfields you can specify the size of struct member variable in bits.
struct Date {
unsigned short nWeekDay : 3;
unsigned short nMonthDay : 6;
unsigned short nMonth : 5;
unsigned short nYear : 8;
};
modified on Friday, May 23, 2008 3:14 AM
|
|
|
|
|
Wow that's gr8
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
thats good.
but here what is the size ofthe structure?
my doubt is unsigned short is 16 bits.
but the items of the structure demands 22 bits.
so ifthe structure sizeis 32 bits (2 shorts)
can you explain howthe memory is allocated to the items?
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
chandu004 wrote: but here what is the size ofthe structure?
my doubt is unsigned short is 16 bits.
but the items of the structure demands 22 bits.
so ifthe structure sizeis 32 bits (2 shorts)
can you explain howthe memory is allocated to the items?
A bit clearer, please.
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
|
|
|
|
|
Click here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
i know the concept of bit fields, my dearfriend!
struct Date
{
unsigned short nWeekDay : 3; // 0..7 (3 bits)
unsigned short nMonthDay : 6; // 0..31 (6 bits)
unsigned short nMonth : 5; // 0..12 (5 bits)
unsigned short nYear : 8; // 0..100 (8 bits)
};
based on the above example,
nweekday+nMonthDay+nMonth occupies 3+6+5=14 bits,
so 2 bits are left over in the first short.
but my doubt is,
will nYear usethese two bits and remaining 6 bitsform other short or not?
|
|
|
|
|
It seems you know the answer and just put as question, if my arrogant assumption is correct, why don't you share the knowledge instead, if not see below,
chandu004 wrote: will nYear usethese two bits and remaining 6 bitsform other short or not?
No, Bit fields that cross the type boundary will skip bits to align the bitfield to the next type alignment, where type is the type of bitfield member. so, since nYear requires 8 bits and doesnot fit previous type (unsigned short - 16 bit) boundary, it skips to next 16 bit (unsigned short (type of nYear)) boundary. (PS: types other than int, like char, bool, short are not supported by every compiler.)
|
|
|
|
|
See #pragma pack()
You can use it to modify the default memory alignment for the compiler, it's argument is the number of bytes, the only valid values are 1,2,4,8,16.
|
|
|
|