Click here to Skip to main content
15,887,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: files stream & iterators Pin
Rob Grainger25-Aug-10 5:35
Rob Grainger25-Aug-10 5:35 
GeneralRe: files stream & iterators Pin
Cedric Moonen25-Aug-10 7:08
Cedric Moonen25-Aug-10 7:08 
AnswerRe: files stream & iterators Pin
Maximilien25-Aug-10 4:24
Maximilien25-Aug-10 4:24 
AnswerRe: files stream & iterators Pin
prasad_som26-Aug-10 2:42
prasad_som26-Aug-10 2:42 
AnswerRe: files stream & iterators Pin
Sauro Viti25-Aug-10 4:34
professionalSauro Viti25-Aug-10 4:34 
AnswerRe: files stream & iterators PinPopular
Aescleal25-Aug-10 8:31
Aescleal25-Aug-10 8:31 
AnswerRe: files stream & iterators Pin
Niklas L25-Aug-10 20:34
Niklas L25-Aug-10 20:34 
QuestionGLFW Across multiple files Pin
Chris Copeland25-Aug-10 3:31
mveChris Copeland25-Aug-10 3:31 
Hey there guys,

Okay I have my current code working for GLFW. Effectively i'm just trying to build a small main-frame which I can build on. I have IniApi.cc that stores the main() routine. I have CharKeyCallback.cc which handles the glfwSetCharCallback() just fine.

However, i'm trying to make a Texture class which will load textures from a file and store them in memory. So, I placed this at the top of the Texture.cc file:

#include <Windows.h>
#include <GL/glfw.h>
#include <stdio.h>

#include "Texture.h"


And my "load" function works like this:

bool Texture::ReadImage()
{
	glfwReadImage(_filename, ImageData, _flags);
	return !(ImageData == NULL);
}


(If it appears messy or simple, it's because i'm just laying the foundations at the moment).

However, when I go to compile, I receive the following error:
error LNK2019: unresolved external symbol _glfwReadImage referenced in function "public: bool __thiscall Texture::ReadImage(void)" (?ReadImage@Texture@@QAE_NXZ)


Now, my InitApi.cc runs the lpfw functions just fine, which means the library & DLL have been loaded (glfwOpenWindow opens a window successfully) but Texture.cc won't recognise the lpfw functions, even though i've included #include <GL/glfw.h> at the top.

Any suggestions? Thank you Smile | :)
AnswerRe: GLFW Across multiple files Pin
Chris Copeland25-Aug-10 3:34
mveChris Copeland25-Aug-10 3:34 
QuestionHelp with Standard Input Pin
Danzy8325-Aug-10 1:13
Danzy8325-Aug-10 1:13 
AnswerRe: Help with Standard Input PinPopular
CPallini25-Aug-10 1:36
mveCPallini25-Aug-10 1:36 
AnswerRe: Help with Standard Input Pin
carter200025-Aug-10 3:05
carter200025-Aug-10 3:05 
GeneralRe: Help with Standard Input Pin
CPallini25-Aug-10 3:23
mveCPallini25-Aug-10 3:23 
QuestionHide TilteBar CMFCToolBar window Pin
Benjamin Bruno25-Aug-10 0:42
Benjamin Bruno25-Aug-10 0:42 
AnswerRe: Hide TilteBar CMFCToolBar window Pin
Sauro Viti25-Aug-10 1:15
professionalSauro Viti25-Aug-10 1:15 
QuestionSize of SDI window in MDI applcation Pin
Anu_Bala24-Aug-10 23:13
Anu_Bala24-Aug-10 23:13 
QuestionCString Pin
raju_shiva24-Aug-10 19:23
raju_shiva24-Aug-10 19:23 
AnswerRe: CString Pin
Niklas L24-Aug-10 19:43
Niklas L24-Aug-10 19:43 
AnswerRe: CString [modified] Pin
Shivanand Gupta24-Aug-10 20:38
Shivanand Gupta24-Aug-10 20:38 
GeneralRe: CString Pin
goorley24-Aug-10 22:34
goorley24-Aug-10 22:34 
GeneralRe: CString Pin
CPallini24-Aug-10 23:28
mveCPallini24-Aug-10 23:28 
AnswerRe: CString Pin
CPallini24-Aug-10 21:18
mveCPallini24-Aug-10 21:18 
GeneralRe: CString Pin
raju_shiva24-Aug-10 21:49
raju_shiva24-Aug-10 21:49 
GeneralRe: CString Pin
CPallini24-Aug-10 21:58
mveCPallini24-Aug-10 21:58 
GeneralRe: CString Pin
raju_shiva25-Aug-10 22:20
raju_shiva25-Aug-10 22:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.