« first day (20 days earlier)      last day (39 days later) » 

12:00 AM
@milleniumbug What a nabiatch
 
seems all works fine... tomorrow id have to do more tests
many thanks for your collaboration....
an a final question just if i have look... is there any way to input text like scanf or cin from opengl ??? i have a game and i want the player to write its name in the window of the game in opengl when he gets a high score....
5
 
 
11 hours later…
10:33 AM
@milleniumbug I went to sleep
 
 
3 hours later…
1:51 PM
@EduardoGutierrez OpenGL is so much fun.
 
 
7 hours later…
8:28 PM
#include <iostream.h>
#include <string.h>

char *
bad_strdup(const char *s)
{
char s2[10000];
strncpy(s2, s, 10000);
return s2;
}

int
main(int argc, char *argv[])
{
char *s2 = bad_strdup("this is a test");
char *s1 = bad_strdup("eat my lunch");

cout << "s2 = " << s2 << endl;
}
With g++, you get the following output:
s2 = eat my lunch
can anybody explain the unexpected results ?
 
Sorry folks i've inherited some ancient C++ code that I'm supposed to fix. After finally getting the project to open some of the errors are quite difficult to even pose a question. Is there anyone willing to help me determine some strange unresolved external symbol errors?
 
1 message moved from Lounge<C++>
 
@JonH I'm sorry. :D
 
Error 110 error LNK2001: unresolved external symbol "struct resbuf * __cdecl acedGetArgs(void)" (?acedGetArgs@@YAPAUresbuf@@XZ) C:\Users\jhermiz\Desktop\JAK_CAD_2010\JAK_MSG.ob‌​j JAK_CAD_2005
Not even sure where to look...
 
8:41 PM
@JonH search
 
@JonH I see the problem... Visual Studio.
 
ya sure :-)
 
@JonH the linker can't find the definition of a function that looks like struct resbuf * acedGetArgs(void).
 
@JonH You need some library (Autodesk?) installed and in the library path for the solution
 
8:42 PM
I did that sehe
 
Soething related to AutoCAD/Autodesk/-tools
 
I went to the project properties in the linker and added the path
 
how do you guys get back on focus when you're distracted?
 
> the path
 
@JonH you also need to tell it to link the library. the name/version may have changed since 2010 :)
 
8:43 PM
Clearly not the right path
 
Can anyone please assist me in a seperate room? Ill buy them a beer or lunch ? :-)
 
@melak47 Better to use the library version that it was tested/developed with. Should be on file in source control/release management
 
Are you linking against the autocad SDK or something?
 
I had to download something called ObjectARX from autodesk
 
8:46 PM
@JonH your project should be trying to link some libraries from that.
first I'd make sure it's even trying to do that. then, as @sehe said, make sure you're linking against the 2010 version if you're targetting autocad 2010 stuff
also, I have no idea if you're gonna have problems if the ObjectARX 2010 version was built with VS 2008 and you're using something newer :D
 
9:20 PM
It's funny to see (a) the people who're actually helping in this room (b) how much that help is being absorbed
 
9:40 PM
@sehe poor guy is probably sobbing in a corner :(
 

« first day (20 days earlier)      last day (39 days later) »