|
The data you have read from the file is in raw format and needs to be converted to Bitmap format. Your code is missing the conversion part. See bitmap format - Google Search[^].
|
|
|
|
|
I would be very grateful for a hint which WinAPI functions convert data to Bitmap format.
|
|
|
|
|
|
Now that I have understood everything and got the right result, I read my question with a smile. Thank you very much to everyone who sent me in the right direction.
|
|
|
|
|
I am trying to convert some code from Linux to Windows. So, I've met two warnings at one single line of code:
typedef enum {
SOME_LINK =
const le64(0x022B4AAC34546A39ULL), ....
of course, I can disable this warning, but I want to do things right how can I get rid of this warning by a correction ? It is possible ?
modified 3-Oct-19 1:50am.
|
|
|
|
|
Default enum is an int. You need a long.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
And how can setup that enum as ulong ?
|
|
|
|
|
A standard 'enum' in C can only be of types 'int' or 'unsigned int'. This value is an 'unsigned long long'.
This sort of thing is usually done in order to aggregate constants into a namespace. Unfortunately, Standard C does not allow this. If your 'enum' is, for example, called LINKS, try:
typedef unsigned long long LINKS;
#define SOME_LINK …
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Quote: of course, I can disable this warning, but I want to do things right Do NOT disable the warning. Data would be truncated, (that is an error).
|
|
|
|
|
Totally agree with you, that is why I asked here a solution. I have declared like this that enum:
typedef enum LINK : unsigned long long {
SOME_LINK = 0x01F5E4CA2A46E33ULL,
...
and those warning has gone ... I hope is ok now.
|
|
|
|
|
So you are using C++ on a little endian machine, right?
|
|
|
|
|
Yes, it is x86/x64 Intel.
From Wikipedia:
Current architectures<br />
The Intel x86 and also AMD64 / x86-64 series of processors use the little-endian format.
|
|
|
|
|
Hi
i used EM_SETCUEBANNER But Shows Charater Like Chineese My Text is "Enter .... " Could you help me how can improve this
|
|
|
|
|
Code?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Set text inside your edit box like that:
L" Enter ..."
|
|
|
|
|
I want to read the memory private working set value of a process in a window machine, I don't know how to get it yet.
Please help me.
|
|
|
|
|
Could you explain why do you want (or need) it?
|
|
|
|
|
|
Even if you can access it, the chances of you being able to understand what the contents are is not very high.
|
|
|
|
|
|
In the below code snippet, why do we use '&' ? Is it because we're passing the reference of the member function?
BEGIN_MESSAGE_MAP(CMFCListViewDoc, CDocument)
ON_COMMAND(ID_MYCOMMAND, &CMFCListViewDoc::OnMycommand) END_MESSAGE_MAP()
Excuse me for this question. It's like I know and I don't know too .
|
|
|
|
|
|
I want to get a positive integer from the user.
|
|
|
|
|
"I want" is not a question.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
There's only about a couple dozen different ways to do that, depending on the application type you're writing and the context in which you're getting this input.
Without a lot more detail about what you're doing, anything anyone replies with will be just guess work that will probably not work in your situation.
|
|
|
|