the result looks like 1.#NF, and no divided by zero exception occurs.
ashxly
Posts
-
How to know whether a double value is valid or not?? -
How to know whether a double value is valid or not??Recently I find that my application always crashs with invalid double floating value, so I want to determine whether a double floating value is valid or not then I can do some extra work to avoid crashes. Can anybody tell me is there any function or method to known whether a floating value is valid or invalid?? Thanks a lot
-
fast GDI drawinghi everybody, can anybody give me a link or resource that might show how to draw large graphics more fast just like Microsoft MapPoint and illustrator?? thanks. abel.
-
drawing on child windowsI do some drawing on client area of main window, but some controls on main window covered the drawing. I have tried to use non-clipchildren style, but it doesn't work. Does anyone know how to solve the problem? Thanks
-
a problem about how to use a class in dlltry to use __declspec(dllexport) while declare class Exa: #define EXT_CLASS __declspec(dllexport) class EXT_CLASS ClassA : public X { ... };
-
standard scrollbar & scrollbar controlMailMonty, thanks for your reply, I have tried to use GetScrollRange but nothing happened, the min&max of the range are both zero but i want to get the range and scroll it exactly have you any good idea?
-
standard scrollbar & scrollbar controlsure, you are right but i want to get some information about the scrollbar(range,pos etc.) Do you know how can i do it??? thanks
-
standard scrollbar & scrollbar controlis there any way to determine a window has standard scrollbar or scrollbar control? in other word, how to scroll a window that does not belong to my app?
-
How to make multiple socket connection for a single port/addressplz try to use setsockopt() function with SO_REUSEADDR SOCKET sock; BOOL bReuse = TRUE; .... setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,&bReuse,sizeof(int)); ... bind(...);
-
how to make default parameters for method?can anyone show me how to make some parameter of a method as default. Like this: STDMETHOD(Test)(BSTR bsValue); how to make "bsValue" as a default parameter like in c++(Test(BSTR bsValue=NUU) Many many thx
-
qeustions on scrolling window?any ideas??? Waiting...
-
qeustions on scrolling window?recently, i found there is a useful feature in HyperSnap-DX 5, that is capturing the whole scrolled window content into a big bitmap, and I think it is very interesting and try to impliment it in VC,but i failed.I have tried to use ScrollWindowEx, WM_VSCROLL and others, does anynone has any idea on the problem? Best regard
-
hyperlink in text boxyou'd better custom-draw your edit control
-
how to get the paper namethank you Joel, it works using DeviceCapabilities function. very kind of you
-
how to get the paper namethank you CodeBrain, I do know the member of DEVMODE dmPaperSize identitify the dimension of the paper. but not very easy to get the size in strings. maybe the only thing i can do is mapping constants to strings by myself.
-
how to get the paper namerecently, i worked on printing program. can anyone help me how to get the name of a system pre-defined paper? such as : value 1 return Letter (8.5 x 11 in.) thanks
-
question about OLEDBthank you Steve, it works , the reason is the tablename begins with a digit. it's very kind of you
-
IP Address of own PC.... char host[80]; gethostname(host,80); LPHOSTENT lpHost; lpHost = gethostbyname(host); UINT ip = ((LPIN_ADDR)lpHost->h_addr)->s_addr; ....
-
question on OLEDB??recently i work on oledb&sqlserver, for some reason , i use many unregular table name just like guid, for example: 4DACE4ED-55A9-4F9C-9270-CE73CBF067F3. there is no problem on my computer at all, but yesterday i install the application on an other machine, it does not work anymore,so i debuged the program on that machine and found that creating table is ok, but error occurs while opening a table with such unregular name. can anyone please tell me what the reason? should i need any aditional package? many thanks
-
question about OLEDBrecently i work on oledb&sqlserver, for some reason , i use many unregular table name just like guid, for example: 4DACE4ED-55A9-4F9C-9270-CE73CBF067F3. there is no problem on my computer at all, but yesterday i install the application on an other machine, it does not work anymore,so i debuged the program on that machine and found that creating table is ok, but error occurs while opening a table with such unregular name. can anyone please tell me what the reason? should i need any aditional package? many thanks