|
David Stone wrote: There are non-C# forums?!
Offcourse
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Oh right...like people actually use that language...
Once you wanted revolution Now you're the institution How's it feel to be the man?
|
|
|
|
|
IIUC, the manifest is embedded in the executable in its resources. You should be able to examine the resulting executable by opening it as a collection of resources and looking for the manifest file. There is a specific resource type (RT_MANIFEST , value of 24 ) that you can look for.
This is one way to "XP-ify" an executable built using VC++ 6.0 so that it uses the new common control's and functionality available on XP (like the Caps Lock warning on password -styled edit controls).
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post... appropriately!)
|
|
|
|
|
I want to design a software which draw shape.
but the edge style of shape have more style, rather other
GDI pen defined style(PS_SOLID,PS_DASH..)
for example, I want to have a SOLID_DASH style,
it means one Solid line and one dash line combination.
when I use this pen style to draw line with mouse, the effect is
one solid line and one dash line together.
just like word , you create a line with lineType - two line, you will get two line effect.
this is what I want!
|
|
|
|
|
One thing you can do is that create a simple line and underneath / above that line (say oneor two pixel's up/down)you can create a dashed line at the same moment when you are creating a simple line. This will give the desired effect.
Somethings seem HARD to do, until we know how to do it.
_AnShUmAn_
|
|
|
|
|
I know what you mean.
but I want to know how to desgin pen class(SPen)
then when a shape(line) call draw function like below
void draw(CDC* pDC){
int step = 0;
for(int i=0;i<pen.count();i++)
{
="" pen="" object="" is="" shape.spen="" instance
="" cpen="" gdipen(pen[i].linestyle,pen[i].linewidth,pen[i].linecolor);
="" cpen*="" poldpen="pDC-">SelectObject(&gdiPen);
pDC->DrawLine(startPoint+step,endPoint+step);
step+2; // for temp code
pDC->SelectObject(pOldPen);
}
}
|
|
|
|
|
How can i get current CPU usage and CPU temperature?
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
Thank you for your responce, but it is CSharp code, but im looking for Visual C++ code.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
|
|
I have an MFC application. I want to pop up outlook send message dialog with the data filled from my application.
For example: the mail id, Subject, CC, Body of the mail send dialog must be filled from my application
How i do this? Please shares idea/codes
|
|
|
|
|
You can create your own pop up window that you can show if the mail is sent successfully from your application. You don't need to depend on Outlook for that.Use MAPI functions to send the mail
Somethings seem HARD to do, until we know how to do it.
_AnShUmAn_
|
|
|
|
|
anilFirst wrote: I have an MFC application. I want to pop up outlook send message dialog with the data filled from my application.For example: the mail id, Subject, CC, Body of the mail send dialog must be filled from my applicationHow i do this? Please shares idea/codes
you can try SMTP classes like :-
http://www.codeproject.com/internet/csmtpconn.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi all
I created a CEdit object and I wanted to change the color of the scroll bar in the edit.
but I can't get the handle of the scroll bar
please tell me how to get it if someone know that
thank you~
-- modified at 23:06 Thursday 11th May, 2006
|
|
|
|
|
The scroll in CEdit is a built in scroll bar.. its just a painiting..u cannot get the handle of CEit scroll bars..
If u want to Change the color of the Scroll bar in CEdit better u remove the scroll of CEdit and place your own scroll bar..
Another option is to use Detours check out the sample out herehttp://www.codeproject.com/dialog/coolscroll.asp[^]
nave
|
|
|
|
|
I got it
Thank you ~ nave
|
|
|
|
|
i'm reading data from a machine which gives me the data in small chunks, sa 64 bytes (the size varies). i want to write this to a file. the total data can be megabytes in all...so i know writing each chunk of data that comes to me won't be a nice solution (slow).
so i'm thinking of having a bit bigger buffer. wait for that to be filled up, then write it. im sure this will work, but it seems like too much to do for a problem that should happen often. is there any existing solution in the API perhaps?
|
|
|
|
|
ilidan wrote: but it seems like too much to do for a problem that should happen often.
you must mean "should not happen often"?
ilidan wrote: but it seems like too much to do
I certainly would not consider buffering output "too much to do"? There is not that much to it.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
led mike wrote:
you must mean "should not happen often"?
ah well, i work a lot with hardware and this happens often. everything's relative, i guess.
led mike wrote: I certainly would not consider buffering output "too much to do"? There is not that much to it.
i guess. i just half-expected there'd already be some class that i can pipe output to ("<<") and it'll automatically manage the write buffering to a file.
anyway, thanks. i should start writing the code.
|
|
|
|
|
it seems CArchive does do this.
|
|
|
|
|
ilidan wrote: i guess. i just half-expected there'd already be some class that i can pipe output to ("<<") and it'll automatically manage the write buffering to a file.
My bad. I did not catch that at all. Yeah the stl streams will do that for you.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
use fopen or CStdioFile.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
At the lowest level, the least part of information that can be read from, or written to the physical disk is a sector (normally 512 bytes).
So whatever file I/O functions you are using, the runtime will buffer the data for you.
(For completeness sake, there are ways to write directly to the disk, but that's not the issue here).
|
|
|
|