Search:

Type: Posts; User: krishnampkkm

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. How to check "struct tm" variable is empty?

    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...
  2. Ok. But how to increment pointer after calling...

    Ok. But how to increment pointer after calling function?
  3. How to pass a structure member to a function?

    struct msg_rsp
    {
    int count;
    struct info *info_entry;
    };

    void func()
    {
    struct msg_rsp *resp;
  4. Pass by reference a character pointer in c

    int mystrlen(const char *str)
    {
    int len = 0;
    while (*str++)
    len++;
    return len;
    }


    void main() {
  5. Declaring an array in C without giving size

    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...
  6. Replies
    1
    Views
    4,103

    Check for validity of IP address

    Hello
    I need the c code to perform the following "Given an IP address, check for validity of IP address".

    Thanking you
    Johny Liver
  7. :):):)

    :) :) :)

    Tanku
  8. Write a program to copy a file to a destination file using message queues.?

    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...
  9. Replies
    1
    Views
    2,084

    How to read drivetable.txt

    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...
  10. This may be due to a corruption of the heap

    Hiii.....


    when my program running


    this message comes..


    Windows has triggered a break-point in mypgm.exe
  11. Replies
    12
    Views
    5,799

    I cleared my code as follows DWORD...

    I cleared my code as follows



    DWORD dwPtr1=SetFilePointer(hDevice1,
    li_offset2.LowPart,
    ...
  12. Replies
    3
    Views
    904

    I wanna read some data from one place to another...

    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).


    ...
  13. Replies
    3
    Views
    904

    Any good example?

    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()...
  14. Replies
    12
    Views
    5,799

    If the function succeeds and lpDistanceToMoveHigh...

    If the function succeeds and lpDistanceToMoveHigh is NULL, the return value is the low-order DWORD of the new file pointer.

    DWORD WINAPI SetFilePointer(
    ...
  15. Replies
    12
    Views
    5,799

    hiii #define FILE_BEGIN 0 ...

    hiii



    #define FILE_BEGIN 0
    #define FILE_CURRENT 1
    #define FILE_END 2


    // the above are defined in <winbase.h>
  16. Replies
    12
    Views
    5,799

    but I can't set the file pointer....to write the...

    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...
  17. Replies
    12
    Views
    5,799

    Mr... You are correct....I corrected my code...

    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
    ...
  18. Replies
    12
    Views
    5,799

    I mean no compilation and link errors.. the code...

    I mean no compilation and link errors.. the code is doesn't give correct result I want.
  19. Replies
    12
    Views
    5,799

    ReadFile() and SetFilePointer Problems?

    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++)
    {
  20. Replies
    2
    Views
    3,628

    overlapped I/O and multi threading

    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 .?
  21. Replies
    2
    Views
    1,525

    How to get the sample code?

    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...
  22. Replies
    1
    Views
    1,570

    Any sample code availble?

    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...
  23. Replies
    2
    Views
    5,211

    How to convert string into LPCWSTR

    Hii

    How can I convert string into LPCWSTR




    struct FILELIST
    {
    string path;
  24. How to open a directory using createfile() ?

    Hiii


    How to open a directory using createfile() ?


    Any idea
  25. The function VirtualAlloc( ) is suitable to the following application...?

    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...
Results 1 to 25 of 29
Page 1 of 2 1 2