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

Search:

Type: Posts; User: olivthill2

Page 1 of 25 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    5,855

    Re: Error while executing the insert query.

    I guess the problem is with the date (DOB column), because the conversion, or lack of conversion, is a common problem with that kind of fields.
    Could you try without the date?

    Otherwise, enclose...
  2. Replies
    1
    Views
    1,045

    Re: shading lighting

    Increase the values for GL_SPECULAR.
    See http://www.codeguru.com/forum/showthread.php?t=518697
  3. Re: Adding Bitmap resource to Bitmap file transparency issue

    In Windows, transparency of bitmaps is managed with the alpha channel.

    The alpha channel did not exist when I started to learn Windows programming, so I relied on something else which is a method...
  4. Re: How to walk on terrain and not go through walls ?

    Detecting collisions is time consuming, but it is not very difficult.

    You simply look if there is a wall in front of you and look at the altitude of the ground below your feet. You might also look...
  5. Re: libharu, how to compile (undefined reference to)

    what is -lhpdf?

    -l means, you use a library

    hpdf is the name of the library where its extension (characters after the ".") and its first three characters "lib" have been removed, in order to...
  6. Thread: Brightness

    by olivthill2
    Replies
    1
    Views
    899

    Re: Brightness

    Brightness of a surface is mainly caused by the specular reflection.
    See the second column of spheres at http://glprogramming.com/red/appendixi.html#plate16

    A sumary of the differents lights is...
  7. Re: libharu, how to compile (undefined reference to)

    Try, by first compiling your cpp file to produce an object file, then by linking you object file with the object files included in the libraries:


    g++ -c pdf.cpp -o pdf.o

    g++ pdf.o...
  8. Replies
    6
    Views
    1,173

    Re: Set my variables, please

    Try using using ordinary quotes (') instead of backquotes (`).
  9. Replies
    11
    Views
    4,672

    Re: Get Monitor Resolution

    Try EnumDisplaySettingsEx with ENUM_CURRENT_SETTINGS

    See also a previous discussion at http://www.codeguru.com/forum/showthread.php?t=348483
  10. Replies
    4
    Views
    2,955

    Re: Multiple colors in one screen cmd

    The command line window stores characters and their colors in a big array.
    See http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_23/CH23-1.html or search google with "color b800...
  11. Replies
    5
    Views
    1,532

    Re: cmd menu arrow navigated.

    If this is a program working in a DOS box (also called "command line", "console window"), then see the answers previously given at http://www.codeguru.com/forum/archive/index.php/t-363635.html
  12. Replies
    3
    Views
    18,743

    Re: Ajax query, Javascript and Sharepoint

    Maybe, a right parenthesis is missing in:


    N.B. Please, place your lines of code between
    and .
  13. Replies
    4
    Views
    1,193

    Re: String Parsing in C

    strcspn() works with null terminated strings.

    But, there is no guarantee your strings are null terminated.

    memset(p, 0, strlen(data) );
    memcpy(p, data, strlen(data));Let's suppose data is a...
  14. Replies
    3
    Views
    2,033

    Re: MFC MDI Modeless Dialog

    So stay away from MDI.
    MDI was a kind of template for Windows 3.1. It is very old, and it was not designed for the kind of things you want to do. MDI is almost never used anymore. Instead, manage...
  15. Re: What's your preference on writing functions: ByRef manipulation or returning valu

    I prefer to pass in, out, in/out variables as arguments, and return an error code, which would be 0 if everything went well, or some value if something went wrong.


    //example 3 (ByRef in...
  16. Replies
    11
    Views
    2,130

    Re: RichEdit Control not show text

    Please, use
    and tags around your lines of code. They will show nicely like this:

    m_rich.SetWindowText (cadena); Where does m_rich come from?

    Anyway, I have used successfully Rich Edit...
  17. Replies
    2
    Views
    1,660

    Re: Linking with CodeBlocks?

    TransparentBlt() is a standard API function, see http://msdn.microsoft.com/en-us/library/dd145141(v=vs.85).aspx. So, you should be able to use in the same way you use BitBlt(), GetDC(), or other API....
  18. Re: help with bubble detection in fluids (video processing)

    If you take two pictures of a wheel, how do you know if it is rolling clockwise or counterclockwise?

    Suppose the first picture shows a spot at 12 o'clock, and the second picture shows that spot at...
  19. Replies
    3
    Views
    2,679

    Re: ChooseFont function fails

    Try with:
    chooseFont_.hwndOwner = NULL;
    chooseFont_.Flags = 0;
  20. Replies
    16
    Views
    7,821

    Re: .txt file and Japanese text

    I, too, was wondering whether I should write a BOM header or not.
    Eventually, I decided to follow what Notepad (under Windows 7 home edition 32-bit) is doing.

    And what is Notepad doing when it...
  21. Re: Problem with line alignment for Bitmap data

    DWORD-aligned bytes is needed.

    Instead of
    #define TJPAD(p) (((p)+3)&(~3))
    int paddedRow = TJPAD(bitmap.bmWidth*bitmap.bmBitsPixel/8);
    Have
    #define TJPAD(bits) ((((bits) + 31) & ~31) >> 3)
    int...
  22. Replies
    17
    Views
    2,268

    Re: looking for a good pointer info

    Interesting. I had in mind the following lines of C code where I thought that i was passed by reference:
    int plus_one(int *n)
    {
    *n += 1;
    return(0);
    }

    int main(int argc, char *argv[])
    {...
  23. Replies
    17
    Views
    2,268

    Re: looking for a good pointer info

    To me, the difficulty is not about the theory, it is about concrete situations, and I guess it is the same for you. My solution is to learn examples, without triying to understand them.

    In C and...
  24. Re: How to design relational database for this?

    First, I would use numerical ID for every entity, and that ID would be the first field in each table:

    1) Entity name: Movie
    MovieID (primary key)
    Title
    ReleaseDate
    ProductionCost
    ProdCompID...
  25. Replies
    2
    Views
    889

    Re: many to many tables

    The definition looks correct to me for your tables of recipes, images and ingredients.
    I have a doubt about the definition of your table of categories because I don't know very well what you mean by...
Results 1 to 25 of 611
Page 1 of 25 1 2 3 4





Click Here to Expand Forum to Full Width

Featured