CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: salehhamadeh

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    6,697

    Big files corrupted winsock send

    I have a program that sends files between 2 computers. I'm using winsock to send the files using the send function. The program works great for small files. But when I try sending large files, they...
  2. Replies
    1
    Views
    4,666

    Infrared Remote Control

    I have an HP Pavilion dv6000 that comes with a remote control. It has a built in infrared sensor. How can I make a program that could catch the signals from the infrared sensor.
  3. Re: Pass a class as an argument in a member function

    It was passing it to an outside function via the member function, but the issue is solved now.
  4. Re: Pass a class as an argument in a member function

    Thanks Joeman, th is exactly what I wanted :)
  5. Re: Pass a class as an argument in a member function

    Yeah, how can I do it?
  6. [RESOLVED] Pass a class as an argument in a member function

    I have a class called player and the member function move. In move, there is a function that needs the player as an argument. How can I pass the player itself as an argument to the function???
  7. Replies
    3
    Views
    1,651

    Re: Problem Creating a Color BITMAP

    It would be better to make a struct that will have your .bmp variables
    Check this link: http://www.computing.net/answers/programming/writing-a-bmp-in-c-manually/14840.html
  8. Thread: Rtf

    by salehhamadeh
    Replies
    3
    Views
    705

    Re: Rtf

    Don't expect anyone to give you a direct answer fraga. In order to convert files, you'll need to know how every file of them works.
  9. Re: Check if file is a video file, independent of file extension?

    1- Get the explanation of every file format you want to play.
    2- Read the file and check what is written at the beginning (such as BM in .bmp files).
    3- If your sure that the file is a video, then...
  10. Replies
    2
    Views
    632

    Re: Homework help please

    Your problem is in this line


    if(account = 100)

    If you use the '=' operator, the account will be set to 100. You should use the '==' operator to check values. This can be done like this:

    ...
  11. Re: Help with some questions regarding vector

    The code doesn't have any memory leak since the temporary string is in a local scope.
  12. Replies
    1
    Views
    405

    Re: Write in txt...

    Check this link: http://www.cprogramming.com/tutorial/lesson10.html
  13. Replies
    7
    Views
    949

    Re: C++ memory allocation problem

    Make sure that the ints of ClassA are public(not private or protected).
  14. Replies
    7
    Views
    1,083

    Re: A char problem

    #include <iostream>
    #include <string>

    const std::string str_arr_1[] = {"","ein","zwei","drei","vier","f\u00FCnf",
    "sechs","sieben","acht","neun"};

    const std::string str_arr_2[] =...
  15. Replies
    13
    Views
    1,275

    Re: Function Arguments

    It's either that you were day dreaming or that your teacher is dumb. You can use any expression as long as your answer has the type of the argument.
    No matter if you do this:


    funct(1.0, 2.0,...
  16. Replies
    12
    Views
    1,709

    Re: std::string all numeric

    bool check_string_numeric(std::string str)
    {
    for(int i = 0; i < str.length(); i++)
    {
    if(!( (str.c_str()[i] >= '0') && (str.c_str()[i] <= '9') ) )
    {
    //Not...
  17. Replies
    8
    Views
    7,262

    Re: [RESOLVED] HELP -> File I/O

    I know how to use fstreams for handling files, but my problem is that I want to access a physical drive. Is there a way fstreams can access physical drives?
  18. Replies
    8
    Views
    7,262

    Re: [RESOLVED] HELP -> File I/O

    I didn't want windows to use it, I just wanted my own explorer to use it.
  19. Replies
    8
    Views
    7,262

    Re: HELP -> File I/O

    [Problem Resolved]
    I searched MSDN and used the WIN32 API CreateFile() to open the physical drive and the WIN32 API ReadFile() to store the data into a buffer.
  20. Replies
    6
    Views
    865

    Re: Strange problem with Functions and C

    You're second example isn't working because you didn't declare the function's prototype. This is how you declare the prototype:


    #include <stdio.h>

    void printme(char printtext[7]); //This is...
  21. Re: ISO C++ forbids comparison between pointer and *******?

    Third, there's no variable called word1.
  22. Replies
    8
    Views
    7,262

    Re: HELP -> File I/O

    Thanks for nothing, souldog.
  23. Replies
    12
    Views
    1,165

    Re: Please Help me with this program.

    //This is a game called "The Guessing Game"
    #include <iostream>
    #include <cstdlib>
    #include <ctime>
    using namespace std;
    int main()
    {
    int number;
    unsigned seed = time(0);
    ...
  24. Replies
    8
    Views
    7,262

    [RESOLVED] HELP -> File I/O

    Hi gurus,
    I'm willing to create my own file system, which I will use for my external hard disk. Can anyone tell me how to read binary data from the hard disk and write to it. Thanks 4 help.:)
  25. Re: #include No Such File or Directory

    Try reinstalling your pjlib. If it didn't work, check the documentation on how to set up the environment on your IDE.
Results 1 to 25 of 57
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured