|
You don't draw on "picture controls". Picture controls keep their own
bitmap and render it themselves.
Try getting your image to render on the window first, then maybe work
on rendering on a child window.
This isn't a CxImage support site, and I've never used the library,
nor am I going to research the documentation, so it's tough to figure
out what's not working.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
There is, as you probably know, the CxImage article, here [^] at CodeProject . On the web there is also the library documentation page [^].
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]
|
|
|
|
|
Like this:
CImage m_Image;
m_Image.Load(_T("yourfile");
m_Image.BitBlt(hdc,0,0);
|
|
|
|
|
Hi all
I am getting an error message in my application "This application has failed to start because cximagecrtd.dll was not found".
I tried to download the cximagecrt.dll/cximagecrtd.dll from net. But i couldn't able to find anywhere. Can some one please provide this for me.
Thanks in advance.
Regards,
Balaram.
Regards,
balaram
|
|
|
|
|
Hi all,
In my mfc application I have a main window which has no title bar, no resizing frame, no border n all. I am programmatically creating title bar and maximize and minimize buttons.
For resizing and move operations I am handling hit test messages.
But since I have no title bar so system menu doesn’t appear by default, and also left click on task bar doesn’t maximize the window.
For this to work I added WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SYSMENU styles to my frame window. Everthing started working sysmenu on right click,maximize,minimize,move n all but unexpectedly resizeing stopped working. If I remove WS_SYSMENU resize starts working. I have no idea what happened. One solution thought was to add WS_THICKFRAME to the window but I don’t want to use it as it changes the look of window which client doesn’t want.
Can you suggest something on this?
|
|
|
|
|
Hi All
How can i convert String to ascii?I have a file type txt and i want to write string in form of asci.So plz help me
|
|
|
|
|
cpvc++ wrote: How can i convert String to ascii?
What format is your string in?
What does your string look like and how is it declared?
Are you using any wrapper classes like CString , std::string or similar?
What have you tried so far and how does it fail?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Why so many questions, Roger? How is this guy supposed to get any work done when he has to spend half his day answering questions. At this rate, he'll never get around to using the debugger or reading any documentation.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Seriously, I really laughed out loud at the office and had to apologize to my colleagues.
Thanks David, I really needed a good laugh.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
David, you're terrific some days
|
|
|
|
|
Usually the text files are encoded using ASCII . Is your text file encoded using UNICODE ?
Could you kindly elaborate?
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]
|
|
|
|
|
Hi i am makeing log file and i want to show in non readable formate.SO i want to convert string data to Ascii
|
|
|
|
|
cpvc++ wrote: Hi i am makeing log file and i want to show in non readable formate
It must be unreadable? Why? Anyway you may crypt it.
cpvc++ wrote: SO i want to convert string data to Ascii
The above conclusion is wrong, since ASCII text file format (not encrypted) is the most (human) readable I know.
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]
|
|
|
|
|
Can you give me example?Plz help me
|
|
|
|
|
See [^].
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]
|
|
|
|
|
Thaxs now i am able to encrypt the string..
|
|
|
|
|
Your question is very unclear ... So my guess ...
char *str = "text";
for (int i=0; i<strlen(str); i++ )
printf("%x ",str[i]);
|
|
|
|
|
Hi All
How can i export List Control data into excel and pdf? Plz help me
|
|
|
|
|
Do you know CodeProject's article search engine [^], [^]?
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]
|
|
|
|
|
MsmVc wrote: How can i export List Control data into...
Where it goes is irrelevant. You get at it by using GetItem() and GetItemText() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
i could open the file and i could get text from edit box but when i am trying to write to file, it is not getting written to file.
m_pStream is showing as NULL.
|
|
|
|
|
Can you post your code or expect someone to figure it out without seeing it?
Did you try and debug the code?
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
ofstream myfile;
myfile.open ("example.txt");
myfile << "Writing this to a file.\n";
myfile.close();
return 0;
}
int main()
{
string input;
ifstream myfile("Config\\test.txt");
getline(myfile,input);
Edit1->Text = input.c_str(); getline(myfile,input);
Edit2->Text = input.c_str();
getline(myfile,input);
Edit3->Text = input.c_str();
}
wkr,
Willem
|
|
|
|
|
wielklem wrote: myfile.close();
At this point, can you open the file via Notepad and see its contents?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
correct, you can now view or edit it
|
|
|
|