Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kypho

Pages: [1] 2
1
C / C++ /C# / Re: XNA demo coding
« on: November 11, 2012 »
juh. have been programming C# for a while now. I guess the mentioned sharpDX is currently been talked a lot, as the directx11 is going to be awesome. thanks for all your replies btw, have been such a corpse and did not even remember to thank you guys :/ apologizes.

2
C / C++ /C# / XNA demo coding
« on: August 30, 2011 »
Hello all.

I have now studied coding quite a bit and things start to look more clear (finally!). I have some experience from c# and directx (sounds, inputs, 2d and 3d, timers
and stuff) but what I really looking forward is the XNA stuff.

I feel really confortable with c# and I was thinking that XNA could be a nice option to start finally practising some real demo stuff. What are they main things to consider when working on a XNA demo? Is there anywhere some examples of basic effects etc. done with XNA? I would probably like to start from something small, not climbing down the tree. All information on the subject wanted.

peace,
Kypho

3
Soon coming out with some Psychedelic Hip Hop at www.pelto.org. Stay dropped out for next release and mean while check my friend Hypno's psygoa release on pelto.org ;)

- Kypho

4
Salute!

there is now little website here: "www.pelto.org" ...feel free to visit and check those Greazy Third Chin Vision newones ;?)...

5
C / C++ /C# / Re: Transition demo source code
« on: January 30, 2009 »
hmm, seems to be complicated-..I take closer look of this later when I have free time :) that document will come handy for sure.

- Kypho the beginner

6
C / C++ /C# / Re: Transition demo source code
« on: January 29, 2009 »
Hi.

I put now     glMatrixMode(GL_MODELVIEW);   and     glPushMatrix();      and something happened, it seems that it draws my earlier texture (the picture which kept flipping) but colored it with purple :P It rotates that picture somehow, but I cannot see the cube yet there. I wonder how could I set the texture and get that thing more cubish, cos now it seems that it makes the flipping picture there and uses that old data (rotates it then and so on)...I would like to "clear" all the old data away or something :)

- Kypho the beginner

7
C / C++ /C# / Re: Transition demo source code
« on: January 27, 2009 »
This some APRON/NEHE example code

I wonder how I could put this code to the transition code, cos simply putting this function to the program and then call it doesn't do the trick :(

Code: [Select]
///NEW CUBE

int DrawGLScene(GLvoid) // Here's Where We Do All The Drawing
{
    // Clear Screen And Depth Buffer
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    // Reset The Current Modelview Matrix
    glLoadIdentity();

//NEW//////////////////NEW//////////////////NEW//////////////////NEW/////////////

  glTranslatef(0.0f, 0.0f,-7.0f); // Translate Into The Screen 7.0 Units
  glRotatef(rotqube,0.0f,1.0f,0.0f); // Rotate The cube around the Y axis
  glRotatef(rotqube,1.0f,1.0f,1.0f);
  glBegin(GL_QUADS); // Draw The Cube Using quads
    glColor3f(0.0f,1.0f,0.0f); // Color Blue
    glVertex3f( 1.0f, 1.0f,-1.0f); // Top Right Of The Quad (Top)
    glVertex3f(-1.0f, 1.0f,-1.0f); // Top Left Of The Quad (Top)
    glVertex3f(-1.0f, 1.0f, 1.0f); // Bottom Left Of The Quad (Top)
    glVertex3f( 1.0f, 1.0f, 1.0f); // Bottom Right Of The Quad (Top)
    glColor3f(1.0f,0.5f,0.0f); // Color Orange
    glVertex3f( 1.0f,-1.0f, 1.0f); // Top Right Of The Quad (Bottom)
    glVertex3f(-1.0f,-1.0f, 1.0f); // Top Left Of The Quad (Bottom)
    glVertex3f(-1.0f,-1.0f,-1.0f); // Bottom Left Of The Quad (Bottom)
    glVertex3f( 1.0f,-1.0f,-1.0f); // Bottom Right Of The Quad (Bottom)
    glColor3f(1.0f,0.0f,0.0f); // Color Red
    glVertex3f( 1.0f, 1.0f, 1.0f); // Top Right Of The Quad (Front)
    glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left Of The Quad (Front)
    glVertex3f(-1.0f,-1.0f, 1.0f); // Bottom Left Of The Quad (Front)
    glVertex3f( 1.0f,-1.0f, 1.0f); // Bottom Right Of The Quad (Front)
    glColor3f(1.0f,1.0f,0.0f); // Color Yellow
    glVertex3f( 1.0f,-1.0f,-1.0f); // Top Right Of The Quad (Back)
    glVertex3f(-1.0f,-1.0f,-1.0f); // Top Left Of The Quad (Back)
    glVertex3f(-1.0f, 1.0f,-1.0f); // Bottom Left Of The Quad (Back)
    glVertex3f( 1.0f, 1.0f,-1.0f); // Bottom Right Of The Quad (Back)
    glColor3f(0.0f,0.0f,1.0f); // Color Blue
    glVertex3f(-1.0f, 1.0f, 1.0f); // Top Right Of The Quad (Left)
    glVertex3f(-1.0f, 1.0f,-1.0f); // Top Left Of The Quad (Left)
    glVertex3f(-1.0f,-1.0f,-1.0f); // Bottom Left Of The Quad (Left)
    glVertex3f(-1.0f,-1.0f, 1.0f); // Bottom Right Of The Quad (Left)
    glColor3f(1.0f,0.0f,1.0f); // Color Violet
    glVertex3f( 1.0f, 1.0f,-1.0f); // Top Right Of The Quad (Right)
    glVertex3f( 1.0f, 1.0f, 1.0f); // Top Left Of The Quad (Right)
    glVertex3f( 1.0f,-1.0f, 1.0f); // Bottom Left Of The Quad (Right)
    glVertex3f( 1.0f,-1.0f,-1.0f); // Bottom Right Of The Quad (Right)
  glEnd(); // End Drawing The Cube

  rotqube +=0.9f; // Increase Angle

//NEW//////////////////NEW//////////////////NEW//////////////////NEW/////////////

    return TRUE; // Keep Going
}

/////END OF NEW CUBE

Then I have the following in my main
 
Code: [Select]
 
if (state == FINISHED)
  {
  DrawGLScene();
  }


.-Kypho the beginner

8
hmm, the site should be up, maybe just some sort of problem there :( I tested the link just a minute ago and worked fine.

Well, I try to learn coding slowly :) I have been scripting one adventure game with WMengine too, which I found very nice thing to do and enjoyed it very very much, but still dreaming about learning real c++ coding someday (at least now I get the compiler working...good start):D dammit, it cannot be so difficult if people are doing it!...well, this forum seems to be right place for novice like me to get information and help about the coding stuff too, so thanks people for making this up! I hope you don't get annoyed about my questions which you might find rather simple. But anyway, I felt like if you guys help me to get started with c++ coding, I must give something back to you, even it's just psy-trance music made with lots of nerdswet :P hehe...

Kypho/Caviar Ceacers [PELTO]

9
C / C++ /C# / Re: C/OGL Box tunnel
« on: January 27, 2009 »
I got "undeclared variable" and "identifier not found" errors when trying to combine this program to transition sourcecode...in the attachment I have commented out the "new" tunnel code so it can be seen more easy. I hope somebody can direct me to the right path on this (how to combine these properly), cos I really need this cool tunnel to be in this transition source code :) This transition sourcecode is little bit tweaked too, so don't wonder if it's not exactly the same as in example. It has mp3 playback for example and then scaling.

-Kypho the beginner

10
thanks guys :) I wish at least some of my songs would have something to give to the scene...

- Kypho the beginner

11
GFX & sound / Re: What kind of music do you like?
« on: January 26, 2009 »
well...mainly I listen to psychedelic music, electronic and something played with real instruments, like kingstonwall or hidrian spacefolk...psy trance I like as well. but of course sometimes want to relax with some corny gangsta rap or corny reggae :D chill stuff I like well and also some really relaxed pop rock songs :D hippie country like jayhawks is also something for me and then I like some gospel music too...actually I like everything which I found somehow interesting :/

- Kypho the beginner

12
Here you can find my tracking stuffs...

http://www.traxinspace.com/profile/caviar_ceacers

This is for your enjoyment and if you feel that some of this music could be used on some demo, feel free tell me in this forum topic (ask for permission could be polite) :) Someone new to my music should definetly hear fundamentalism or simon's bpm...but enough for this babblin, get it banging!

- Kypho the beginner

13
C / C++ /C# / Re: Transition demo source code
« on: January 26, 2009 »
Hi Jim.

Thanks for your quick response and help :) I really appreciate you're willing to help beginner like me. I will try that kind of code later tonight or tomorrow :) and I would of course like to hear about that scaleamount variable difference (scoping it was) more...always willing to learn more.

One thing, is it easy to build some kind of timer thing to this program, for example I would like to rotate for 2 sec (and in 2sec the pic flips 1 time) and then use 3 secs for scale (and in 3 secs the pic scales away)? It could be cool to keep in "the rhythm" somehow :P but anyway, thanks and I will be back ;)

- Kypho the beginner

14
C / C++ /C# / Re: Transition demo source code
« on: January 25, 2009 »
Huh, I cannot get working still :(

I made the draw function have a parameter fxType and then some IF things to check what to do :/

Code: [Select]
bool ogl_draw(bool fxType)
{
static float a=0.0f, b=0.0f,binc=0.86f;
static float c=0;

glClear(GL_DEPTH_BUFFER_BIT|GL_COLOR_BUFFER_BIT);
start:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glTranslatef(0,0,-5000);
//rotation
if (fxType == false)
{
glRotatef(c,0,0,1);
}

//scale
if (fxType == true)
{
glScalef(scaleamount,scaleamount,scaleamount);
}

c+=0.5;
if (c > 90)
{c = 90, binc=0;
Sprite *img = images[0];
images[0] = images[1];
images[1] = img;

images[0]->flipx();
images[1]->flipx();
images[0]->dirty();
images[1]->dirty();

c=0,b=0,binc=0.86f;

goto start;
}

//glRotatef(a,axis.x,axis.y,0.0);
//a += 1.0f;
glPushMatrix();
a=0;
images[0]->settexture();
glCullFace(GL_FRONT);
for (int x = 0; x < HSEGS; x++)
{
glPushMatrix();
a = b+(b*x)/HSEGS;
if (a>180)a=180;
glRotatef(a,axis.x,axis.y,0.0);
segs[x]->draw();
glPopMatrix();
}
glPopMatrix();
a=0;
images[1]->settexture();
glCullFace(GL_BACK);
for (int x = 0; x < HSEGS; x++)
{
glPushMatrix();
a = b+(b*x)/HSEGS;
if (a>180)a=180;
glRotatef(a,axis.x,axis.y,0.0);
segs[x]->draw();
glPopMatrix();
}
b=b+binc;

return fxType;
}

and then in the while

Code: [Select]
do
{
MSG msg;
while (PeekMessage(&msg,NULL,0,0, PM_NOREMOVE))
{
if (GetMessage(&msg,NULL,0,0)>0)
{

TranslateMessage(&msg);
DispatchMessage(&msg);

}
else
{
    quit = 1;
break;
}
}

if (!IsPlaying)
{
    playmusic();
}

int i;

for (i=0; i<181; i++)
{
ogl_draw(false);
ogl_flip();
}

float j;

for (j=0.999; j>0.0;j-=0.001)
{
float scaleamount = j;
ogl_draw(true);
}

} while (!quit);

so it should have scaleamount from here and also the bool parameter for scale/rotate choosing.

Quote
Jim wrote: btw, since you're not calling ogl_draw/ogl_flip inside the GetMessage loop any more, your app will eventually become unresponsive and crash.  You need to pump (Get/Dispatch) messages.

I don't understand this...those for loops are on the place where was earlier the ogl_draw() function and flip function too :P How this is not inside GetMessage loop? I understand the for loop is making this problem but I don't see any way to fix it. Cos I need some way to control the lenght of that flipping and as I see it the only way is with for loop(=?)

I also heard from my sister's husband that it would be wise to make a new Draw class for this and then make two "virtual" functions that have same name for example effect, one for scaling and one for rotating which you would use in the draw function by calling the effect function of wanted type...(but as you might know already, this was way beyond my skill level now, and I didn't quite understand it :P)...

-Kypho the beginner

15
C / C++ /C# / Re: Transition demo source code
« on: January 22, 2009 »
 :bfuck2:

Hi guys. I started to play with this code little bit and added mp3 playback and tried to to control the drawing like this (check the two for loops):

Code: [Select]
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg )
{
case WM_KEYDOWN:
switch (wParam)
{
case VK_ESCAPE:
PostQuitMessage(0);
break;
}
break;

case WM_ERASEBKGND:
return 1;

case WM_CLOSE:
case WM_DESTROY:
PostQuitMessage(0);
break;

default:
return DefWindowProc(hwnd, msg, wParam, lParam);
break;
}

return 0;
}


/*void ogl_scale(void)
{
HDC dc;
GLenum err;

err = glGetError();
if (err != GL_NO_ERROR)
{
char tmp[256];
sprintf(tmp, "GLERROR %08X %d\n", err, err);
OutputDebugString(tmp);
}
glScalef(0.1f,0.1f,0.1f);
ogl_draw();
}
*/
//-----------------------------------------------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------------------------------------------
//
//
//
//-----------------------------------------------------------------------------------------------------------------
static char GLSampleClass[32] = "GLHelixTransitionClass";

int WINAPI WinMain(HINSTANCE this_inst, HINSTANCE prev_inst, LPSTR cmdline, int cmdshow)
{
WNDCLASS wc;
int style, exstyle;
RECT rect;

wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
wc.lpfnWndProc = (WNDPROC) WindowProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = this_inst;
wc.hIcon = LoadIcon(NULL, (LPCSTR)IDI_WINLOGO);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = 0;
wc.lpszMenuName = NULL;
wc.lpszClassName = GLSampleClass;
RegisterClass(&wc);

style = WS_OVERLAPPED|WS_SYSMENU|WS_CAPTION;
exstyle = WS_EX_APPWINDOW;
gameWindow = CreateWindowEx(
0,
GLSampleClass, // class
"Helix",
style,
CW_USEDEFAULT,CW_USEDEFAULT, // init. x,y pos
SCREEN_WIDTH,SCREEN_HEIGHT,
NULL, // parent window
NULL, // menu handle
this_inst, // program handle
NULL // create parms
);

GetWindowRect(gameWindow, &rect);
AdjustWindowRectEx(&rect, style, FALSE, exstyle);
SetWindowPos(gameWindow, NULL, 0,0, rect.right-rect.left, rect.bottom-rect.top, SWP_NOMOVE);

ShowWindow(gameWindow, cmdshow);
UpdateWindow(gameWindow);

if (ogl_init() == 0)
{
MessageBox(gameWindow, "Failed Initialising OpenGL", "Failed", MB_OK);
return 0;
}

init_sprite_engine(gameWindow);

init();

quit = 0;
do
{
MSG msg;
while (PeekMessage(&msg,NULL,0,0, PM_NOREMOVE))
{
if (GetMessage(&msg,NULL,0,0)>0)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
{
quit = 1;
break;
}
}

if (!IsPlaying)
{
    playmusic();
}

int i;

for (i=0; i<181; i++)
{
ogl_draw();
ogl_flip();
}

GLfloat j;

for (j=0.999f; j>0.0f;j-=0.001f)
{

glScalef(j,j,j);
ogl_draw();
}

} while (!quit);

ogl_shutdown();

return 0;
}

So, there is a problem that the picture doesn't scale to smaller :/ I tried to make decreasing for loop and put that value to glScalef's attributes, but nothing happens...when I put scaling to first for loop, it scaled nicely and showed me smaller picture. So what I want to do is: Spin the the picture 1 time and then stop it (I tweaked the for loop to make it stop nicely after flipping) and when the image is halted, scale it to eternity :D...but something is bugging this code and I don't know what it is. If somebody could give me hint I would be glad :)

- Kypho the beginner

16
C / C++ /C# / Re: Using Direct3D to Load Images
« on: March 31, 2008 »
okay :) Thanks so much guys, I try that with my friend Ubbo. Good to know that I am not annoying, feel more like home here now  ;D. peace

- Kypho

17
C / C++ /C# / Re: Using Direct3D to Load Images
« on: March 12, 2008 »
Yes, that's what I tried :) Sorry so much to annoy you with my questions...I am trying to learn.

- Kypho

18
C / C++ /C# / Re: Using Direct3D to Load Images
« on: March 11, 2008 »
MMmm..sounds nice, but how to really use this code? all I get is errors...I added all the .h files needed and thingsl like linker option, but it doesn't work :/ the problem in my case might, that I don't know where to put it (proper place).

I have this kind of code for my WIN32 window. It works fine and makes a window, but how I can use this directx code together with that.

Code: [Select]
  //-----------------------------------------------------------------------------
  // Filename: Win32Creation.cpp
  // Description: Creates a simple Win32 window on screen 
  //-----------------------------------------------------------------------------

  #define WIN32_LEAN_AND_MEAN
  #include "Windows.h"



  // Function declarations
  int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);
  LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );

  // Globals
  static char strAppname[]="ANAN JUTTUU";


  //-----------------------------------------------------------------------------
  // Name: WinMain()
  // Desc: The application's entry point
  //-----------------------------------------------------------------------------

  int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  {
      // Register the window class
      WNDCLASSEX wc;

      ZeroMemory(&wc, sizeof(WNDCLASSEX));
      wc.cbSize=sizeof(WNDCLASSEX);                       // size of the window struct in bytes
      wc.style=CS_HREDRAW | CS_VREDRAW | CS_OWNDC;        // window styles to use
      wc.lpfnWndProc=MsgProc;                             // function name of event handler
      wc.hInstance=hInstance;                             // handle to this apps instance
      wc.hbrBackground=(HBRUSH)GetStockObject(GRAY_BRUSH);// background colour of window
      wc.hIcon= LoadIcon(NULL, IDI_APPLICATION);          // icon for the app window
      wc.hIconSm=LoadIcon(NULL, IDI_APPLICATION);         // icon when minimized to taskbar
      wc.hCursor=LoadCursor(NULL, IDC_ARROW);             // cursor to use for this window
      wc.lpszClassName=strAppname;                        // name for this class

      RegisterClassEx( &wc );

      // Create the application's window
      HWND hWnd = CreateWindow(strAppname, strAppname,
  WS_OVERLAPPEDWINDOW |WS_BORDER | WS_MAXIMIZE, 0, 0, 1280, 960,
          NULL, NULL, wc.hInstance, NULL );

      // Show the window
      ShowWindow( hWnd, nCmdShow );
      UpdateWindow( hWnd );

      // Enter the message loop
      MSG msg;
      ZeroMemory( &msg, sizeof(msg) );
      while( msg.message!=WM_QUIT )
      {
          if( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )
          {
              TranslateMessage( &msg );
              DispatchMessage( &msg );
          }
          else
          {
              // no winmessages, idle code here
          }
      }

      UnregisterClass( strAppname, wc.hInstance );
      return 0;

  }


  //-----------------------------------------------------------------------------
  // Name: MsgProc()
  // Desc: The window's message handler
  //-----------------------------------------------------------------------------
  LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )
  {
      HDC hDC;
      PAINTSTRUCT PaintStruct;

      switch( msg )
      {
      case WM_PAINT:
          {
              hDC=BeginPaint(hWnd, &PaintStruct);     // Tell windows we want to update the window

              // Do GDI drawing here

              EndPaint(hWnd, &PaintStruct);
              return 0;
          }


      case WM_DESTROY:
          {
              PostQuitMessage( 0 );
              return 0;
          }

      default:

          return DefWindowProc( hWnd, msg, wParam, lParam );
      }


  }


------ Build started: Project: Win32creation, Configuration: Debug Win32 ------
Compiling...
png.cpp
d:\demo\win32creation\png.cpp(11) : error C2143: syntax error : missing ';' before '.'
d:\demo\win32creation\png.cpp(11) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(11) : error C2371: 'd3dpp' : redefinition; different basic types
        d:\demo\win32creation\png.cpp(10) : see declaration of 'd3dpp'
d:\demo\win32creation\png.cpp(12) : error C2143: syntax error : missing ';' before '.'
d:\demo\win32creation\png.cpp(12) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(12) : error C2371: 'd3dpp' : redefinition; different basic types
        d:\demo\win32creation\png.cpp(10) : see declaration of 'd3dpp'
d:\demo\win32creation\png.cpp(13) : error C2143: syntax error : missing ';' before '.'
d:\demo\win32creation\png.cpp(13) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(13) : error C2371: 'd3dpp' : redefinition; different basic types
        d:\demo\win32creation\png.cpp(10) : see declaration of 'd3dpp'
d:\demo\win32creation\png.cpp(14) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(14) : error C2040: 'd3d9' : 'int' differs in levels of indirection from 'IDirect3D9 *'
d:\demo\win32creation\png.cpp(14) : error C2440: 'initializing' : cannot convert from 'IDirect3D9 *' to 'int'
        There is no context in which this conversion is possible
d:\demo\win32creation\png.cpp(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(15) : error C2371: 'err' : redefinition; different basic types
        d:\demo\win32creation\png.cpp(5) : see declaration of 'err'
d:\demo\win32creation\png.cpp(15) : error C2065: 'hWnd' : undeclared identifier
d:\demo\win32creation\png.cpp(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(17) : error C2065: 'img' : undeclared identifier
d:\demo\win32creation\png.cpp(17) : error C2065: 'size' : undeclared identifier
d:\demo\win32creation\png.cpp(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(17) : error C2365: 'D3DXCreateTextureFromFileInMemory' : redefinition; previous definition was 'function'
        d:\demo\win32creation\d3dx9tex.h(1450) : see declaration of 'D3DXCreateTextureFromFileInMemory'
d:\demo\win32creation\png.cpp(17) : error C2078: too many initializers
d:\demo\win32creation\png.cpp(17) : error C2440: 'initializing' : cannot convert from 'IDirect3DTexture9 **__w64 ' to 'int'
        There is no context in which this conversion is possible
d:\demo\win32creation\png.cpp(20) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(20) : error C2040: 'd3dtex' : 'int' differs in levels of indirection from 'IDirect3DTexture9 *'
d:\demo\win32creation\png.cpp(21) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(21) : error C2040: 'pix' : 'int' differs in levels of indirection from 'unsigned int *'
d:\demo\win32creation\png.cpp(21) : error C2440: 'initializing' : cannot convert from 'unsigned int *' to 'int'
        There is no context in which this conversion is possible
d:\demo\win32creation\png.cpp(22) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(22) : error C2040: 'd3dtex' : 'int' differs in levels of indirection from 'IDirect3DTexture9 *'
d:\demo\win32creation\png.cpp(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(24) : error C2040: 'src' : 'int' differs in levels of indirection from 'unsigned int *'
d:\demo\win32creation\png.cpp(24) : error C2440: 'initializing' : cannot convert from 'unsigned int *' to 'int'
        There is no context in which this conversion is possible
d:\demo\win32creation\png.cpp(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(25) : error C2040: 'dst' : 'int' differs in levels of indirection from 'unsigned int *'
d:\demo\win32creation\png.cpp(25) : error C2440: 'initializing' : cannot convert from 'unsigned int *' to 'int'
        There is no context in which this conversion is possible
d:\demo\win32creation\png.cpp(26) : error C2059: syntax error : 'for'
d:\demo\win32creation\png.cpp(26) : error C2143: syntax error : missing ')' before ';'
d:\demo\win32creation\png.cpp(26) : error C2143: syntax error : missing ';' before '<'
d:\demo\win32creation\png.cpp(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(26) : error C2143: syntax error : missing ';' before '++'
d:\demo\win32creation\png.cpp(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(26) : error C2086: 'int y' : redefinition
        d:\demo\win32creation\png.cpp(26) : see declaration of 'y'
d:\demo\win32creation\png.cpp(26) : error C2059: syntax error : ')'
d:\demo\win32creation\png.cpp(27) : error C2143: syntax error : missing ';' before '{'
d:\demo\win32creation\png.cpp(27) : error C2447: '{' : missing function header (old-style formal list?)
d:\demo\win32creation\png.cpp(32) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(32) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(32) : error C2040: 'd3dtex' : 'int' differs in levels of indirection from 'IDirect3DTexture9 *'
d:\demo\win32creation\png.cpp(33) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(33) : error C2040: 'd3dtex' : 'int' differs in levels of indirection from 'IDirect3DTexture9 *'
d:\demo\win32creation\png.cpp(34) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(34) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(34) : error C2040: 'd3ddev' : 'int' differs in levels of indirection from 'IDirect3DDevice9 *'
d:\demo\win32creation\png.cpp(35) : error C2143: syntax error : missing ';' before '->'
d:\demo\win32creation\png.cpp(35) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\demo\win32creation\png.cpp(35) : error C2040: 'd3d9' : 'int' differs in levels of indirection from 'IDirect3D9 *'
Build log was saved at "file://d:\demo\Win32creation\Debug\BuildLog.htm"
Win32creation - 59 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


-Kypho (forever beginner:))

19
Somehow you are missing the "" round a path, so instead of seeing

"c:\documents and settings"

as one thing, it's seeing 3 things

c:\documents
and
settings


I tried to add "" to paths in tools/projects and solutions but it didn't let me do that :/ I have no idea where is this path located.
So seems again that more guidance is needed. Where actually I should fix this path?

20
Yeah, those could come handy!  :goodpost:

Pages: [1] 2