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

Search:

Type: Posts; User: crazy boy

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds; generated 11 minute(s) ago.

  1. Replies
    5
    Views
    1,777

    Re: Why I cannot open tiff file?

    Then why in one code the command works and in the second code does not? The method obviously handles linux slashes to convert them to Windows slashes. Otherwise the method would failed in both codes....
  2. Replies
    5
    Views
    1,777

    Re: Why I cannot open tiff file?

    No problem with path. This is perfectly OK. The problem is in the method. Did you ever tried using tiff tags? To read or to write them by libtiff? The problem here is that the tag data which were...
  3. Replies
    5
    Views
    1,777

    Why I cannot open tiff file?

    I am trying libtiff library (I downloaded the source codes as part of SDL2, but I test it separately). There is a test file named ascii_tag.c.

    There is a line

    tif = TIFFOpen(filename, "r");
    ...
  4. Replies
    8
    Views
    6,380

    Re: How to read images in GDI or GDI+

    I probably found good (portable) solution -Cimg:
    http://stackoverflow.com/questions/3284498/c-c-image-loading
    http://cimg.sourceforge.net/
  5. Replies
    8
    Views
    6,380

    Re: How to read images in GDI or GDI+

    Because I dont use payed version of VS.
  6. Replies
    8
    Views
    6,380

    Re: How to read images in GDI or GDI+

    Will it work for Visual Studio Express 2010? It is in the list of classed which are shared on MFC and ATL.
  7. Replies
    8
    Views
    6,380

    How to read images in GDI or GDI+

    I am working on application to work with images. I need advise how to open/read images, whether it is jpeg, png, bmp or tiff and get it to bitmap. Is there some universal command for this or I will...
  8. Re: How to configurate the Visual Studio C/C++ Additional Include Headers?

    I repaired it.

    Seems there are two directories which should be included.

    Either this way:
    C:\C++\boost_1_55_0\;C:\C++\boost_1_55_0\libs
    and include command then looks like this

    #include...
  9. Re: How to configurate the Visual Studio C/C++ Additional Include Headers?

    GCFED:
    I know where - but I dont know how?

    This is my settings:
    C:\C++\boost_1_55_0;%(AdditionalIncludeDirectories)

    Can somebody explain to me what meant the:

    $(BOOST);...
  10. How to configurate the Visual Studio C/C++ Additional Include Directories?

    I want to include boost directory. What must be in the
    Additional Include Directories input?

    I tried

    C:\C++\boost_1_55_0\libs\accumulators\example;$(BOOST_ROOT);%(AdditionalIncludeDirectories)...
  11. Re: Parsing CL arguments and Function call queue

    On the page where I found it on, they use the

    std::getline(ss, token, ',')) but working with string type. The dash is only example. It could also be "-" used as delimiter. So can I use sstream to...
  12. Re: Parsing CL arguments and Function call queue

    What? I said I want to parse the argument:
    "abc,def,ghi"

    I explain father more:
    I run myapp.exe abc,def,ghi 124,25,13

    so I need to parse the argument 1 to array of values ["abc","def","ghi"]...
  13. Re: Parsing CL arguments and Function call queue

    Thank you. I would like to parse the arguments but I have problem that they are different type. I have found example code using strings but the arguments are _TCHAR so if I would replace input for a...
  14. Re: Parsing CL arguments and Function call queue

    I have VS C++ 2010 and cannot upgrade. May I ask you about this?

    Why this works:

    int _tmain(int argc, _TCHAR* argv[])
    {
    _TCHAR *a;
    for(int i = 0; i < argc; i++)
    {
    a = argv[i];
  15. Replies
    17
    Views
    1,358

    Re: How to save bitmap to file?

    Oh, thank you. That helped. I needed include windows.h
  16. Replies
    17
    Views
    1,358

    Re: How to save bitmap to file?

    I am moving the function to header file filework.h:

    int GetEncoderClsid(const WCHAR* format, CLSID* pClsid);
    I am getting error:
    error C2143: syntax error : missing ',' before '*'
    I cannot...
  17. Re: Parsing CL arguments and Function call queue

    I am trying to find out how to parse command line arguments using foreach equivalent in C++
  18. Re: Parsing CL arguments and Function call queue

    Why? I create program in C++ Visual studio.
  19. Re: Parsing CL arguments and Function call queue

    Possibly I try to change to this:



    for each(string& city in cities)
    {
    cout << city << endl;
    }

    But here I got error
  20. Parsing CL arguments and Function call queue

    I am trying to create program which will process command line arguments and define which functions should be run, with specific order and specific arguments.

    This is my first problem:


    //...
  21. Replies
    26
    Views
    1,377

    Re: Convert HSB color to RGB and RGB to HSB

    I've just updated the code to finish the round()s. I found there is not error in the function. It gives correct number. But it was wrong displayed. I corrected the problem.
  22. Replies
    26
    Views
    1,377

    Re: Convert HSB color to RGB and RGB to HSB

    Finished


    // mask1.cpp : Defines the entry point for the console application.

    #include "stdafx.h"
    #include <stdio.h>
    #include <math.h>
    #include <conio.h>
  23. Replies
    26
    Views
    1,377

    Re: Convert HSB color to RGB and RGB to HSB

    Thanks guys, now I think it really works :-) First time working with floats.


    // mask1.cpp : Defines the entry point for the console application.
    //
    #include "stdafx.h"
    #include <stdio.h>...
  24. Replies
    26
    Views
    1,377

    Re: Convert HSB color to RGB and RGB to HSB

    It is explained here:
    http://www.easyrgb.com/index.php?X=MATH&H=20#text20
    and here the formula see bellow:
    http://www.rapidtables.com/convert/color/rgb-to-hsv.htm
    It has something with the lengh...
  25. Replies
    26
    Views
    1,377

    Re: Convert HSB color to RGB and RGB to HSB

    Here is my code, the hue does not look correct.
    hsv->h 0.073906541 float
    If I multiply hsv->h by 360 I get
    26.606354713439941 double
    But I think it should be 267 . It looks like I should...
Results 1 to 25 of 137
Page 1 of 6 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center