Please, can you show me an example?? Thank you so much!
antonio343
Posts
-
Do event when variable is modified -
Do event when variable is modifiedYes, 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.
-
Do event when variable is modifiedIf 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
-
Do event when variable is modifiedHi, 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
-
Delete tabYes 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
-
Delete tabHi, 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[^]
-
setup with active xNooo, 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/[^]
-
setup with active xHi, 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.
-
Save as.. and openOk, thank you very much Everything run right
-
Save as.. and openI'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?
-
Save as.. and openCould you show me how to use to load/save file with CFileDialog?? I dont find some example
-
Save as.. and openI'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) ..
-
Save as.. and openYes Im using mfc, then I must look CFileDialog?
-
Save as.. and openI'd like to add this button in a dialog. But I dnt know where are these button or if its ones is already made
-
Save as.. and openHi, 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?
-
Problem with read in CFile classBut 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
-
Problem with read in CFile classI 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 š™™™™™#@
-
Problem with read in CFile classok.. 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.
-
Problem with read in CFile classThe 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
-
Problem with read in CFile classI 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™™™™™#@