Search:

Type: Posts; User: axr0284

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    6,030

    sorry for the late reply. I do not get any...

    sorry for the late reply. I do not get any warnings using round without the -c99 flag. I finally created my own round function. But thanks for the info.
    Amish
  2. Replies
    5
    Views
    6,030

    I used #include and when i compile I...

    I used #include <math.h>

    and when i compile I added the flag -lm

    I dunno what the c99 thingy is. Can someone explain more. Thanks
    Amish
  3. Replies
    5
    Views
    6,030

    using round from math.h

    Hi,
    I need to round a number. I tried using round from math.h but it's returning weird values


    double num1 = 0;
    num1 = round(2.67);
    printf("col = %f\n", num1);


    I am getting...
  4. Thread: printing hex

    by axr0284
    Replies
    2
    Views
    1,455

    Sweet that does the trick. Thanks a lot, Amish

    Sweet that does the trick. Thanks a lot,
    Amish
  5. Thread: printing hex

    by axr0284
    Replies
    2
    Views
    1,455

    printing hex

    Hi,
    I have a weird problem when printing hex values.


    #include <sys/types.h>
    #include <sys/stat.h>
    #include <sys/mman.h> /* mmap() is defined in this header */
    #include <fcntl.h>
    #include...
  6. Replies
    7
    Views
    2,286

    what you could do is open a new file for writing,...

    what you could do is open a new file for writing, write line 1 then copy the data from the other file in. Delete old file (using system function) and rename the new file. I know there is a function...
  7. Replies
    7
    Views
    1,327

    It does defeat the purpose of a private function...

    It does defeat the purpose of a private function if you can access it outside a class. You can use accessor and modifier methods to access them from the outside though
    Amish
  8. Replies
    25
    Views
    3,573

    post some code also

    post some code also
  9. Thread: dll testing

    by axr0284
    Replies
    1
    Views
    1,921

    dll testing

    Hi,
    I am having some issues with using dll. I have a program that loads home made dll at start up. The problem is that the program loads the dll correctly using loadLibrary() on the computer where...
  10. Thread: dll question

    by axr0284
    Replies
    2
    Views
    891

    how about public, protected?? Can I export a...

    how about public, protected?? Can I export a constructor of a class for example. How would I use that in the application that calls the dll. Thanks
    Amish
  11. Thread: dll question

    by axr0284
    Replies
    2
    Views
    891

    dll question

    Hi,
    I was wondering if I can export private function of a class found in a dll. Thanks
    Amish
  12. Thread: dll issue

    by axr0284
    Replies
    1
    Views
    1,517

    Figured it out. It would seem that ms vs 2005 was...

    Figured it out. It would seem that ms vs 2005 was not using the def file when linking the dll. Most probably name mangling was occuring. After forcing it to use the def file using...
  13. Thread: dll issue

    by axr0284
    Replies
    1
    Views
    1,517

    dll issue

    Hi,
    I am trying to call functions from a dll without any success.
    This is the dll setup:


    #define DllExport __declspec( dllexport )
    DllExport int _stdcall setupConnection(void) {
    ...
    }
  14. Replies
    5
    Views
    1,398

    Ok Figured it out. I would seem like...

    Ok Figured it out.
    I would seem like gethostbyaddr() expects the first parameter to be a binary representation of the Internet address. Therefore the following conversion needs to be used before...
  15. Replies
    5
    Views
    1,398

    Thanks for the reply. I tried everything that you...

    Thanks for the reply. I tried everything that you said and checked that the length passed to the function was correct this time but it still returns NULL. Error returned by WSAGetLastError() is as...
  16. Replies
    5
    Views
    1,398

    winsock problems

    HI,
    I have been trying to get sockets to work but for some reason it does not work:


    const char *ip_address = "127.0.0.1";

    client=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);...
  17. Replies
    6
    Views
    2,602

    I think it comes from windows.h. Try to include...

    I think it comes from windows.h. Try to include that. Not too sure though
    Amish
  18. Replies
    6
    Views
    2,602

    check msdn:...

    check msdn:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceseril/html/ceconserialcommunicationfunctions.asp

    it has all the functions

    Use createFile to get a handle to the...
  19. Thread: Linker Errors

    by axr0284
    Replies
    1
    Views
    3,085

    check that the IDD_ for the two classes is...

    check that the IDD_ for the two classes is different. Check any similarities between the classes that might confuse the compiler
  20. do this objectTest = new object[numOfObjects];...

    do this

    objectTest = new object[numOfObjects];

    instead of this

    object* objectTest = new object[numOfObjects];
  21. Replies
    1
    Views
    1,893

    The problem was that when creating the program in...

    The problem was that when creating the program in ms vs 2005, the unicode libraries were used instead of regular ones . In that case Cstring would become CstringA.
  22. Replies
    1
    Views
    1,893

    weird CString problem

    Hi,
    I have just encountered a problem that is confusing. I have used Cstring before in mfc applications and it has never given me any issue but in a new project I am getting this error:

    error...
  23. using socket to communicate between programs on one computer

    Hi,
    I have to separate programs. Usually they would be located on different computers and communicate between themselves using the CSocket class. My question is for testing purposes, can I run the...
  24. Thread: Threads, Dll

    by axr0284
    Replies
    7
    Views
    1,347

    You should probably close the dll when you're...

    You should probably close the dll when you're done. Maybe that's what giving you mem leak.
    Amish
  25. Replies
    6
    Views
    3,612

    you could just add IDD_ABOUT to resource.h...

    you could just add IDD_ABOUT to resource.h followed by a number that is greater that the greatest number currently in resource.h. Make sure there is no two numbers being the same.

    The IDD_ snd...
Results 1 to 25 of 205
Page 1 of 9 1 2 3 4