I think it was only a language problem, i very well know about the comma in the for statement but when i read that in, i though about letter character that was already inside the body of the for...
Type: Posts; User: Smjert
I think it was only a language problem, i very well know about the comma in the for statement but when i read that in, i though about letter character that was already inside the body of the for...
I think you have to look better at line 14, how you're declaring your function arguments ;).
The first requirement is just telling you to change one line, from what i understand (even though i fail to see the reason):
char letter = ',';
For the second requirement, if you look how you...
Ok i realized it myself, you already gave me the right solution but i interpreted it so i haven't done what you said (i didn't realize that defining MESH_TOOL_API when i use the header from the other...
I'm using Visual Studio 2008, i tried it with forward declaration (forgot about it thnx!), it compiles but it still gives the same linking error.
Tomorrow i'll try to find more about it ;).
Thnx for the link, but if i read it i can find:
template class __declspec(dllexport) B<int>;
class __declspec(dllexport) D : public B<int> {
// ...
This workaround fails if the template...
I have a linking problem, i have a project that compiles in a dll:
header:
#ifndef MESH_TOOL_H
#define MESH_TOOL_H
#include "Ogre.h"
oh damn i hate myself a lot now xD
So stupid mistake, i forgot that i close the handle to let another handle open the file and then when i reopen the old handle i use the append mode -.- .
I use a fstream variabile to open a file in write and read mode.
fstream file;
file.open("filepath", ios::in | ios::out | ios:: binary);
What's the difference between using seekg or seekp?...
The fact is that pfunc cannot be null if ListSearch find a valid ID, it was my fault to initialize plist->ID (in Initialize function) to 0, because when HandlePacket encounter a 0 ID in the buffer...
Yes i'm referring to the jump, and i still have that problem, i only changed a line to solve the first problem.
This:
void Initialize(RecvPacketList **plist)
{
pFunction temp = NULL;...
Oh lol it was so simple XD, but i thought valgrind was referring to the last object i added to the list :\
Don't worry you're not pedantic :P and i'm not english, i chose the wrong word ^^
...
But it's initialized!
Maybe it's difficult to understand the order of the execution so:
All starts from Listen function (called by a new thread created), as you can see there is the "real"...
I'm using Valgrind to find if there's bug in my program (i'm coding under linux) and it find someting, but i don't understand where's the problem.
Valgrind sais:
For the first error valgrind...