now that's an interesting piece of information. AFAIK, module machine type is the one mentioned in the active solution configuration and target machine type inside linker options. if they do not match, then I get the same error as mentioned by you.
I faced the same problem. I assume the following in your case.
1 The module that your are building is a 64 bit binary.
2 You are trying to link your module with a 64 bit library.
If above is the case, then you need to define an x64 Platform using the Configuration manager. Select the New option.
In my case above was the problem and after defining a new configuration for x64, the problem is solved.
"Silence will create respect and dignity; justice and fair play will bring more friends;
benevolence and charity will enhance prestige and position; courtesy will draw benevolence;
service of mankind will secure leadership and good words will overcome powerful enemies"
Ali (Peace be upon him)
Not adding items to the CTreeCntrl. My problem is that , i have an editable tree, ie, i have checked the edit labels option.i want to know how to accept the label change on the tree. Means how to set the changed label?
I am sorry if I could not get you but do you mean how to edit the labels from user point of view?
If it's so, click on the item to select it and then single click again and an in-place edit box will open.
If you mean as a programmer, then you get BeginLabelEdit and endlabel edit messages, you can get the item text, set the item text, get current selection etc etc?
I enjoy using types such as UINT as an alternative to unsigned int, which is all well and good if I have windows code in my project, however I have to manually define this in other projects that dont use any windows code. what I'd like to know is if it's possible to do something along the lines of the following...
typedef UINT unsigned int;
I have a feeling that code doesn't do what I want, so I'm asking, does it, or doesn't it?
I agree with Superman's reply to you, so you need to give more information than "all wrong".
When you use the debugger, was the contents of the intermediate string object correct?
If so, is the text file full of the right stuff, but with NULL's in between? In which case you have a unicode vs ascii issue.
"All wrong" is bad answer to just about anything, whether it's a coding question, or from your doctor.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]
Hi, I am trying to work out how to darken the Windows Desktop and then display a rectangular portion of the desktop normally (not darkened). This is for a screen area capture program. You can see the precise effect I am after in Jing http://www.jingproject.com/[^].
I understand how to make a window transparent, but that's not what I'm after.
Fading the background in a Web page is also commonly done. Any tips/pointers/C++ source much appreciated. Google has not helped so far.
Thanks all. Capturing the desktop as an image and then altering that seems like the way forward. I've been researching GDI+ and the Effect Class, and I plan on trying the BrightnessContrast Class tomorrow. I'll draw the normal rectangle area using the original desktop image. And use a window layered over the top of the desktop. Sounds like a plan.