Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

fx9200

@fx9200
About
Posts
36
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • URL using Digest HTTP Authentication ?
    F fx9200

    hello i need a url of a simple site using digest authenetication in order to test error handling in my client (HTTP/1.1 401) thanks

    Web Development security help question

  • html control for c application
    F fx9200

    so i should code a whole hhtp coding/decoding part on my C application it seems to be a long task didn't think you? :(

    Web Development html sysadmin linux question

  • html control for c application
    F fx9200

    thnks for resposnes i found it a connection should be maintain between application and a php socket server. then data will be send/received via php server to/from flex application data base is accessible via php (the king in these cases) what do you think ? JEE??? haha it sem to be more secure and light !

    Web Development html sysadmin linux question

  • html control for c application
    F fx9200

    hello every body, i wrote an application using C under linux application input are char * , should be written in server socket. now i should work in the grphic part, i would that it be like html-based device interface (eg router), which tool(languages) should i use ? thanks

    Web Development html sysadmin linux question

  • how to upload code here??
    F fx9200

    just go there http://www.codeproject.com/info/submit.asp

    IT & Infrastructure question tutorial

  • graphical interface for a c Application
    F fx9200

    hello every body, i wrote an application using C under linux application input are char * , should be written in server socket. now i should work in the grphic part, i would that it be like html-based device interface (eg router), which tool(languages) should i use ? thanks

    IT & Infrastructure html sysadmin linux question

  • Allocate memory inside function ??
    F fx9200

    ok thanks

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    void fill(void *input); struct mystruct { char *ch; int n; }; #define ARG_SIZE sizeof(struct mystruct) int main(){ void *ptr; ptr = (void*) malloc (ARG_SIZE); fill(ptr); printf ("%i",((struct mystruct*)ptr)->n); printf ("--%s",((struct mystruct*)ptr) ->ch); return 0; } void fill(void *input){ struct mystruct* st; st = (struct mystruct*) input; st ->n = 3;//operation is ok st->ch = (char *) malloc (3*sizeof(char)); strcpy(st->ch,"OK"); input = (void*) st; }

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    void fill(void *input); struct mystruct { char *ch; int n; }; #define ARG_SIZE sizeof(struct mystruct) int main(){ void *ptr; ptr = (void*) malloc (ARG_SIZE); fill(ptr); printf ("%i",((struct mystruct*)ptr)->n); printf ("--%s",((struct mystruct*)ptr) ->ch); return 0; } void fill(void *input){ struct mystruct* st; st = (struct mystruct*) input; st ->n = 3;//operation is ok st->ch = (char *) malloc (3*sizeof(char)); strcpy(st->ch,"OK"); input = (void*) st;

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    but how the code below works; i allocated memory for chr* inside function

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    i'm trying thanks

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    I tried this it works , but i cannot fix the allocated emory size by a no-static way void fill(void *input); struct mystruct { char *ch; int n; }; #define ARG_SIZE sizeof(struct mystruct) int main(){ void *ptr; ptr = (void*) malloc (ARG_SIZE); fill(ptr); printf ("%i",((struct mystruct*)ptr)->n); printf ("--%s",((struct mystruct*)ptr) ->ch); return 0; } void fill(void *input){ struct mystruct* st; st = (struct mystruct*) input; st ->n = 3;//operation is ok st->ch = (char *) malloc (3*sizeof(char)); strcpy(st->ch,"OK"); input = (void*) st; }

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    :rolleyes: yes so ?

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    how to pass reference(pointer) by reference ? please give example

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    i tried it i had the same result in all cases

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    the code is too long but : #define STRUCT struct mystruct void function (void *input){ .... pointer = (STRUCT*) malloc (sizeof(STRUCT)); //filling in input attributes... input = pointer; } main(){ void *ptr; function (ptr); printf("%...", ptr->..........); } this work only if i allocate the memory for ptr in the main program

    C / C++ / MFC

  • Allocate memory inside function ??
    F fx9200

    Hello I want to allocate memory for a void* pointer inside a function; i tried to do that by using malloc to the pointer passed as an argument ; the memory space was not kept after function return; how kan i do that thanks

    C / C++ / MFC

  • Cxstatic
    F fx9200

    hello; i wanted to make my editbox transparent i used the cxstatic class from Codeproject for the static ones is was OK but the problem is in updating time for example the new time is redrown on the old one !

    C / C++ / MFC help tutorial

  • Transparent edit box
    F fx9200

    i'm in the end of the project; and i dont think its a good idea to convert it automatically with wizard;

    C / C++ / MFC graphics help question

  • Transparent edit box
    F fx9200

    thanks, it worked; but with this i can't set a bitmap as a back round of the edit box;

    C / C++ / MFC graphics help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups