|
CPallini wrote: if sizeof(char) was indeed relevant...
Yeap i know.. Old programming bad-habit
"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
|
|
|
|
|
Actually it is a good habit and proves helpful when dealing with TCHAR s.
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]
|
|
|
|
|
Please check the statement
szTemp = (char *)malloc(sizeof (len) + 1);
check with following
szTemp = (char *)malloc(len + 1);
|
|
|
|
|
sorry I was late..
Please ingnoe
|
|
|
|
|
Hi!
how do i work with
#pragma command, to ignore a warning number in my project? (in Compiling)
please help me
Zo.Naderi-Iran
|
|
|
|
|
What about 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]
|
|
|
|
|
you....... hummm
"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
|
|
|
|
|
#pragma warning( disable : 4507 34 )
#pragma warning( once : 4385 )
#pragma warning( error : 164 )
"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
|
|
|
|
|
thanks
but, where i write this command in my MFC project?
Zo.Naderi-Iran
|
|
|
|
|
you can write this in any header/C/C++ file, above your code!
"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
|
|
|
|
|
oh, ok, thanks
i write this command in first line of Header file.
this is right,
thank you
Zo.Naderi-Iran
|
|
|
|
|
my pleasure!
"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
|
|
|
|
|
How to read Bitmap file using BITMAPFILEHEADER structure. Can any one give some guideline regarding this ?
|
|
|
|
|
All the info you need to parse and load a BMP file is linked to in the
BITMAPFILEHEADER documentation. Here's the link:
Bitmap Storage[^]
There's all kinds of examples around, probably many here on Code Project Dot Com.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
i used that BITMAPFILEHEADER structure, but bfType variable in that structure is not giving proper value, i.e it is giving 0 instead of "BM".please further give some more solution in this.
|
|
|
|
|
"please further give" some more info on what you're trying to do.
|
|
|
|
|
Actually i m trying to change the bitmap of an exe externally without making any changes in resource file(.rc) of that application.now i m able to retrieve the bitmap file data as well as exe bitmap data, but unable to change exe bitmap.it errazing original bitmap of an exe, when i m calling UpdateResource function of MFC.
|
|
|
|
|
If you can't get the correct values for the BITMAPINFOHEADER structure (the 'BM' signature), then the resource you're trying to edit is probably not a bitmap or it is compressed.
|
|
|
|
|
Then the structure isn't valid or you're doing something wrong.
You'll need to post the code you're using to read the header structure(s).
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Seehere[^] it explains to you all you need.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi experts,
could anyone please tell me where can I find docs(or sites), to learn design pattern implementation using c++/ vc++(MFC).
Thank u so much
Himanghsu
|
|
|
|
|
|
|
|