Hello,
I have a struct tm variable named "file_timestamp" and I used it in different functions.
Two issues I face here,
Issue 1) Sometimes the date is printed (converted to string using...
Type: Posts; User: krishnampkkm
Hello,
I have a struct tm variable named "file_timestamp" and I used it in different functions.
Two issues I face here,
Issue 1) Sometimes the date is printed (converted to string using...
Ok. But how to increment pointer after calling function?
struct msg_rsp
{
int count;
struct info *info_entry;
};
void func()
{
struct msg_rsp *resp;
int mystrlen(const char *str)
{
int len = 0;
while (*str++)
len++;
return len;
}
void main() {
int main() {
int arr[] = {1, 2, 3, 4, 5};
}
Here we do not give array size. So how memory (20 bytes) allocated for arr?
By counting the numbers between comma(,) operators inside the curly...
Hello
I need the c code to perform the following "Given an IP address, check for validity of IP address".
Thanking you
Johny Liver
:) :) :)
Tanku
Write a program to copy a file to a destination file using message queues.
The server (writer process) has to split the data in the file appropriately
and send it to the message queue. There should...
Hii
I wanna read the file(drivetable.txt) and write into another file.It is content of System Volume Information folder.
HANDLE hFile = CreateFile(
L"C:\\System Volume...
Hiii.....
when my program running
this message comes..
Windows has triggered a break-point in mypgm.exe
I cleared my code as follows
DWORD dwPtr1=SetFilePointer(hDevice1,
li_offset2.LowPart,
...
I wanna read some data from one place to another place .....
For example my source and destination are separate partitions .but bot are of same file systems(NTFS).
...
Hhiii
I wanna to read and write data at same time.....
Currently I do one at a time ,so one is idle while another one perform operation.
So I use readfile() and writefile()...
If the function succeeds and lpDistanceToMoveHigh is NULL, the return value is the low-order DWORD of the new file pointer.
DWORD WINAPI SetFilePointer(
...
hiii
#define FILE_BEGIN 0
#define FILE_CURRENT 1
#define FILE_END 2
// the above are defined in <winbase.h>
but I can't set the file pointer....to write the read data
And my physical offsets are correct ,I verified them....
the physical offset is 58070509056
While using set pointer () the...
Mr...
You are correct....I corrected my code as below
DWORD dwPtr1=SetFilePointer(drive_handle,phys_offset,NULL,0);
if (dwPtr1 == INVALID_SET_FILE_POINTER) // Test for failure
...
I mean no compilation and link errors.. the code is doesn't give correct result I want.
Hii
In my program I'm reading the clusters in the volume using the appropriate physical offsets to the disk.
for( i=0; i< total_number_ of_ clusters;i++)
{
hii
After reading some articles I'm getting confused with these topics....
Actually both are same....? both are using for same purpose ?
Which is the fastest one .?
Hii
I wanna list all the files and folders of a particular drive.
Any sample codes available...for MS Windows
I got some codes from MSDN...but they are error-prone......
Give me a link to...
Hii
I wanna list all the files and folders of a particular drive.
Any sample codes available...for MS Windows
I got some codes from MSDN...but they are error-prone......
Give me a link to...
Hii
How can I convert string into LPCWSTR
struct FILELIST
{
string path;
Hiii
How to open a directory using createfile() ?
Any idea
LPVOID buffer1 = VirtualAlloc(NULL, 1048576 ,MEM_COMMIT,PAGE_READWRITE); // 1048576 = 1MB
Here I allocated memory of 1 MB.And in my application my data is 512 bytes blocks....So I've to...