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...
Type: Posts; User: leiming
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...
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....
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.
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...
I just try writting some codes to reach it:
#include <iostream>
using namespace std;
class myintpointer{
public:
myintpointer(){
p2 = 0;
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
About the second question, using:
int* &b = a;
int* &c = b;
1111 1111
1111 1111
2222 1111
2222 2222
2222 2222
2222 2222
Gcc 3.4.5 if -O2 is turned on
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...
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.
z is private for derived, so it can access z.
>>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...
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...
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 {
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef struct Node {
char string;
struct Node * next;
}Node;
int main()
int_array=realloc(int_array,size1);
You forget to multiplus sizeof(int) to size.
LeiMing.
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;
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);
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.
Windows XP.
More exactly, mingw, not cygwin.
Do you have any ideas?
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"...
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...
I think the two conditions work together will not produce an error. :D
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";
(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...