Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCreating Child Frame Pin
act_x8-Apr-02 12:41
act_x8-Apr-02 12:41 
GeneralEnabling active x component :(( :(( Pin
act_x8-Apr-02 12:01
act_x8-Apr-02 12:01 
GeneralRe: Enabling active x component :(( :(( Pin
Joaquín M López Muñoz8-Apr-02 12:10
Joaquín M López Muñoz8-Apr-02 12:10 
Generalforward variable argument lists Pin
8-Apr-02 11:47
suss8-Apr-02 11:47 
GeneralRe: forward variable argument lists Pin
Joaquín M López Muñoz8-Apr-02 11:57
Joaquín M López Muñoz8-Apr-02 11:57 
GeneralRe: forward variable argument lists Pin
9-Apr-02 6:30
suss9-Apr-02 6:30 
GeneralRe: forward variable argument lists Pin
Alexandru Savescu8-Apr-02 22:31
Alexandru Savescu8-Apr-02 22:31 
Generalconstructor problem (newbie) Pin
marcela8-Apr-02 11:39
marcela8-Apr-02 11:39 
Hello all, I was wondering if someone could help me with this little problem.

I have the class constructor where I initialize protected member m_categoria (LPCTSTR):

CAdministrador::CAdministrador()
{
char buffer[_MAX_PATH];
_getcwd( buffer, _MAX_PATH );
CString nom = "";
nom = nom + buffer + "\\General";
m_categoria = nom;
AfxMessageBox(m_categoria);
}

The value comes out Ok in the message box; but then I try to look at the value in another function and I get crap:

BOOL CAdministrador::AgregarCategoria(LPCTSTR nombre)
{
AfxMessageBox(categoria);
CString nom = "";
nom = nom + m_categoria + "\\" + nombre;
if (_mkdir(nom) == 0)
return TRUE;
else
return FALSE;
}

The call is simply this:

CAdministrador admin;
if (!admin.AgregarCategoria("blah"))
AfxMessageBox("didn't work...");

Please excuse me if this question is extremely dumb Confused | :confused:

marcela bovio


GeneralRe: constructor problem (newbie) Pin
Joaquín M López Muñoz8-Apr-02 11:39
Joaquín M López Muñoz8-Apr-02 11:39 
GeneralRe: constructor problem (newbie) Pin
Christian Graus8-Apr-02 11:41
protectorChristian Graus8-Apr-02 11:41 
GeneralRe: constructor problem (newbie) Pin
Joaquín M López Muñoz8-Apr-02 11:46
Joaquín M López Muñoz8-Apr-02 11:46 
GeneralRe: constructor problem (newbie) Pin
marcela8-Apr-02 11:49
marcela8-Apr-02 11:49 
GeneralTool tip text Pin
8-Apr-02 11:11
suss8-Apr-02 11:11 
GeneralRe: Tool tip text Pin
Joaquín M López Muñoz8-Apr-02 11:20
Joaquín M López Muñoz8-Apr-02 11:20 
GeneralRe: Tool tip text Pin
Alexandru Savescu8-Apr-02 22:22
Alexandru Savescu8-Apr-02 22:22 
Generaltemplate members Pin
Jamie Hale8-Apr-02 10:25
Jamie Hale8-Apr-02 10:25 
GeneralRe: template members Pin
Joaquín M López Muñoz8-Apr-02 10:25
Joaquín M López Muñoz8-Apr-02 10:25 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:53
Jamie Hale9-Apr-02 4:53 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 5:05
Joaquín M López Muñoz9-Apr-02 5:05 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 5:17
Jamie Hale9-Apr-02 5:17 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 5:41
Joaquín M López Muñoz9-Apr-02 5:41 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 5:45
Jamie Hale9-Apr-02 5:45 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:12
Joaquín M López Muñoz9-Apr-02 6:12 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:38
Jamie Hale9-Apr-02 6:38 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:15
Joaquín M López Muñoz9-Apr-02 6:15 

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.