|
I was able to get a patch from Microsoft and it did fix the pdfshell issues. Thanks for all your help!
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
"5 out of 4 people have problems with fractions." - Albert Einstein
|
|
|
|
|
Hi,
I'm trying to max the volume of the system sound (the one you access through settings) programmatically. I can use waveOutSetVolume to set the volume of specific sound device to max but this doesn't seem to work if the sound is set to min in the settings panel.
Is there some separate way to set the system sound on WinCE? Specifically, the "system sound" being the noise that the PDA makes when you tap the buttons and such, the "master" volume setting.
Thanks!
Kelly Ryan
|
|
|
|
|
Hi
Does anyone knows where I can find some library, or any way, to display JPEG images with C++?
Thanks
|
|
|
|
|
You could use the CImage class
|
|
|
|
|
GDI+ works well. You can find documentation for it on MSDN.
Kelly Ryan
|
|
|
|
|
CImage m_Image;
m_Image.Load(m_String);
m_Image.BitBlt(0,0,800,600,&dc,0,0,SRCCOPY);//CPintDC dc(this) in Onpaint function
m_Image.Detach();
|
|
|
|
|
I need a free font editor.
I do find several trial and free software by google, but I don't have any experiences about them, could you suggest a freeware for me?
cheers
|
|
|
|
|
I want to draw a clear thin line on paper by printer (or both on screen) for barcode purpose - the thiner, the better.
My questions are:
1.which MapMode I should use? I guess MM_LOENGLISH is not good enough.
Do you know if MapMode is changed by font file while printing font?
2.If line is black, how to draw it with anti-aliasing?
thx
|
|
|
|
|
1) You can use whatever mapping mode makes sense for your application and state of mind.
Obviously, if you're using MM_LOENGLISH , you won't be able to specify a pen width of less than 1/100 of an inch, so it won't work if you plan to draw lines thinner than that. Otherwise, just make sure you take the mapping mode into account when creating the pen you intend to draw with.
2) Don't. Anti-aliasing is helpful for CRT displays, as it allows them to make up for their relatively low DPI by using their ability to display a wide range of color and luminance values - it's essentially a trick. By contrast, most printers can produce much higher DPI, while having little or no ability to vary the darkness of a given dot. Attempting to anti-alias a printed line will at best have no discernible effect, and at worst make the line look sloppy. Just draw the line, it'll look just fine.
|
|
|
|
|
This is the array program I made last night.
<br />
<br />
#include iostream <br />
using namespace std;<br />
<br />
int main()<br />
{<br />
const size_t arsize = 27;<br />
int a[arsize] = {0,1,2,3,4,5,6,7,8,9,10,<br />
11,12,13,14,15,16,17,18,<br />
19,20,21,22,23,24,25,26,};<br />
<br />
a[0] = 'a'; a[1] = 'b';<br />
a[2] = 'c'; a[3] = 'd';<br />
a[4] = 'e'; a[5] = 'f';<br />
a[6] = 'g'; a[7] = 'h';<br />
a[8] = 'i'; a[9] = 'j';<br />
a[10] = 'k'; a[11] = 'l';<br />
a[12] = 'm'; a[13] = 'n';<br />
a[14] = 'o'; a[15] = 'p';<br />
a[16] = 'q'; a[17] = 'r';<br />
a[18] = 's'; a[19] = 't'; <br />
a[20] = 'u'; a[21] = 'v';<br />
a[22] = 'w'; a[23] = 'x';<br />
a[24] = 'y'; a[25] = 'z';<br />
a[26] = ' ';<br />
<br />
int input; <br />
string cool;<br />
int end = 99;<br />
<br />
cout << "Programmed By Cody Rentschler\n" << endl; <br />
cout << "Alphabit Array testing." << endl;<br />
cout << "Numbers 0 - 26 only." << endl;<br />
cout << "Input 99 to exit out of loop." << endl;<br />
<br />
for (int can = 0; can != 1000000; cool.push_back(a[input]))<br />
{<br />
cin >> input;<br />
cin.ignore(100,'\n');<br />
if (input == end)
{<br />
break;<br />
}<br />
<br />
if (input > 26)<br />
{<br />
cout << "Error: Number to big" << endl;<br />
cin.get();<br />
system("cls");<br />
return main();<br />
}<br />
<br />
if (input < 0)<br />
{<br />
cout << "Error: Number to small" << endl;<br />
cin.get();<br />
system("cls");<br />
return main();<br />
}<br />
++can;<br />
<br />
}<br />
<br />
cout << "\n\n\n\n" << endl;<br />
cout << cool << endl;<br />
cin.get();<br />
<br />
<br />
return 0;<br />
}
Is this and example of how an array works or am I
using this function wrong.
Just wondering because i'm trying to figure out how arrays work.
Or is there an easier way to do this same program?
|
|
|
|
|
|
#hackC++ wrote: ...am I
using this function wrong.
What function?
#hackC++ wrote: Or is there an easier way to do this same program?
First you need to explain exactly what it is that you are trying to do.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
What function?
The array function or whatever an array does (I don't understand arrays)
What I'm trying to do is that when I type the number that corresponds to it's place in the alphabit it will print whatever letter coreesponds to the number, to a string.
for example if I input 6, 4, 11, 11, 14 the program will output "hello".
Just wondering if this is the ideal way of doing this. (by ideal I mean using an array).
|
|
|
|
|
#hackC++ wrote: (I don't understand arrays)
Then I would suggest familiarizing yourself with them. See here.
#hackC++ wrote: What I'm trying to do is that when I type the number that corresponds to it's place in the alphabit...for example if I input 6, 4, 11, 11, 14 the program will output "hello".
That should be 7, 4, 11, 11, and 14.
#hackC++ wrote: Just wondering if this is the ideal way of doing this. (by ideal I mean using an array).
Not really. I would opt for something like:
int number;
std::cin >> number;
std::cout << (char) number << std::endl;
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
How can i save an array with its element and get it back after i shutdown and on the PC again?
My program is written in array of pointer.
Thanks
|
|
|
|
|
christinalimsw wrote: How can i save an array with its element and get it back after i shutdown and on the PC again?
Write the contents of the array to a file.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
That means it is possible to retrive them again, rite? thank you.
Hav a nice day.
|
|
|
|
|
Certainly.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I suggest
CArchive() and CFile to write in file
|
|
|
|
|
Hi,
I'm looking for a good tutorial which covers OOP basic(and more..).
I tried googling , but there are too much results.
Is there any recomended tutorial over the internet(for C++ programming)?
With best regards,
Eli
|
|
|
|
|
books better
Accelerated C++ Practical Programming by Example by Andrew Koenig and Barbara E. Moo.
Kuphryn
|
|
|
|
|
Please if anyone could tell me the code to add an application in VC++ to system tray......
Vigin George
|
|
|
|
|
codeproject[^] has plenty of articles about system tray...
hope one will help.
|
|
|
|
|
Try the article at: http://www.codeproject.com/shell/trayicons.asp[^]
Nothing is impossible, It's merely a matter of finding an answer to the question of HOW? ... And answering that question is usually the most difficult part of the job!!!
|
|
|
|
|
See this 1999 MSJ article:
CTrayIcon[^]
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|