Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenGL MDI application Pin
Mazdak25-Feb-02 3:56
Mazdak25-Feb-02 3:56 
GeneralRegistry in txt Pin
25-Feb-02 2:33
suss25-Feb-02 2:33 
GeneralRe: Registry in txt Pin
Nish Nishant25-Feb-02 2:41
sitebuilderNish Nishant25-Feb-02 2:41 
GeneralRe: Registry in txt Pin
25-Feb-02 2:55
suss25-Feb-02 2:55 
GeneralIUserNotification Interface => Pin
25-Feb-02 2:38
suss25-Feb-02 2:38 
GeneralPreventing ListCtrl Column Resizing Pin
Andrew Hirst25-Feb-02 2:11
Andrew Hirst25-Feb-02 2:11 
GeneralRe: Preventing ListCtrl Column Resizing Pin
Joaquín M López Muñoz25-Feb-02 2:37
Joaquín M López Muñoz25-Feb-02 2:37 
QuestionIs this is string really a string ? Pin
Mauricio Ritter25-Feb-02 2:10
Mauricio Ritter25-Feb-02 2:10 
I was working on one of my projects and faced this problem:

I got a function that receives a LPTSTR parameter. This parameter can be a string, representing a file, or a resource (result of the MAKEINTRESOURCE).
It´s something like this:

void (LPTSTR lpszFile)
{
DWORD dwSize = strlen(lpszFile);
}

The problem is that if this string is the result of the MAKEINTRESOURCE macro, it´s not REALLY a string... it´s an resource ID. If I call strlen with this as a paremeter I´ll get a Access Violation.
The question is, how can I figure out if a string is a string or a resource Id ? I find a MACRO in MSDN docs called IS_INTRESOURCE but I tried to use it and it states that this macro is not defined. I checked the winuser.h and it´s not there. I don´t use the latest version of Plataform SDK, but I assume that this macro is defined there. Can someone gimme the definition of this macro or some other way to figure out if the string is really a string ?


Mauricio Ritter - Brazil
Sonorking now: 100.13560 Trank

AnswerRe: Is this is string really a string ? Pin
Joaquín M López Muñoz25-Feb-02 2:26
Joaquín M López Muñoz25-Feb-02 2:26 
AnswerRe: Is this is string really a string ? Pin
Nish Nishant25-Feb-02 2:26
sitebuilderNish Nishant25-Feb-02 2:26 
GeneralRe: Is this is string really a string ? Pin
Mauricio Ritter25-Feb-02 2:45
Mauricio Ritter25-Feb-02 2:45 
GeneralAnother quick thread problem! Pin
Jon Hulatt25-Feb-02 1:59
Jon Hulatt25-Feb-02 1:59 
GeneralRe: Another quick thread problem! Pin
Joaquín M López Muñoz25-Feb-02 2:34
Joaquín M López Muñoz25-Feb-02 2:34 
GeneralRe: Another quick thread problem! Pin
Jon Hulatt25-Feb-02 3:06
Jon Hulatt25-Feb-02 3:06 
GeneralThe Bitmap ran away..... Pin
Spock25-Feb-02 1:35
Spock25-Feb-02 1:35 
GeneralSendInput question Pin
Haim Yulzari25-Feb-02 0:47
Haim Yulzari25-Feb-02 0:47 
QuestionHow you find how many MDI child windows are open ? Pin
25-Feb-02 0:01
suss25-Feb-02 0:01 
AnswerRe: How you find how many MDI child windows are open ? Pin
Paul M Watt25-Feb-02 0:31
mentorPaul M Watt25-Feb-02 0:31 
GeneralSending message to MessageBox ... Pin
Hadi Rezaee25-Feb-02 0:01
Hadi Rezaee25-Feb-02 0:01 
GeneralRe: Sending message to MessageBox ... Pin
Paul M Watt25-Feb-02 0:07
mentorPaul M Watt25-Feb-02 0:07 
GeneralRe: Sending message to MessageBox ... Pin
Nish Nishant25-Feb-02 1:27
sitebuilderNish Nishant25-Feb-02 1:27 
GeneralRe: Sending message to MessageBox ... Pin
Ravi Bhavnani25-Feb-02 1:41
professionalRavi Bhavnani25-Feb-02 1:41 
GeneralPainting Pin
Wizard_0124-Feb-02 23:43
Wizard_0124-Feb-02 23:43 
GeneralRe: Painting Pin
Paul M Watt24-Feb-02 23:57
mentorPaul M Watt24-Feb-02 23:57 
QuestionHTML to rtf conversion? Pin
Kumar saurabh24-Feb-02 23:19
Kumar saurabh24-Feb-02 23:19 

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.