|
Hi dear,
I want to save the CDC class content into a bitmap file.
How can I do this?
I've done it by using GDI+ simply because this functionality exists in GDI+ library. But I don't wanna use GDI+ in my application.
|
|
|
|
|
I hope you don't mind me asking but i was looking to implement similar functionality in my app a bit later.
Is there an article or some information you can point me to as to how to accomplish this?
Cheers
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Hi dear,
I'm looking for a class or library for crating a 3D plot
for x,y,z series of data, programmatically.
a 3D plot, as you've seen in MATLAB software.
Thank you in advance.
|
|
|
|
|
Have you tried octave.
Only used it on UNIX nut i'm pretty sure its available for Windows.
http://www.octave.org/
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Have you tried ROOT ?
http://root.cern.ch/
Jonathan de Halleux, Belgium.
|
|
|
|
|
Hello,
I try to figure myself, but can't, so please help:
I want to place a input box and a button in taskbar,
which stay there all the time. When user have to search for a
keyword, type it in input and hit the button.
Which is the way to place windows controls in taskbar?
But in system tray instead??
Thanks in advance.
|
|
|
|
|
You need to create either a application bar or a taskbar (band?) which contains your controls.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Objects in the taskbar are called "Desktop bands". Article here[^]
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
|
|
|
|
|
Thanks a lot, at least I know now what
I'm searching. I really forgoted the
term "Desktop band", and I did lot of searches
after other keywords.
Regards
|
|
|
|
|
I use the StretchDIBits to stretch blt a bmp to memory dc,
But when blt a large bmp file(4000 X 3000 X 24bit, or larger)
The part of displayed image will be wrong, for example, the top part of the image will disply the bottom part, and the botom part will display nothing
Why this happened ?
Any one meet this errors ?
It's me, code_cold
|
|
|
|
|
If i want to send and receive bitmap by socket, how i can do?
|
|
|
|
|
What is the difference between #include "" statements declared in the .cpp and the .h files?
tx
J
|
|
|
|
|
Jolene wrote:
What is the difference between #include "" statements declared in the .cpp and the .h files
There is no difference!(?)
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
apart from the fact that include statements in .h files will also be included in any other files that include that .h file there is no difference.
I prefer to only add #include statements in .h file if absolutely necessary if it isn't i use forward decraltions of the classes.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
|
You want just a link or a REAL implementation like the My Computer icon?
The link is simple placing a .lnk file into the users ?:\Documents and Settings\[username]\Desktop.
The other way requires a extending the explorer namespace (think twice before you say 'thats what i need')
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
I don't want a link obviously, that's why I put "shell extension" into my subject line
Andreas Saurwein wrote:
The other way requires a extending the explorer namespace (think twice before you say 'thats what i need')
I don't need it really. But I want it. Any pointers, articles...?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
|
fileName is the name of the file I just created some lines above the WinExec Command.
I have an Object f of CStdioFile type, I open it in creation mode, I write in it with f.WriteString and then close it. I want to launch a Notepad to preview its content, Notepad starts but the content of file is not displayed, if I click on File>Open>file name, it works and content is displayed .
Format of WinExec and content of fileName are correct because using the same instruction a the beginning of my routine (before open/write/close), I can start a notepad displaying the file previously created.
It is just like the file is not yet available for notepad even if a close is done ...!?
Any help is welcome
DD
|
|
|
|
|
Couldn't you open the file with nOpenFlags = CFile::shareDenyNone so that other apps have access to your file even when you have it open within your app?
Adam.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
I would like to precise that I have tried to open my file with CFile::shareDenyNone because I thought problem was coming from a conflict but result was the same ...
|
|
|
|
|
DD,
Are you opening the file with just CFile::modeCreate? I have just put together an app to try to recreate your problem on VC6. Everything works just fine but you can't write to your file if you open in CFile::modeCreate only. It has to be CFile::modeCreate+CFile::modeWrite.
e.g.
CStdioFile file;<br />
file.Open("c:\\filetest.txt", CFile::modeCreate+CFile::modeWrite+CFile::shareExclusive,NULL);<br />
file.SeekToEnd();<br />
file.WriteString("this is written\n");<br />
file.Close();<br />
WinExec("c:\\WINNT\\notepad.exe c:\\FileTest.txt",SW_SHOW);
works fine and dandy.
CStdioFile file;<br />
file.Open("c:\\filetest.txt",CFile::modeCreate+CFile::shareExclusive,NULL);<br />
file.SeekToEnd();<br />
file.WriteString("this is written\n");<br />
file.Close();<br />
WinExec("c:\\WINNT\\notepad.exe c:\\FileTest.txt",SW_SHOW);
fails at WriteString() and never gets to WinExec.
If you post the code that's causing you a prob then perhaps we could have a look?
hope this helps
Adam.
P.S. would recommend using ShellExecuteEx rather than WinExec as you can get a handle to Notepad to see when it has terminated.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
You don't need to use CFile::SeekToEnd
When you open the file you are creting the file, id for that you are in the end of the file....
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Cheers pal..
I was testing the code out using modeRead, modeWrite and some other combinations to see if I could recreate Qadddd's problem. I kinda left the SeekToEnd() in there by accident. Cheers anyway!
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
The code looks like this (I am at work, not at home and doesn't have my source code near me)
===========================
CStdioFile f;
char pFileName[] = "myfile.txt";
char buff[] = "test string";
f.Open( pFileName, CFile::modeCreate | CFile::modeWrite | CFile::shareDenyWrite | CFile::typeText); // tested with CFile::shareDenyNone instead of CFile::shareDenyWrite but it doesn't correct
f.WriteString(buff); // and more writings
f.Close; // supposed to close file and make it available
WinExec("Notepad.exe myfile.txt",SW_SHOW)
===========================
The same WinExec instruction put at the beginning of my routine works fine if I launch it a second time and the content of the file created during the 1st pass is correctly displayed ...
Hope it is a little bit more clear....
|
|
|
|