Search:

Type: Posts; User: CrazyBoy

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    4,102

    Re: OpenGL in Visual Studio C++ 2010 Express

    Is this line, which I must add to the Linker:Additional Dependencies?
    C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\gl
    Can I add folder there? Or just libraries?
    I have this there:...
  2. Replies
    7
    Views
    4,102

    Re: OpenGL in Visual Studio C++ 2010 Express

    I am using Windows XP, I think I cannot install VS 2013

    And I cannot uninstall the program. Do you think something happen if I delete it manually? Maybe I should delete it and then use registry...
  3. Replies
    7
    Views
    4,102

    Re: OpenGL in Visual Studio C++ 2010 Express

    Also I have added dependencies to linker:
    opengl32.lib;glu32.lib;olepro32.lib;%(AdditionalDependencies)
    copied from the demo file
    http://www.dhpoware.com/demos/glMultiSampleAntiAliasing.html
    both...
  4. Replies
    7
    Views
    4,102

    Re: OpenGL in Visual Studio C++ 2010 Express

    Unmanaged. I cannot find out why the Visual Studio does not look same as on my previous computer. Is it possible that some other Visual Studio 2010 Express was downloaded? I would like to remove it...
  5. Replies
    7
    Views
    4,102

    OpenGL in Visual Studio C++ 2010 Express

    Hi, I have this problem, I want to learn to use openGL but this code generates errors:


    // OpenGL1.cpp : main project file.
    #include <GL/gl.h>

    #include "stdafx.h"

    using namespace System;
  6. Replies
    3
    Views
    5,038

    Re: Using constuctor in class or vector

    Sorry, but could you please use syntax for C++03? Line 33 and 35 are printing errors to my C++03.
  7. Replies
    3
    Views
    5,038

    Using constuctor in class or vector

    I illustrate my problem on this example. Let's have a class A and B.



    class A;
    class B{
    int m;
    A * pParentHold;
    public:
    B(int n, A * pParent){m=n;pParentHold=pParent;}
  8. Re: How to refer to class which was not yet declared?

    No need anymore. Compiled. There was initiation list needed for the main class.
  9. Re: How to refer to class which was not yet declared?

    Yeah, this all I tried already and nothing worked. Same error still. Maybe I should refer to the object by reference and not by pointer?
    I read this question:...
  10. Re: How to refer to class which was not yet declared?

    Yet now in the MyGlobalClass::MyGlobalClass(...) function if I add a pointer to arguments of constructors:

    MyGlobalClass::MyGlobalClass(int argc, char* argv[])
    {
    CLParser * CLPars(...
  11. Re: How to refer to class which was not yet declared?

    On StackOverFlow I have found one guy asking similar question:
    http://stackoverflow.com/questions/1842002/c-error-c2819-type-list-does-not-have-an-overloaded-member-operator
    I think the answer by...
  12. Re: How to refer to class which was not yet declared?

    Of sure it is. What code should I post? Here are 10 files

    The error is:
    error C2819: type 'FILE_' does not have an overloaded member 'operator ->'

    file.cpp line 20


    CLParser::CLParser( ...
  13. Re: How to refer to class which was not yet declared?

    Not static anymore:
    Parse3.cpp:


    #include "stdafx.h"
    //...

    MyGlobalClass * Obj;

    int main(int argc, char* argv[])
  14. Re: How to refer to class which was not yet declared?

    So I should do it like

    if (PGlobalInstance->File->IsDirectory(arg, PGlobalInstance->workingPath)) { ... }
    In main file I have this:


    class MyGlobalClass{
    public:
    std::vector<Src*>...
  15. Re: How to refer to class which was not yet declared?

    It should not be static. I changed design, originally it was static. But if I remove static I get this error:
    clparser.cpp(22): error C2352: 'FILE_::IsDirectory' : illegal call of non-static member...
  16. Re: How to refer to class which was not yet declared?

    file.cpp


    FILE_::FILE_( MyGlobalClass * globInst){
    PGlobalInstance = globInst;
    }


    header:
  17. Re: How to refer to class which was not yet declared?

    What's the problem here?



    #include "stdafx.h"

    FILE_::FILE_( MyGlobalClass * globInst){
    PGlobalInstance = globInst;
    }
  18. Re: How to refer to class which was not yet declared?

    I already found it searching web. But I still have some nasty errors :-) Saying things like that I am missing ';' when I try to create new instance of MyGlobalClass and _FILE. I cannot find out where...
  19. How to refer to class which was not yet declared?

    This is my global class:



    #include "stdafx.h"

    MyGlobalClass::MyGlobalClass(int argc, char* argv[]){
    CLParser * CLPars( MyGlobalClass& );
    FILE_ * File( MyGlobalClass& );...
  20. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    It's still not clear to me how to find the requested page on msdn. I look for "Gdiplus:: DrawImage" on google and always god Graphics:: DrawImage as a part of .NET. That's the trick I must do to get...
  21. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    But, I understand now my misunderstanding. That the Graphics class is part of .NET. When I checked the code for GDI+ part I had seen "graphics.DrawImage" and I thought that the graphics is the...
  22. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    That is in the msdn manual written about the class graphics:

    They have there this note which I thought means that it requires .Net from 1.1 above
  23. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    I have found article, where author explains how to use rotate functions:
    http://www.leunen.com/cbuilder/rotbmp.html

    However
    http://msdn.microsoft.com/en-us/library/system.drawing.graphics.aspx...
  24. Replies
    4
    Views
    923

    Re: What does * mean in C?

    Pointer * means ...
  25. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    Ok , saving is done, thanks... but here is next problem. The result does not contain any image. It looks like there could be some problem either in GdipCreateBitmapFromHBITMAP() or...
  26. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    No


    GetEncoderClsid(L"image/png", &pngClsid);
    result = Gdiplus::DllExports::GdipSaveImageToFile(pG, "justest.png", &pngClsid, NULL); // last voluntary? GDIPCONST


    First argument must be...
  27. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    OK, I will ask on codeguru. I need just to check the bitmap so can be bmp. But It would be great to know how to save to png.
  28. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    I found interesting tutorial, the source code may be useful:
    http://tipsandtricks.runicsoft.com/Cpp/BitmapTutorial.html

    * * *

    I have not fixed saving to file. The original code uses

    ...
  29. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    OK. What I found. The GDI+ does not have GetEncoderClsid() so I had to copy it.
    Source:
    http://www.progtown.com/topic243847-getencoderclsid-gdi.html
    Or possibly the same:...
  30. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    To save the image to file, do you think I could use this method?
    http://msdn.microsoft.com/en-us/library/windows/desktop/ms535407%28v=vs.85%29.aspx
    It seems more simple than the code here:


    ...
  31. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    You saved me a lot of reading, which I was going to do here http://www.functionx.com/managedcpp/Lesson18.htm
  32. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    Do you know how to fix the error?

    ColorMatrix matrix;
    result = Gdiplus::ImageAttributes::SetColorMatrix(matrix, ColorMatrixFlagsDefault);

    error C2352:...
  33. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    It sounds like "name manding" is basicly creating unique names by the C++ language and generating of linker names (symbols)
  34. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    I looked on the link. What exactly they mean by overloaded function? Does he mean to create 2 or more functions with same name but having different input arguments (and therefore different purpose,...
  35. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    You/they mean to call them like Bitmap::FromHBITMAP() or Gdiplus::DllExports::GdipCreateImageAttributes()?
    As this is what I do and I preffer than using namespaces (we can see similar approach in...
  36. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    Can you explain what does it mean?

    ImageAttributes Functions



    What does mean "not directly"?
  37. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    Quite hard stuff just to rotate image. Things are getting more complicated and I will need to create class for it.
    I would like to create some code to get simple access to these types:

    ...
  38. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    I did repaired it and edited my post but the change did not saved. So now I have this:

    capture.cpp(196): error C2664: 'Gdiplus::DllExports::GdipGetImageGraphicsContext' : cannot convert parameter...
  39. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    How can I check for errors when I did not compile the program because of the errors above? The code did not run so I cannot check for run-time errors
  40. Replies
    41
    Views
    9,834

    Re: Rotation of bitmap

    OK but if I try this


    Gdiplus::DllExports::GdipGetImageWidth((GpImage) pBitmap, &w);

    Gdiplus::DllExports::GdipGetImageHeight((GpImage) pBitmap, &h);


    I got these errors
Results 1 to 40 of 44
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width