Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jmnagi

    atof problem..

    sethmcdoogle <= it is valid only at variable declaration, only at application level [user mode] however. in this case, declaration and assignment are different instructions. besides, as mentioned in my previous post, we will get away with it in most compilers .. not always the case. br:
  2. jmnagi

    atof problem..

    inputstr="1234567890.1234"; atofret=atof(inputstr); printf(" Converted to : %14.4f \n",atofret); hi .. although you will get away with this in most compilers, don't do this without allocating memory first. you will seg fault. also, atoi, atof etc. explicity look for a NULL at the end...
  3. jmnagi

    Get Mac Address

    this is from the microsft web site. it works for me. use VC++ debug/release. #include <windows.h> #include <wincon.h> #include <stdlib.h> #include <stdio.h> #include <time.h> typedef struct _ASTAT_ { ADAPTER_STATUS adapt; NAME_BUFFER NameBuff [30]; } ASTAT, * PASTAT; ASTAT Adapter...
  4. jmnagi

    Volume information

    hi .. JOLSEN: i read from an IEEE journal that MAC address can be spoofed. so, i think MAC is not really a useful information in this regard. {i do understand that if anyone plays around with their MAC there are a lot of things that could go wrong}. WGCS: for example, if i have a string...
  5. jmnagi

    Volume information

    hi. i heard not all hard disks have serial numbers. is that really true ? i heard SCSI ones {most of them} don't have serial numbers. anyway, if i use &quot;GetVolumeInformation()&quot; how unique can i expect the volume serial number to be? i need to get some information from the computer...
  6. jmnagi

    Time limiting

    hi apatterno... you are a star .. and you deserve another star. thanks. yes, it does help. -- br: nagi
  7. jmnagi

    Time limited software

    hi allenv that was my line of thought. but there is still this problem. say start date: 20-05-2003 end date: 20-07-2003 i can scrable this and store it in the registry. this is not a worry. but what if {customer aware of the fact that s/he has a 2 month trial period} every two weeks the...
  8. jmnagi

    Time limiting

    hi.. assuming my software will be installed on a customer's machine on a 1-month trial basis, how do i enfore it ? i mean, when the 1st month is over, unless the customer buys my software, s/he is not allowed use of the software. i know how to stop the software/driver internally. the problem...
  9. jmnagi

    Time limited software

    hi.. assuming my software will be installed on a customer's machine on a 1-month trial basis, how do i enfore it ? i mean, when the 1st month is over, unless the customer buys my software, s/he is not allowed use of the software. i know how to stop the software/driver internally. the problem...
  10. jmnagi

    WM_QUERYENDSESSION

    hi sandrio ... i had fixed the fault a month back. BUT yes, you are *absolutely* right. the fault is that i had not bit tested the flag. it has been working properly. thanks for your help. br: -- br: nagi
  11. jmnagi

    Registry

    hi.. i have an &quot;oemsetup.inf&quot; file that installs the driver as a network adapter in Win NT. I know the driver is compatible in Win 2000. BUT the &quot;oemsetup.inf&quot; needs to be converted to a format that is understandable in Win 2000. There are a few parameters that need to...
  12. jmnagi

    porting codes

    I had the same question a while back. No replies yet mate :-) -- br: nagi
  13. jmnagi

    proving if a string is an integer, floating point number or neither

    hi ... there are two functions atoi and atof that can convert a string into integer and float respectively. i don't understand your question completely. but i hope these two functions can be of some help to you ??? -- br: nagi
  14. jmnagi

    Difference between DLL and SYS

    hi .. what is the difference between files that have a *.DLL extension and the ones with *.SYS extension ? how would you create each of them ? -- br: nagi
  15. jmnagi

    Porting NDIS driver from NT to Win2000

    Hi .. I have a NDIS driver written for NT {by my colleague} and I have to port it to Win2000. How different are they {NT and Win2000}. What problems can I expect ? What do I need to take into account when porting. Can anyone give suggestions/help or links to useful sites ? Thanks very much in...
  16. jmnagi

    hi.. in the MSDN library i see t

    hi.. in the MSDN library i see that WM_QUERYENDSESSION is sent when an application calls ExitWindows function. A window receives this message through its WindowProc fuction. The lParam value in its argument will indicate whether the user wants to log-off or shutdown. Also, the library...
  17. jmnagi

    WM_QUERYENDSESSION

    hi .. thanks for your quick reply. yes, i need to receive this message. my dll works fine in Win2000.. but it does not in Win XP pro. i am confused why it does not. i receive this message alright {i think} and i check for the lParam value this is what i have in win 2000: if (lParam == 0)...
  18. jmnagi

    WM_QUERYENDSESSION

    hi.. in the MSDN library i see that WM_QUERYENDSESSION is sent when an application calls ExitWindows function. A window receives this message through its WindowProc fuction. The lParam value in its argument will indicate whether the user wants to log-off or shutdown. Also, the library...
  19. jmnagi

    Newbie with pointers

    hi.. the syntax for prantf requires that you give out the address of the location pointed by the pointer. here is an example: char buff[20] = &quot;First line&quot;; char buff1[ ] = &quot;Second line&quot;; char *buff2 = &quot;Third line&quot;; To pass them on as parameters in your printf...
  20. jmnagi

    Help with fork() function !!

    hi quagsire .. that is not true. you can use it on any stream ... and it has, in my relatively long programming experience, never produced a result anything untoward or unpredictable. br: nagi

Part and Inventory Search

Back
Top