|
Each icon ID consists of two icons- a 32x32 and a small 16x16. Theres a combo box in the icon editor to select between them. Chances are you've only changed the large one, but its actually the small one that is used in most situations. Edit those and rebuild.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
thanks,
yes, it was just that
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
|
|
|
|
|
Hi, I`m just starting to develop some TWAIN compatibility in my program for scanners etc. but I haven't got a clue where to start, can anyone give me some good links to the information I would need to successfully implement TWAIN? I would obviously prefer somewhere that offered it for free.
Many Thanks,
Alan.
|
|
|
|
|
EZTWAIN (http://www.dosadi.com/eztwain1.htm) is free. you might give that a look.
-c
#define O 0.05
#define I(c) putchar(c)
main(){int I(int);double l[6];char lO[5];for(*(lO+1)=0;*(lO+1)<'2';I(0x0A),(*(l+5))=-25*O+((*(lO+1)
)++)*O)for((*(lO+2))=0;(*(lO+2))<'2';(*(l+4))=-40.*O+((*(lO+2))++)*O){for((*(l))=(*(l+1))=0,
*(lO)=1;++*(lO)&&(((*(l+2))=((*(l))*(*(l))))+((*(l+3))=((*(l+1))*(*(l+1))))<4.);(*(l+1))=(*(
l))*(*(l+1))+(*(l+5))+(*(l+1))*(*(l)),(*(l))=((*(l+2))-(*(l+3)))+(*(l+4)));I((*(lO)?42:0x20));}}
|
|
|
|
|
Thanks Chris, its just what i need. I have, since asking the question, also managed to find a TWAIN wrapper on this very site, for anyone wanting an alternative.
Many Thanks Chris,
Alan.![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
Your signature seems to be the DeCSS source, right? ![Big Grin | :-D](https://www.codeproject.com/script/Forums/Images/smiley_biggrin.gif)
|
|
|
|
|
Sorry, don`t know what you mean by "DeCSS source", so i`ll have to say no and let someone else claim credit.
AEGC
|
|
|
|
|
If somebody could help me....
How to get count of all threads for a process in?
Or may be even more info? Like enum
Even those that are spawned by inproc com servers (ocx)
for internal use ...
![Confused | :confused:](https://www.codeproject.com/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
CreateToolhelp32Snapshot, Thread32First and Thread32Next if you don't have to run on NT4.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I am having problems adding a dialog to a static library.
I have created a static library with MFC support, and then went to the menu and selected insert/resource which gave me a dialog to work with. However I want to assign a class to the dialog and do things with it, but The class Wizard option is unselectable. any ideas please??
cheers
Andy
|
|
|
|
|
How would I do this?? Any pointers
Thanks in advance,
Dan
|
|
|
|
|
|
Hi
What's the easiest way to start an application and wait until it has finished?
Should I use ShellExecute or CreateProcess?
And should I use a timer to check if the app has finished or is there a better way?
regards
|
|
|
|
|
Use WaitForSingleObject with a handle returned by CreateProcess. ShellExecute doesn't return the handle, but you can use ShellExecuteEx.
Your thread will be stopped until the spawned process runs.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I'm a bit confused about the use of ADO and the use of SQL. I have an application that uses a database, which database depends on the users configuration but almost always it's either MSAccess or MSSQL or Oracle SQL server. I have up till now used a sql string to create a recordset but now I'm beginning to wonder if this is the way ADO is meant to be used.
If someone would explain the pro and cons of using SQL contra 'ADO internal' I would appreciate it!
// Mike
|
|
|
|
|
Is this a bug?
I tried this function overloading with Turbo C++ 3 & VC++ 6 and both produced the same error of ambigous call:
float Op (float X, float Y, float Z)
{
...
}
int Op (int X, int Y, int Z)
{
...
}
1) Op (3.0, 6.0, 9.0);
2) Op (3, 6, 9);
The compiler said that the (1) function call is ambigous despite the fact that the parameters have decimals. I tried this:
3) Op (3.1, 6.1, 9.1);
with the same result. But by specifying even the first element's type, the compiler did not complained (and called the correct function):
Op ((float) 3.0, 6.0, 9.0);
How come the compiler does not recognize the decimals of the parameter as float? Also after placing decimal values > 0 (as in the (3) function), the compiler still would not consider the parameters as float.
Is this a BUG?
![Confused | :confused:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
A floating point literal (like 3.0) has the type double , not float .
|
|
|
|
|
So does this mean that even though the other overload function's parameter is discreet (char, int, ...; non-Real), the compiler while still be confused between choosing a discreet and a real overload?
Is there a way (or rather, a numerical representation of a number) to tell the compiler to use FLOAT without TYPECASTING?
ThanXs,
![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Use:
function(0.3f, 0.6f, 0.9f);
This forces the compiler to look at those numbers as floats instead of doubles.
J
|
|
|
|
|
Conversion from double to float can lose precision or overflow. So can conversion from double to int. That's why the compiler considers tham eqully bad and complains about ambiguity. Use the suffix "f" or "F" to tell that a literal number is a float , e.g. 3.0F or 1e6f .
|
|
|
|
|
I've been using a bit of STL here and there for the past year, but being a bit of hacker have probably been using it incorrectly.
What is the correct way of using strings so that they work for UNICODE and ANSI? What function should I use to get the data out of the string to pass it to a Windows API function?
Michael ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
string and wstring are the specializations of basic_string template. Use first with ANSI, second with Unicode.
What function should I use to get the data out of the string to pass it to a Windows API function?
If you just want to pass a const char * pointer, use string::c_str - you can pass this to API functions expecting LPCTSTR. I'm not sure if it's possible to use string as a buffer writable by API.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
So I have to do my only #ifdef UNICODE and define mystring as string or wstring?
Is there any difference between the c_str method and the data method of string?
Thanks for you answers,
Michael ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
So I have to do my only #ifdef UNICODE and define mystring as string or wstring?
Yes. Or you can go fancy and use TCHAR:
typedef basic_string<TCHAR, char_traits<TCHAR>, allocator<TCHAR> > mystring;
Is there any difference between the c_str method and the data method of string?
Yes - data() doesn't guarantee that you'll get the terminating null character. If the string is empty, data returns "a non-null pointer that cannot be dereferenced" according to docs that shipped with VC6
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hello, I've no clue on how to print a specific area of the form on my SDI App. The view class is dialog based. The reason I need to do this is because it has to look the same on the document as on the form - the form has 46 static controls with text and 46 edit boxes - so I have no clue how to print them exactly as they are placed
Any help appreciated,
Deian
|
|
|
|