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 strongm 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. shanlon

    adding a LARGE_INTEGER to a ComboBox

    How do i display a variable of size LARGE_INTEGER in a listctrl. What i'm doing at the moment is adding 32bit integers to the listctrl by using sprintf to store the int in a string which i then pass to the function CListCtrl::SetItemText. This works fine but i cannot sprintf a LARGE_INTEGER to a...
  2. shanlon

    How to create app that doesn't show screen output

    thanks for that Arowana... I've just thought about what my original question and concluded that it doesn't ultimately need to show nothing to the screen. It's going to be a server application that is listening for a client to connect.. when the client connects it sends back messages and such...
  3. shanlon

    How to create app that doesn't show screen output

    Is there an option in VC++ to create an application that just does some function without displaying a screen.. i want to run this application on a server from a client machine and then have it disappear without the user having to 'press any key to continue' as is the case with creating a Win32...
  4. shanlon

    sending data over sockets in MS VisualC++

    it's an easy task to send a string from one machine to another using sockets. At the moment i'm using CAsyncSocket to do this and it works fine... How would one send data such as a structure that is eg 1MB big? Sending strings seems to be simple because they are not terribly long so you can...
  5. shanlon

    MFC Dialogs and Header Files

    I've recently made a simple GUI that i want to add extra code to. I don't want to add the code directly to a button click event ..instead i would prefer if the specific onbuttonclick function called another function to do the work. This other function is in a different Cpp file that is added to...
  6. shanlon

    How to refresh drive information in Windows2000

    Can anyone tell me how to get Windows2000 to refresh it's hard disk information. I have an application that will disable a particular hard drive.. the only problem is that Explorer still has the drive listed as a visible drive.. ie the icon for this drive is still displayed. It is also...
  7. shanlon

    How to Reboot..????

    Palbano.. that code looks just fine. I'll give it a try and let you know what happens. Thanks, Shane.
  8. shanlon

    How to Reboot..????

    Palbano.. thanks for your reply. I have read the documentation on ExitWindowsEx API and it is pretty clear. I still get an error because i don't have neccessary privileges. Like i replied to Gorecki, i think i have to adjust the users rights but this involves getting a handle to the token which...
  9. shanlon

    How to Reboot..????

    Gorecki..(Brian), i am logged on as the administrator while i run the program. I have used the getlasterror function and it tells me that i do not have the proper privileges to reboot the machine. I need to be an administrator for other parts of my app to work. The OS used is Windows2000 Pro and...
  10. shanlon

    How to Reboot..????

    Gorecki, i have tried using the above but with no result. The only parameter i have any success with is EWX_FORCE which results in logging out and loggin back on again automatically as the same user. I printed out the error values and it seems that i don't have the privilege of using the other...
  11. shanlon

    How to Reboot..????

    thanks.. i'll give it a try and see what happens.
  12. shanlon

    How to Reboot..????

    Does anyone out there know how to reboot a machine from within a program. I just want to perform some basic task and then automatically reboot.. i don't need control to return to the calling function after reboot either.. just end the program and restart. There is info in MSDN but this would...
  13. shanlon

    How to use VirtualAlloc!

    I've recently being trying to use various functions from Platform SDK in my application.. such as CreateFile, ReadFile etc. MSDN warns that any input and output buffers must be aligned on addresses in memory that are integer multiples of the volume's sector size. It recommends using VirtualAlloc...
  14. shanlon

    What partition belongs to what physical drive??

    Can anyone tell me how to find out what partitions belong to what physical drives. I've thought about manually reading the bootsectors of each drive to see their volume labels and then comparing them all thus finding out which partitions belong together. Eg D:\ bootsector might have same vol...
  15. shanlon

    CreateFile problem!

    Could anyone tell me what is wrong with the following piece of code: HANDLE hDriver; hDriver = CreateFile("\\\\.\\E:", GENERIC_READ, FILE_SHARE_READ,0,OPEN_EXISTING,0,0); The problem is with the string as far as i know because when i call the ReadFile function...
  16. shanlon

    Source for IDEA Encryption

    that's ok.. the book is enough.. i there are a few small bugs in the code.. nothing major.. the compiler picks them up easily enough. thanks for the help.
  17. shanlon

    Source for IDEA Encryption

    Thanks for the info.. i have since found a book by Bruce Schneier..(don't remember the title) detailing encryption algorithms including IDEA. It also provides full source code. As far as i know the key isn't limited to a certain size as it is in the version i downloaded from the site you...
  18. shanlon

    Printing __int64;

    How does a person print an variable that is __int64 big.. using printf with the %d conversion character will print __int8, __int16 and __int32 but not the __int64. I know it all depends on whether the compiler supports __int64 sized variables but i presume it must since i don't get an error when...
  19. shanlon

    Source for IDEA Encryption

    Does anyone have source code for IDEA encryption??? The simpler the format the better ... i have already various .DLL files and .LIB files but this is just a bit too complex for me. A C++ file or 2 and header files is really what i'm after. Nothing I have is complete and i don't have the...
  20. shanlon

    Calling a Program on a Server from a Client.

    Sorry about that.. just lost my way.. how can i remove this thread. If you want and are able to, you can remove this because i've started a new thread in another forum. Once again, sorry.

Part and Inventory Search

Back
Top