User Profile

Collapse

Profile Sidebar

Collapse
aviraldg
aviraldg
Last Activity: Nov 12 '08, 06:38 PM
Joined: Sep 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aviraldg
    started a topic Odd SEGFAULT Problem
    in C

    Odd SEGFAULT Problem

    I'm having a SEGFAULT on the following program. Weird thing is that it happens randomly with different "str"s (ie. user input; check main() for more info) and my debugger shows me that the getToken function is working and returning the correct answer.

    Code:
    #include <stdio.h>
    #include <string.h>
    #include <ctype.h>
    
    char* getToken(char *src, unsigned int pos=0)
    {
    	char
    ...
    See more | Go to post

  • aviraldg
    started a topic Problem with fstream::read
    in C

    Problem with fstream::read

    I'm having a problem with read , my code is somewhat like:
    Code:
    char chipMemory [chipMemorySize]; // ~35XX
    fstream ifile;
    ifile.open(argv[1],ios::in|ios::binary|ios::nocreate|ios::ate);
    int fileLength=ifile.tellg();
    ifile.seekg(ios::beg);
    ifile.read(chipMemory,fileLength);
    ifile.close();
    After the last function call in the program, (Note , this is an extract , and seemingly irrelevant pieces have...
    See more | Go to post
    Last edited by aviraldg; Jul 19 '08, 01:40 AM. Reason: Clarification

  • aviraldg
    replied to Reading a disc drive (C++)
    in C
    Please , I remember some C code using open to achieve this. Ok , if not this , could someone explain 'open' - just open and the functions related to it ?
    See more | Go to post

    Leave a comment:


  • aviraldg
    started a topic Reading a disc drive (C++)
    in C

    Reading a disc drive (C++)

    Well , could someone tell me how to read/write to a disc drive ? And by disc drive , I mean *disc*drive* , not the files on it. I'm using VC++ 6 , and would prefer the easiest method , even if it 'doesn't comply with the standards' (I remember an implementation based on 'open' which treated the drive as a file... but if someone knows about it could he/she explain it to me?)
    See more | Go to post

  • aviraldg
    replied to problem with infinite loop
    in C
    1.The loop on line numbers 16-25 is like writing:
    Code:
    if(a[5]!=t && b[5]!=t)
    {
            k=1;
    }
    else k=0;
    2.Please , never , never use letters for variables , for sanity's sake!
    3.The if construct on line 26 is also messed up, also writable as:
    Code:
    if(c[i]>t && k==1)
    {
    d[i]=t;
    i++;
    }
    which is unreachable , since c[0],c[1]..c[5] are all empty(0)....
    See more | Go to post

    Leave a comment:


  • aviraldg
    started a topic structs
    in C

    structs

    How can structs be used? And are they from C++ or C?
    See more | Go to post

  • aviraldg
    replied to My PHP website
    in PHP
    Thanks ! That did it ! ( That was a hard-to-find-error and I didn't know that "XXX"!=0)
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to My PHP website
    in PHP
    It's still not working... even with the $_get["pg"]s changed to $_GET['PG'].Please ... I really need help.
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to My PHP website
    in PHP
    Extra server load ? That file was hosted on my own site ...
    any way .. my website , the one which i'm having prolems with is at http://triway.x10hosting.com/ so you can ckeck it out if you want ...
    "The Files"(Complete Listing)
    ---------
    index.php
    [PHP]<html>
    <head>
    <title>
    <?php
    if($_get[pg])
    {
    echo "Triway Software - " + $_get[pg];...
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to My PHP website
    in PHP
    It's too huge to be posted here...
    See more | Go to post

    Leave a comment:


  • aviraldg
    started a topic My PHP website
    in PHP

    My PHP website

    I built a website using php ... but there is a problem .. the post variable pg is always=='"".. can some one correct the problem(s)?

    We do not want an extra load on the server, so I disabled the download link - moderator
    See more | Go to post
    Last edited by ronverdonk; Feb 24 '08, 11:30 PM. Reason: disabled download link

  • aviraldg
    started a topic Flash Output Settings

    Flash Output Settings

    I'm making something of a presentation in flash (school project) . Whenever I Publish , the .swf and the .exe , and run them , they show stuff outside the stage.How do I Prevent this?
    NOTE:I'm using fscommand() to make it fullscreen and hide the menu
    See more | Go to post

  • aviraldg
    started a topic C++ Graphics (Text Mode)
    in C

    C++ Graphics (Text Mode)

    Some other programs like QBasic can use colors in their text..
    so can c++?
    basically my question is that can we cout in colors?how?
    See more | Go to post

  • aviraldg
    replied to File Write(Append)
    Thanks for the help ! Expect to see Quiz Creator Soon!
    See more | Go to post

    Leave a comment:


  • aviraldg
    started a topic File Write(Append)

    File Write(Append)

    How do I write data at the end of a file (size unknown) in binary mode ?
    See more | Go to post

  • aviraldg
    replied to mini project
    Two points that you ought to consider-
    1)It's your project.Why should we help you?(We ALL have our own projects)
    2)You really need some brain! This doesn't even concern HTML!
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to VB6 Transparency
    Thank you
    <:TOPIC SOLVED:>
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to VB6 Transparency
    Pre-Tried,Useless
    Nothing found " Round forms";"Circula r Forms"...
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to Display a byte as two hex digits
    How do you convert hex2byte?...
    See more | Go to post

    Leave a comment:


  • aviraldg
    replied to VB6 Transparency
    Thanks guys ,but
    1) I'd tried the Control-is-a-form method before posting here...But what if you have a circle shape?I Doubt you can have circular forms...
    2) I'll try the API Functions Later...
    3) <Not Related : How do you add bytes?>
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...