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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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...
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.