Search:

Type: Posts; User: leiming

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. what I want to solve is the situation that the...

    what I want to solve is the situation that the dll comes without lib or not usable with the compiler I'm using

    http://dl.dropbox.com/u/5740653/dllstdfix_20100415.7z

    bug fixed.

    I wonder if I...
  2. Linking to DLL without LIB and call it's function of stdcall

    Hi,
    recently I learning about creating and using DLLs.
    I learned that it's very common to declare function as __stdcall.
    but then I found a problem that it's hard to link with DLL without lib....
  3. Replies
    9
    Views
    1,652

    Ah, I was asked to make a minesweeper at the...

    Ah, I was asked to make a minesweeper at the beginning of this term by accident;
    but I was trying using Windows API to do that.
  4. Replies
    6
    Views
    1,222

    I mean if that shall work when b and c are bound...

    I mean if that shall work when b and c are bound to another pointer, this is the only way I can find.

    It has no other meanings. And because English is not my native language; if there are...
  5. Replies
    6
    Views
    1,222

    I just try writting some codes to reach it: ...

    I just try writting some codes to reach it:


    #include <iostream>
    using namespace std;

    class myintpointer{
    public:
    myintpointer(){
    p2 = 0;
  6. Replies
    16
    Views
    4,829

    I have come up with an idea, is it because that...

    I have come up with an idea,
    is it because that a is only a pointer to 2 bytes so the compiler doesn't think it has effect beyond the 2 bytes to assign a value to pointer a
  7. Replies
    6
    Views
    1,222

    About the second question, using: int* &b = a;...

    About the second question, using:

    int* &b = a;
    int* &c = b;
  8. Replies
    16
    Views
    4,829

    1111 1111 1111 1111 2222 1111 2222 2222 ...

    1111 1111
    1111 1111

    2222 1111
    2222 2222

    2222 2222
    2222 2222

    Gcc 3.4.5 if -O2 is turned on
  9. MySQL has 2 licences. One for those who...

    MySQL has 2 licences. One for those who distributes his program under GPL, it's free. But if you don't distribute your program under GPL, you have to purchase it.

    By the way, SQL Server 2005...
  10. Replies
    7
    Views
    20,852

    I guess uchar16 is for storing UNICODE char....

    I guess uchar16 is for storing UNICODE char.
    about the uchar, I have seen it in "sqlext.h", the SQLCHAR is unsigned char in fact. maybe it will be used to store a byte ranging from 0 to 255.
  11. Replies
    6
    Views
    1,111

    z is private for derived, so it can access z.

    z is private for derived, so it can access z.
  12. Replies
    14
    Views
    2,001

    >>ssharish2005 Thanks for your explaining. ...

    >>ssharish2005

    Thanks for your explaining.

    But I knew this before. Maybe I didn't express myself clearly. (Sorry to not learn English well)
    I mean, an empty line couldn't end the loop if using...
  13. Replies
    14
    Views
    2,001

    I find a problem with * in scanf format. BCC...

    I find a problem with * in scanf format.
    BCC thinks this is a successfully read one while GCC not.


    Excuse me, why did I find fgets returns an array {'\n', '\0'} instead of NULL when an empty...
  14. Replies
    14
    Views
    2,001

    I'm sorry that I find my way to flush input...

    I'm sorry that I find my way to flush input buffer is seriously wrong.

    try this?


    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>

    typedef struct Node {
  15. Replies
    14
    Views
    2,001

    #include #include #include...

    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>

    typedef struct Node {
    char string;
    struct Node * next;
    }Node;

    int main()
  16. Replies
    4
    Views
    3,217

    int_array=realloc(int_array,size1); You forget...

    int_array=realloc(int_array,size1);

    You forget to multiplus sizeof(int) to size.

    LeiMing.
  17. Replies
    4
    Views
    2,267

    this is the code I tested: #include ...

    this is the code I tested:

    #include <stdio.h>

    struct student {
    int ID;
    char Name[50];
    char Date[10];
    float Min_temp;
    float Max_temp;
  18. Replies
    4
    Views
    1,207

    Maybe using string is a way int array[3] =...

    Maybe using string is a way


    int array[3] = {1, 2, 3}, num;
    char temp[4];
    for(i = 0; i < 3; i++)
    temp[i] = array[i] + '0';
    temp[i] = 0;
    num = atoi(temp);
  19. Replies
    7
    Views
    2,981

    Thank you all the same. In the past month I used...

    Thank you all the same.
    In the past month I used VS 2005 Express but recently I want to try something new so I turn to GCC.
  20. Replies
    7
    Views
    2,981

    Windows XP. More exactly, mingw, not cygwin. ...

    Windows XP.
    More exactly, mingw, not cygwin.

    Do you have any ideas?
  21. Replies
    7
    Views
    2,981

    yeah, If I can get that result, it is enough. I...

    yeah, If I can get that result, it is enough.
    I use GDB on mingw, too.
    I have another try, use "s" to go into a sub-function that array "a" is passed into, then I can see it. But in function "main"...
  22. Replies
    7
    Views
    2,981

    troubles in using GDB

    Hi, there.
    Today I use gdb to debug my homework but I meet troubles.
    it's a program that get two arrays and then sort them and merge them then output them.
    this is the trouble:


    (gdb) b main...
  23. Replies
    22
    Views
    2,241

    I think the two conditions work together will not...

    I think the two conditions work together will not produce an error. :D
  24. Replies
    22
    Views
    2,241

    Maybe it's better to use fscanf than getc here....

    Maybe it's better to use fscanf than getc here.
    for example:


    #include <stdio.h>

    int main(){
    FILE *fp;
    int c;
    char loc[] = "readThisFile.txt";
  25. Replies
    0
    Views
    1,912

    Problem when works with DLL in BCC55

    (I say BCC55 means the free compiler.)
    Hi, there. I have written a timecode format v2 to v1 converter (for media processing use), I successfully compiled it with mingw.

    I want to have a try on...
Results 1 to 25 of 26
Page 1 of 2 1 2