Search:

Type: Posts; User: jim mcnamara

Page 1 of 13 1 2 3 4

Search: Search took 0.68 seconds.

  1. Replies
    2
    Views
    1,098

    Re: Question about using a pointer

    FWIW:


    if(psan->pc == pcPAWN)
    {
    *sz = FilFromIsq(psan->isqFrom) + 'a';
    *sz++;
    }

    is equally obscure. 'a' evaluates to 97. So *sz becomes the sum of a function and 97. Why that...
  2. Replies
    3
    Views
    744

    Re: [serious] MIME decoder??

    http://pages.prodigy.net/michael_santovec/decode.htm
  3. Replies
    5
    Views
    550

    Re: Communication codes

    UNIX or Windows? are these serial devices?
  4. Replies
    8
    Views
    1,275

    Re: How to format this number ?

    #include <stdlib.h>
    #include <string.h>
    /* reverse a string */
    void str_rev(char *src)
    {
    if (*src)
    {
    char *p=src;
    char *q=strchr(src,0);
    while (--q > p)
  5. Replies
    5
    Views
    2,459

    Re: Question related to projectile motion

    Your parabolas should each have two x-intercepts, the points: where it starts, where it hits the ground. Solve each parabola for the x-intercepts (ie., y=0 or whatever y is at the impact point of...
  6. Re: checking which dll's an applicaiton is using

    I'm not postive about this but try dependency walker:

    http://www.dependencywalker.com/
  7. Replies
    10
    Views
    701

    Re: 4 digit number in C

    I think he means "bytes". A positive four bit number is 0 - 8.
    C example:


    #include <string.h>
    #include <stdlib.h>
    /* accept a postive number 0> 9999 error = return -1*/
    int...
  8. Replies
    12
    Views
    2,566

    Re: Average of a random variable

    Assuming I understand your question here is a discussion on analysis of the Weibull function:

    http://www.mathpages.com/home/kmath122/kmath122.htm
  9. Replies
    1
    Views
    403

    Re: Help with Hashing!!

    How are you handling collisions?
  10. Re: Odd Struct Problem resulting in Segmentation Fault

    malloc the array - don't put it on the stack as in auto (or local variable).

    getrusage() will return your stack use and limits, but you have to be able to run the code first.

    If you're running...
  11. Replies
    2
    Views
    346

    Re: Integration

    Try Numerical Recipes in C -

    www.nr.com
  12. Replies
    3
    Views
    811

    typedef struct s_mystruct { long var1; ...

    typedef struct s_mystruct
    {
    long var1;
    long var2;
    long var3;
    long var4;
    long var5;
    } mystruct;
  13. Replies
    3
    Views
    381

    What he is saying: all locally declared...

    What he is saying: all locally declared variables in C are parked on the user stack. So you have to start using some local variables. No choice. Global variables are sometimes used but cause you...
  14. Replies
    4
    Views
    1,246

    Your description is more than confusing. If I...

    Your description is more than confusing.

    If I get what you want try calling EnumWindows() from the parent process.
  15. Replies
    5
    Views
    484

    What platform requires you to save four bytes? ...

    What platform requires you to save four bytes?

    In *nix you can do something this if your compiler supports macros with two arguments:



    #define swap(x,y) { register int *i=*x; *x=*y; *y=*i }...
  16. Replies
    17
    Views
    736

    Okay from the top: In the C99 standard dynamic...

    Okay from the top:

    In the C99 standard dynamic arrays can be created in a function when the function is invoked:


    int myfunction(int arraycount){
    int myarray[arraycount];
    int i;
    ...
  17. Replies
    3
    Views
    372

    #include #include int...

    #include <stdio.h>
    #include <string.h>
    int main(int argc, char *argv[]){
    char string_array[100]={'\0'}; // create and zero out
    strcpy(string_array,"this is a test."); // put stuff...
  18. char array2[50];

    char array2[50];
  19. Replies
    16
    Views
    526

    As an aside you can do this: for(int...

    As an aside you can do this:


    for(int i=1;i<10;i++) {
    //
    }
  20. Replies
    3
    Views
    564

    The DX wrapper is called GetDriver. Thats' the...

    The DX wrapper is called GetDriver.

    Thats' the only GetDriver api call I know about
  21. Replies
    3
    Views
    564

    GetDriver just returns the name of the driver for...

    GetDriver just returns the name of the driver for the device.

    http://216.5.163.53/DirectX4VB/Tutorials/DirectX7/DD_Info.asp

    is some information using DirectX data strcutures.
  22. Replies
    1
    Views
    619

    Define overhead. Generally, the pointers...

    Define overhead.

    Generally, the pointers used to access heap memory are not allocated off the same heap segment. Anyone pointer is a longword. Even if you allocate an array in heap, the base...
  23. Replies
    42
    Views
    1,796

    Libraries implement different ways to get square...

    Libraries implement different ways to get square roots. Some use integer arithmetic because it's faster. They don't use Newton Raphson necessarily.

    Paul Hsieh's page has the state of the art. ...
  24. Replies
    6
    Views
    1,871

    Here is VBF example that opens Access. Call...

    Here is VBF example that opens Access.
    Call OpenProcess (better CreatePRocess) then WaitForSingleObject

    http://www.vbforums.com/showthread.php?s=&threadid=264266&highlight=shell+and+wait
  25. Thread: Sector 0

    by jim mcnamara
    Replies
    5
    Views
    772

    You can do it only using BIOS interrupt calls. ...

    You can do it only using BIOS interrupt calls. The Windows NT family does not allow programs to call BIOS interrupts, so it can only be done under Win9x.

    The most direct approach is to write a...
  26. Replies
    6
    Views
    516

    Here are C only implementations of find last bit...

    Here are C only implementations of find last bit set and find first bit set.



    int ffs(unsigned char src){ // find first bit set
    register int i=0;
    if(src) ...
  27. Replies
    6
    Views
    516

    ffs is find first set - the Rtl functions in...

    ffs is find first set - the Rtl functions in ntddk.h have a load of functions to find clear and set bits. In your case your probably want

    RtlFindLeastSignificantBit() This returns the actual bit...
  28. Replies
    5
    Views
    399

    The variable is stored on the user stack unless...

    The variable is stored on the user stack unless it is declared as static. CB got it right - you CANNOT depend on the variable existing after the function goes out of scope, even if it is declared...
  29. Replies
    3
    Views
    437

    The Dartmouth MPI library is designed for working...

    The Dartmouth MPI library is designed for working with integers of VERY large precision - it's free and is meant to work with C on
    under Windows and a bunch of *nix boxes.
    ...
  30. Replies
    10
    Views
    605

    Oh. If the db resides on the customer's machine,...

    Oh. If the db resides on the customer's machine, and has customer data in it and the customer wants to convert - this is completely legal.

    The customer owns the data. Not the competitor.

    It...
  31. Replies
    10
    Views
    605

    Which will work on older Jet db engines. Access...

    Which will work on older Jet db engines. Access 2000 cannot be "opened" that way.
  32. Replies
    4
    Views
    422

    VB Strings are BSTR in Windows C++, not an array...

    VB Strings are BSTR in Windows C++, not an array of char.
    This means they are unicode (two bytes for each string character)
  33. Replies
    3
    Views
    582

    Are you getting a GPF? Tell us what "crash"...

    Are you getting a GPF? Tell us what "crash" means.
  34. Try some simple C first - /* rev.c */...

    Try some simple C first -


    /* rev.c */
    #include <stdio.h>
    #include <sys/stat.h>
    #include <stdlib.h>
    off_t filesize(char *);
    int main(int argc,char *argv[]){
    char *buf;
  35. Replies
    10
    Views
    539

    Profilers are designed to tell you what...

    Profilers are designed to tell you what subroutines or functions take the most time. There are several out there for
    VB. Most are not free. A shareware version:
    ...
  36. The header of the mdb file contains the hashed...

    The header of the mdb file contains the hashed password. Access takes what you enter, hashes it, then compares the result to the hash that is stored in the file.

    If the db is an older version,...
  37. Replies
    2
    Views
    559

    You can't BitBlt label content - VB labels have...

    You can't BitBlt label content - VB labels have no hWnd. They are so-called static graphics - not windows. Since a PictureBox is a container you can get the captions for each label by iterating...
  38. You have to use CreateProcess() - Randy Birch's...

    You have to use CreateProcess() - Randy Birch's site has an example - he won't allow code copying to another forum so here is the link

    http://www.mvps.org/vbnet/code/internet/browserstart.htm
  39. If you are talking about window handles, use...

    If you are talking about window handles, use GetAncestor();
  40. The console responds to ANSI cursor postioning -...

    The console responds to ANSI cursor postioning - escape sequences.

    The full list is here:

    http://webcampus3.stthomas.edu/tpsturm/private/notes/qm300/ANSI.html
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width