|
Download it from here[^].
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
You beat me to it!
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
It's called the Graphics and Multimedia Services SDK. But it seems to be available only as part of the Core SDK. Get it from the SDK Update[^] center.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I need to create more than one text box with the same name(this call array),with the code;
for i = 1 to CInt(request.Form("quantity"))
count = count + 1
serial_field = "serial"&count
end loop
then, when I need to check whether user already fill in this text box, I can not access that text box name.Text box name suppose to be serial1, serial2 and so on.I am using this code;
for (a=o;a<=30;a++){
if (document.Reg.element.serial[a].value == "") {
err = true;
msgstring = "Fill in serial number";
}
}
I can access the value only if I directly use the name like;
if (document.Reg.element.serial1.value == "") {
err = true;
msgstring = "Fill in serial number";
}
Any suggestion what I should do to solve this problem. I am sorry my explanation is quite massy.
Thanks
|
|
|
|
|
I wish I could help you but I don't know Javascripts. On the other hand, this is a C++ forum, so your question might not find an answer here. Please don't get offended by this.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
I don't know Javascripts
I do, but I'm not going to help anyway. We don't really want to encourage posts in the wrong forum
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am sorry guys, I wrongly post to visual c++ forums.
anyway thanks
|
|
|
|
|
No problem . Have a nice day, or night or whatever it is there
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Try the Web Development[^] forum
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
When I used the C++ builder's tool named coff2omf.exe to
transform the COFF lib to OMF lib ,I find that the former
204 k file has change to 512 byte.why??
a good man in china
|
|
|
|
|
What system calls under MFC do you need to make to determine how many colors are being used by the system?
I am trying to determine hoe many colors are being displayed with the current settings (ie the number of colors you pick when you right click on the desktop and select Properties...Settings...Colors)
I want to set the background color and font color for a dialog box, but only if the user is running at least 16 bit colors because it looks like crap on a 256 color display.
I'm going to live forever or die trying!
|
|
|
|
|
Create a device context and use GetDeviceCaps() .
CClientDC dc(NULL);
int bitdepth = dc.GetDeviceCaps(BITSPIXEL); This will return the number of bits per pixel the screen is currently using.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Crap! You beat me to it! (and using a much better method too. dammit!)
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Actually your method is the correct one to use for multiple-monitor support.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Atlantys wrote:
You beat me to it!
Don't you hate it when that happens
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Super nice!
Thanks.
I had another question on this:
Is this bulletproof or is it a heuristic?
Is there no OS level call to get this information?
Just curious - your answer works perfectly.
I'm going to live forever or die trying!
|
|
|
|
|
It will always work for the primary display. If you are using multiple displays, you'll need to use EnumDisplaySettings() as pointed out in another answer. Use ENUM_CURRENT_SETTINGS to return the current settings. The dmBitsPixel member of the DEVMODE structure will give the number of bits per pixel:
DEVMODE dm;
dm.dmSize = sizeof(DEVMODE);
EnumDisplaySettings(lpszDeviceName, ENUM_CURRENT_SETTINGS, &dm); lpzsDeviceName is the name of the device (returned by EnumDisplayDevices() ), or NULL to use the primary device.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ha! So, I was late, but I was more right! ;P (is that even possible? ) You were just more exact, providing example code.
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Atlantys wrote:
Ha! So, I was late, but I was more right!
Rub it in, why don't ya!
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Just padding my post count.
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Atlantys wrote:
Just padding my post count.
I'm not even going to answer that.
Oh hold on a minute, I am... Doh!!
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I've got to get to 1K somehow, eh?
I bet if we continued this, Chris'll probably not be too impressed. Then again, this thread is buried deep in some obscure forum.
:looks up, checks the forum title: "Visual C++":
Doh! :homerdoh:
(someday, Chris'll put in a homerdoh smiley... but I figure he's got enough of his plate already).
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Ryan Binns wrote:
lpzsDeviceName is the name of the device (returned by EnumDisplayDevices()), or NULL to use the primary device.
You just answered another question I had - nameley what driver name do I use? I was looking at examples and they used device names of "Epson" and I was like Moe on the Simpsons when I saw that "HuuuuuuuuUUUUUUUUUHH?!?!?!?"
Many thanks (and to you to Atlantys)!
I'm going to live forever or die trying!
|
|
|
|
|
tnolley wrote:
You just answered another question I had
I love it when that happens
tnolley wrote:
any thanks
You're welcome
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Try: EnumDisplaySettings, and check the dmBitsPerPel member of the DEVMODE structure.
It's all in the MSDN.
"dmBitsPerPel
Specifies the color resolution, in bits per pixel, of the display device (for example: 4 bits for 16 colors, 8 bits for 256 colors, or 16 bits for 65536 colors). Display drivers use this member, for example, in the ChangeDisplaySettings function."
HTH
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|