Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

antonio343

@antonio343
About
Posts
57
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Do event when variable is modified
    A antonio343

    Please, can you show me an example?? Thank you so much!

    Java question sysadmin

  • Do event when variable is modified
    A antonio343

    Yes, you are right, but I receive the message from the server in the event of press this button, and not all the client press the button. I need an event that run automatic when a value change in the server, becouse not all the client will receive the value changed.

    Java question sysadmin

  • Do event when variable is modified
    A antonio343

    If I understood good your answer, I can't implement this, becouse I receive the comunication when the client press a button, but this button only press one client, and not all the client. However, to finish the program I need send an message to all client, but if only press the button one client only receive the message this client and not all. Thank you so much, if I wrong, please check me

    Java question sysadmin

  • Do event when variable is modified
    A antonio343

    Hi, I've an aplication client-server, and I need to do an event in the client when one variable is modified in the server. it is posible??? I know that in the server or in the client is posible with propertychangelistener, but I don't know if it is posible by this way and how can I do it. Thank you, so much

    Java question sysadmin

  • Delete tab
    A antonio343

    Yes I cheked, and I think that here there aren't any to indicate the number of tab.

    In " AdestView.cpp" there is a function that call one function of this file:

    [code]
    void CAdestView::OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/)
    {
    ........
    ....
    ...
    if (!m_wndFolderTab.GetItemCount ())
    {

    		// Si no tiene ningún elemento es porque todavía no se ha creado
    		// Inserto las dos tabulaciones
                       //insert two tab
    		m\_wndFolderTab.CreateFromStatic (IDC\_FOLDERTAB, this);
    		m\_wndFolderTab.Load (IDR\_FOLDERTABS);
    		f = m\_Lista.GetFont ();
    		// Actualizo la fuente de las tabulaciones
    		m\_wndFolderTab.SetFonts (f,f);
    	}
    

    ...
    ...
    [/code]

    But I don't know how to create only one tab and not two

    C / C++ / MFC com tutorial question

  • Delete tab
    A antonio343

    Hi, I have an app that has two tab, "informes" and "variables", but I have to delete the informes tab becouse now it is not used. The code isn't me, and due to it, I don't know how to delete the tab. This is the app. http://i42.tinypic.com/2bwfiu.png I think that the tab is created in Ftab file, but I dont know where. http://www.megaupload.com/?d=UDMM3WC5[^]

    C / C++ / MFC com tutorial question

  • setup with active x
    A antonio343

    Nooo, I have added the msflegrid in my dialog, but now, I did a setup to be able to install my app in any pc, and I need add the activeX here. If I run the setup I get this: Can not find source file 'C: \ Windows \ System32 \ msflxgrd.ocx' for file 'msflxgrd.ocx' located in '[TARGETDIR]', the file may be missing or blocked. I followed this page: http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/[^]

    C / C++ / MFC c++ question css com workspace

  • setup with active x
    A antonio343

    Hi, I did a setup to install my app, but I need add the activeX (msflxgrd) to show a grid. How can I add the active X to my project?? Thank you. The project is in Visual C++, mfc.

    C / C++ / MFC c++ question css com workspace

  • Save as.. and open
    A antonio343

    Ok, thank you very much Everything run right

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    I'm triying to do this:

    void CDlgResultados::SaveToFile(void)
    {
    this->UpdateData();

    CFile f;
    
    CString strFilter =\_T("\*.txt");
    
    CFileDialog FileDlg(FALSE, \_T(".txt"), NULL, 0, strFilter);
    
    if( FileDlg.DoModal() == IDOK )
    {
    f.Open(FileDlg.GetFileName(), CFile::modeCreate | CFile::modeWrite);
    	CArchive ar(&f, CArchive::store);
    
    	ar << cadena;
    	ar.Close();
    }
    else
    	return;
    
    f.Close();
    

    }

    Everything run well, but it function save the file in the folder of my project and not when I want. what happen?

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    Could you show me how to use to load/save file with CFileDialog?? I dont find some example

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    I'm sorry, I didn't understand very well what you said. What do you mean? I have a button in a dialog, which I'd like to be the open botton (Load). I know that in the toolbar there are this button but they haven't code only BEGIN_MESSAGE_MAP(CAdestApp, CWinAppEx) ON_COMMAND(ID_FILE_OPEN, &CWinAppEx::OnFileOpen) ..

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    Yes Im using mfc, then I must look CFileDialog?

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    I'd like to add this button in a dialog. But I dnt know where are these button or if its ones is already made

    C / C++ / MFC com question

  • Save as.. and open
    A antonio343

    Hi, I'd like to make the button save as.. and load, but I think that maybe this button is made in visual as activeX or something like that. Do you know if it is made already?

    C / C++ / MFC com question

  • Problem with read in CFile class
    A antonio343

    But the file isn't binary, it is text file, and dont show well the content I'm sorry, you are right, the content is read well Thank you so much, finally I get to do run well my function

    C / C++ / MFC help graphics

  • Problem with read in CFile class
    A antonio343

    I tried to do this:

    int nLength = b.GetLength() + 1; // string lenght in characters
    int nBytes = nLength * sizeof(TCHAR); // buffer size in bytes
    f.Write(&nLength, sizeof(int)); // write string length
    f.Write(b, nBytes); // write string
    f.Write(&a,sizeof(double));

    And the problem is the same, this is the content of the file:

    h o l a C a r a c o l a š™™™™™#@

    C / C++ / MFC help graphics

  • Problem with read in CFile class
    A antonio343

    ok.. But I don't need to show. In the first function that I post here, I need to copy the value of variable in a file, and after load the value in variable, I dont know how to do it, becouse I try with fread/fwrite, CFile class, CStdio class, and I don't get something. The problem is the variable are several kind of dates, CString, double, int... but I think that the main problem is save and load CString kind.

    C / C++ / MFC help graphics

  • Problem with read in CFile class
    A antonio343

    The content from the file isn't correct!!!!! I wrote hello and 9.8 and it isn't the content of the file. In adittion, I made a method to read the file

    CStdioFile f;
    CString b;
    double a;

    	// Se abre el fichero para escritura
    CString path= GetUserHomeDir() + \_T("\\\\temporal.txt");
    f.Open(path, CFile::modeRead | CFile::typeText);
    
    f.ReadString(b);
    f.Read(&a,sizeof(double));
    
    f.Close();
    

    And it dont read well. It read hello#@ and in the other variable, read rubbish

    C / C++ / MFC help graphics

  • Problem with read in CFile class
    A antonio343

    I did other example to prove somthing, I did :

    CStdioFile f;

    	// Se abre el fichero para escritura
    CString path= GetUserHomeDir() + \_T("\\\\temporal.txt");
    f.Open(path, CFile::modeCreate | CFile::modeWrite | CFile::typeText);
    
    double a=9.8;
    CString b=\_T("hello");
    
    f.WriteString(b);
    f.Write(&a,sizeof(double));
    
    f.Close();
    

    I see the content from the file, and only wrote hello. This is the content from the file: hello™™™™™#@

    C / C++ / MFC help graphics
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups