User Profile

Collapse

Profile Sidebar

Collapse
SpecialKay
SpecialKay
Last Activity: Jul 23 '09, 08:15 PM
Joined: Mar 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SpecialKay
    started a topic C++ array initilization
    in C

    C++ array initilization

    i want to initilize all values in my array to 0. what is right?

    Code:
    char a[3] = {'0'};  --->  a[0]=0, a[1]=0, a[2]=0, a[3]=0
    or

    Code:
    char a[3];
    
    for(int i=0; i<3;i++)
    {
     a[i]='0';
    }
    thanks
    See more | Go to post

  • SpecialKay
    replied to C++ passing 2d array to function
    in C
    Good article, thank you
    i have a new question.

    Lets say i have a 2d char array

    char array[9][9];

    i initilize the array so ever position is = X; I think let the user input a few numbers into some space. I then do some processing on the array, but i need to make sure that the user entered numbers are never changed.

    who should i do this?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    started a topic C++ passing 2d array to function
    in C

    C++ passing 2d array to function

    hello i need to pass a 2d array to a function, how do i make the function deceleration?
    Code:
    void printBoard(int board[][]);
    or
    Code:
    void printBoard(int[][]);
    or other.

    thanks
    See more | Go to post

  • SpecialKay
    replied to I have some questions about multi threading .
    in C
    no where in the code is there a signal to the other thread. So that, plus the Static decliarations are the problems?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to I have some questions about multi threading .
    in C
    I as well dont know the answer, but i understand threading some what. If i had to guess. i think that you are right, single threaded the code would block in the endless loop. if both function were running at the same time, i think it would work alright. As for having 2 threads running consumer and likewise for producer, i could only guess it would work, but you might get some wierd values.

    interesting tho, i look forward to the...
    See more | Go to post

    Leave a comment:


  • just so i understand. you are trying to turn all the pixels that are black, to another color? in this case Transparent?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to C++ Illegal Call of static function
    in C
    ya i agree, sorry about that. The code is on another computer i will switch it over and give you some snippets. and an exact error message.
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to Reverse the string..
    in C
    I just have to say, the thread rules <content removed>. how is anyone suspost to learn when everything is removed?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to overloaded function question
    in C
    i cant imagin why you would ever need to do something like this.
    but you have your answer.
    See more | Go to post

    Leave a comment:


  • SpecialKay
    started a topic C++ Illegal Call of static function
    in C

    C++ Illegal Call of static function

    Im getting this error when i try to make a call to a function, from inside an event hook. Anyone have some suggestion on things to try?
    thanks a lot
    See more | Go to post

  • SpecialKay
    replied to C++ image Format conversion
    in C
    well it needs to be automatic, i have a program that will read through some pdf files. And if the file locates an image, it will cut the image out, and save it to disk. Unfortunatly i have no choice but to save it as .TIFF
    later on, I then try to re-open the image using different imaging software. However this software does not support .TIFF format. So i need to somehow automate the conversion from .TIFF to .BMP, so that i can use the...
    See more | Go to post

    Leave a comment:


  • SpecialKay
    started a topic C++ image Format conversion
    in C

    C++ image Format conversion

    hello All,
    I have a new problem. I have a .TIFF file that is of 1bit per pixel and compressed with CCITT T.6. I need to open this file from the disk convert it to something more standard (.JPG or .BMP) and then save the file back to the disk for future processing. I thought it was going to be eazy, but i cant seem to find any resources to do it.

    any ideas?
    thanks

    The theory im working on at the moment,...
    See more | Go to post

  • SpecialKay
    replied to What is "Handle Count"
    in C
    how would someone see this variable? I assue it is built in to VS?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to What is "Handle Count"
    in C
    so the handle count would be refering to the number of pointers to the variables on each thread. and it would be normal for the handle count to increase. However this handle count, should decrease when the thread is finished. And at the end of the program, the handle count should be 0 otherwise we have a memory leak?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to What is "Handle Count"
    in C
    i was just looking for a general meaning. Im looking at some code that is using windows threads. The person that wrote the code said that everytime they call the function abc() they run it on a new thread, and the Handler Count increases. for some reason, this was not expected. They believe that the Handler Count should not have have increased, or should have increased much less then i accually did.
    I was not fimilar with the term....
    See more | Go to post

    Leave a comment:


  • SpecialKay
    started a topic What is "Handle Count"
    in C

    What is "Handle Count"

    Im just wondering what the term Handle count means?
    See more | Go to post

  • SpecialKay
    replied to adsapi.dll: DLL Not Found Exception
    in C
    what is this DLL and why is it there.

    I have been reading about it, and it says that is it for 95/NT platforms?

    i have never used this code on a 95/NT platmorm. it works on one computer. but doesnt work on another?
    See more | Go to post

    Leave a comment:


  • SpecialKay
    started a topic adsapi.dll: DLL Not Found Exception
    in C

    adsapi.dll: DLL Not Found Exception

    Im getting a "Cannot find .DLL exception" any ideas?
    See more | Go to post

  • SpecialKay
    replied to Need advice on a project I may do
    in C
    yes, you can always do Graphics later. but what hes trying to get across in the first post, is that a project this big needs to be planned properly. If you plan your project using Front/back logic then interlacing the graphic (front) later will be very very simple. If you were to just jump into it and start coding right away, you will have trouble getting the graphics right without messing up the functionallity. If you want to make a really versitile...
    See more | Go to post

    Leave a comment:


  • SpecialKay
    replied to Virtual PC help
    any more information about that? i really dont know where to look. I have figured out the Parallel Port. I was able to add it to my VPC. im still coming up with nothing for the PCI ports. i need to be able to interface with my Graphic cards, and Frame Grabbers.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...