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...
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...
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...
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...
When folders are shared across a network it is possible for a client to gain access to these folders and any executables within. If these executables are for example installation files and you run them, they install on your client machine and not on the server.
The OS is MS Server.. either 2000...
When folders are shared across a network it is possible for a client to gain access to these folders and any executables within. If these executables are for example installation files and you run them, they install on your client machine and not on the server.
Does anyone know how i might do...
I'm trying to use various interrupts in Win2000 (using Borland C 4.51). The interrupts are int25/int26(absolute disk read/write). However i can't use them because I get a protection error.. ok.. i now realise that Windows will not allow me to use these ints because of something called protected...
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.