|
so far, i only use VC 6.0 developing applications for all windows - so icon inside exe files, as you know, is 16 colors with size of 32x32 and 16x16 pixels.
i have 2 Questions:
1) which OS (i.e. XP) uses different exe icons? are they created by VC (what version of VC) also?
2) if an exe has different icon, does it work on all OS (even for win95)?
thx
includeh10
|
|
|
|
|
Windows 98, 2K and XP support 256 colour icons and XP supports 32bit colour icons (that have an alpha channel that gives the nice anti-aliasing effect)
Icons can be 16x16, 24x24, 32x32, 48x48, 64x64 or 96x96 (although most of the larger sizes will only really be used by XP)
Thanks to the way Windows handles icons, it doesn't matter if you have icon types that a particular version of Windows can't handle (i.e. if Windows can only handle 16 colour icons, then as long as your icon resource has a 16 colour version then it'll ignore the other versions and just display the one it can)
In other words, if you want your icon to look nice, then add 256 colour versions (which visual studio should be able to handle - easiest way is to make a 256 colour image in a paint program and paste it into the VC editor)
Making the antialiased XP style icons is a bit more complex though - there's an article here:
Clicky[^]
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
I need to make this to where the if statements only work if a number is entered. Otherwise it should go back to main(). I tried an else but it did not come out right.
This is a pointless program for math class but I have to do it. Thanks
#include "iostream.h"
#include "math.h"
///////////////////////////////////////////////////////////////////////////////////////////
int Y;
int A;
int X;
///////////////////////////////////////////////////////////////////////////////////////////
int main()
{
cout << "i to what power?\n";
cin >> X;
///////////////////////////////////////////////////////////////////////////////////////////
if (X >= 4)
{
Y = X % 4;
if (Y == 0)
cout << "iX = 1\n";
if (Y == 1)
cout << "iX = i\n";
if (Y == 2)
cout << "iX = -1\n";
if (Y == 3)
cout << "iX = -i\n";
}
if (X < 4)
{
A = X;
if (A == 0)
cout << "iX = 1\n";
if (A == 1)
cout << "iX = i\n";
if (A == 2)
cout << "iX = -1\n";
if (A == 3)
cout << "iX = -i\n";
}
main();
return 0;
}
|
|
|
|
|
HaXXeD wrote:
I need to make this to where the if statements only work if a number is entered.
Why not use isdigit() ?
HaXXeD wrote:
main();
Are you sure you want to recursively call main() ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
If there is a better way then that would be great. Recursively calling it doesnt hurt though.
|
|
|
|
|
there's a better way ... trust me, There's a better way.
go back to your books, and look up the different loops techniques.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
HaXXeD wrote:
Recursively calling it doesnt hurt though.
The reason recursively calling main() is not hurting, is that you are not calling it enough times to do so. It is a bad idea to use recursion, where a simple loop will do the job.
As a general rule: Never call main() recursively.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
What if i want to restart a program ?!?
-prakash
|
|
|
|
|
|
Other ways exist, from a simple loop to a more sophisticated (monitoring) service. But calling main() recursively should not be considered one of them.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi Friends,
I want to know how to add Barcode support to our MFC application. Thanks in Advance.
bbye
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
Are you looking for barcode printing or barcode reading? If you are interested in reading barcodes then all you need is a barcode reader. Most barcode readers use RS232 to transmit data from the reader to the pc. If you want to print barcodes then i would suggest you buy a third party barcode creator.
Best Of Luck
Forever Developing
|
|
|
|
|
Thanks for your Reply.
I actually want to read Barcode data from the Barcode Reader Hardware.
Thanks & Regards,
Deliver
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
( to add to the other answer )
doesn't the hardware barcode scanner come with an SDK that you can use ?
I don't know much about barcodes, but is it simply a unique number that gets scanned and used to track inventory items in a DB ?
Can you be more precise as what you need help with ? the hardware, the communication, the UI, the printing, the DB, ... ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
All of the bar code readers I have used use standard Serial Port (RS232) for communication. (Symbol/Welch Allen).
The barcode you are talking about are 1d barcodes. However, PDF417 (2d barcodes have the ability to store about 1900 bytes of binary data.)
Reading data from the Serial port is pretty trivial.
Wait for a single byte on the serial port. After reciving the first byte re-read on the Serial port for a Quater Second. You will now have all the data from the barcode. Do what ever you need to do with the inbound data. Go back to waiting for one byte.
Forever Developing
|
|
|
|
|
Thankyou very much for your reply.
I really appreciate you if u will please give me a small sample with explanation.
Thanks once again.
Deliver.
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
Are you still look for a sample?
Forever Developing
|
|
|
|
|
I search to scroll verticaly two differents view with the them scrollbar.
Thanks
|
|
|
|
|
humm, Did ya try posting the scroll message to the other view ?
-prakash
|
|
|
|
|
sorry
i'm find a code from list view section on codeproject (Synchronize 2 listview). But i search now to apply this solution for MS Access subform into a main form!!!!!
|
|
|
|
|
Can someone please tell me how to load and icon library(.icl) in VC++ ? I have heard they are 16 bit dlls. I have created a file mapping of the library. But when I try to use EnumResourceTypes API, it fails with error message "the specified file does not contain resource section". But the same file opens in VC++ resource edit and also in other icon editors.
Please help.
cythe
|
|
|
|
|
Hello!
I have two classes. In class 2, there ist a function call OnWriteStuff
Now i want to call that function which is in class 2 from class one. Take a look:
void CSampleView::OnDoWork()
{
CSampleDoc* pDoc = GetDocument();
POSITION pos = pDoc->GetFirstViewPosition();
while (pos != NULL)
{
CView* pNextView = pDoc->GetNextView(pos);
if(pNextView->GetRuntimeClass() == RUNTIME_CLASS(CVorschauView))
((CVorschauView*)pNextView)->OnWriteStuff();
}
}
but, it dont work, why?! How can I solve this?
thx in advance
|
|
|
|
|
Schniddel wrote:
but, it dont work, why?!
Without telling us what problem/error you are seeing, a guess is the best you could hope for.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
nothing happen
he don't call the function OnWriteStuff().
Maybe I'm on the wrong way. Can anybody tell me, how i can call a function, which is in an other view?!
greetz
Thorsten
|
|
|
|
|
Schniddel wrote:
he don't call the function OnWriteStuff().
How do you know? Have you set a breakpoint and stepped through the code one statement at a time?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|