Click here to Skip to main content
15,910,787 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: is it stack or heap? Pin
georgemarios27-Oct-05 6:40
georgemarios27-Oct-05 6:40 
QuestionHow to generate a custom warning at compile time in C++ Pin
Anonymous26-Oct-05 18:41
Anonymous26-Oct-05 18:41 
AnswerRe: How to generate a custom warning at compile time in C++ Pin
Anonymous27-Oct-05 1:02
Anonymous27-Oct-05 1:02 
QuestionConverting a C++ style string into something execvp can use. Pin
Anonymous26-Oct-05 9:47
Anonymous26-Oct-05 9:47 
AnswerRe: Converting a C++ style string into something execvp can use. Pin
Christian Graus26-Oct-05 10:39
protectorChristian Graus26-Oct-05 10:39 
QuestionHigh Compression based software Solution Pin
ANPPS26-Oct-05 8:56
ANPPS26-Oct-05 8:56 
AnswerRe: High Compression based software Solution Pin
Christian Graus26-Oct-05 10:49
protectorChristian Graus26-Oct-05 10:49 
QuestionDamn that 4kbytes of leak memory Pin
Alex Cutovoi26-Oct-05 7:42
Alex Cutovoi26-Oct-05 7:42 
Hi again fellows

I have this function in my code:

void ImprimeTexto(unsigned int iFont, const char* cValue)
{
if(iFont == 0) return;
glEnable(GL_BLEND);
glPushAttrib(GL_LIST_BIT);
glListBase(iFont - 32);
glCallLists(strlen(cValue), GL_UNSIGNED_BYTE, cValue);
glPopAttrib();
glDisable(GL_BLEND);
}

Because of my const char cValue variable I have a leak memory of 4kbytes.
I need to pass a variable of type const char because the glCallLists(an OpenGL function) needs. The last parameter is a pointer to GLVoid.
Here is the function signature:

GLAPI void APIENTRY glCallLists( GLsizei n, GLenum type, const GLvoid *lists );

I've tried to pass a std::string but the function doesn't works D'Oh! | :doh: .
Guys, can you help me in this??


Thanks a lot
AnswerRe: Damn that 4kbytes of leak memory Pin
Christian Graus26-Oct-05 10:49
protectorChristian Graus26-Oct-05 10:49 
AnswerRe: Damn that 4kbytes of leak memory Pin
georgemarios27-Oct-05 1:43
georgemarios27-Oct-05 1:43 
QuestionWin32 to .Net DLLs, character sets Pin
wikoh26-Oct-05 7:12
wikoh26-Oct-05 7:12 
Question,HOW TO PROGRAM POPUP DICTIONARY? Pin
Anonymous26-Oct-05 0:05
Anonymous26-Oct-05 0:05 
AnswerRe: ,HOW TO PROGRAM POPUP DICTIONARY? Pin
toxcct26-Oct-05 0:35
toxcct26-Oct-05 0:35 
AnswerRe: ,HOW TO PROGRAM POPUP DICTIONARY? Pin
cynferdd26-Oct-05 0:43
cynferdd26-Oct-05 0:43 
JokeRe: how to blabla Pin
toxcct26-Oct-05 0:52
toxcct26-Oct-05 0:52 
GeneralRe: how to blabla Pin
cynferdd26-Oct-05 1:05
cynferdd26-Oct-05 1:05 
JokeRe: how to blabla Pin
toxcct26-Oct-05 1:10
toxcct26-Oct-05 1:10 
JokeRe: how to blabla Pin
cynferdd26-Oct-05 1:17
cynferdd26-Oct-05 1:17 
AnswerBut seriously, folks.... Pin
wikoh26-Oct-05 6:46
wikoh26-Oct-05 6:46 
GeneralRe: But seriously, folks.... Pin
toxcct26-Oct-05 7:29
toxcct26-Oct-05 7:29 
Questionstrange behavior ... anybody knows why? Pin
FreeClimber25-Oct-05 4:33
FreeClimber25-Oct-05 4:33 
AnswerRe: strange behavior ... anybody knows why? Pin
Christian Graus25-Oct-05 12:43
protectorChristian Graus25-Oct-05 12:43 
GeneralRe: strange behavior ... anybody knows why? Pin
FreeClimber25-Oct-05 20:58
FreeClimber25-Oct-05 20:58 
QuestionNewbie in direct.h Pin
Alex Cutovoi25-Oct-05 3:36
Alex Cutovoi25-Oct-05 3:36 
AnswerRe: Newbie in direct.h Pin
Christian Graus25-Oct-05 12:43
protectorChristian Graus25-Oct-05 12:43 

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.