|
Thanks for your help !
It was useful !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I've modified the "IDR_MAINFRAME" and the "IDR_MYAPPTYPE" Icon but the modification are not show at run-time... I always see the MFC Icon dans the default Document one. Why?
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
|
|
|
|
|
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.
|
|
|
|
|
Your signature seems to be the DeCSS source, right?
|
|
|
|
|
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 ...
|
|
|
|
|
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?
|
|
|
|
|
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,
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|