Hi all! In my aplication I have an edit box (1) where the user can add text that will appear in other edit box (2). In (2) each text is concatenated with prior one, but when I try to concatenate "\n" so the next text appear in a new line, I get a strange character between two texts instead of a new line. The edit box (2) is a read-only one and Want_Return mode is selected. How could I concatenate the texts so each one appears in new lines? Thank you in advance.
satcat
Posts
-
Entering new lines in edit box -
Appending text in an Edit BoxHi all! In my application I'm reading from a console and what is read is written in an edit box, but I need to append the new text so the prior text does not disappear. I normally write
m_strText=read_text;
but this erases prior text in the Edit Box. Any ideas?:doh: Thank you in advance! -
Error with libraries?I don't know what you mean... (I'm just a newbie) The error must be out of the speech.h code because it works ok with other applications and it's the same for all of them. Where should be that missing semicolon? Thanks!
-
Error with libraries?Hi all! I've done a Visual C++ application and it works perfectly, but when I have done another similar one using the same include statements and in the same order, I get these errors:
C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : error C2146: syntax error : missing ';' before identifier 'FAR' C:\Archivos de programa\Microsoft Visual Studio\MyProjects\imevo_versiones\ejemplo ivocom 1\ventana\speech.h(468) : fatal error C1004: unexpected end of file found
I never got these errors before and the changes that I've done doesn't matter this header "speech.h" (I think so at least). Any ideas? Thank you in advance! -
Link ErrorI think so since I've created the ventana.dsw project and in other projects I had no problems, but I don't really know which is the function that begins here :doh: When I build my project in Visual C++ instead of DOS console with nmake, I get this different message error:
ventanaDlg.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CVentanaDlg::OnOK(void)" (?OnOK@CVentanaDlg@@MAEXXZ) Release/ventana.exe : fatal error LNK1120: 1 unresolved externals
The error that I get in the DOS console is about the entry point as I told you... I can't see the relationship between these errors. Waiting for your help and knowledge :) Thanks! -
Link ErrorI get the error building servidorv.exe The makefile is:
todo: servidorV.exe servidorV.exe: ventana.obj ventanaDlg.obj imevoc.obj imevos.obj imevo_i.obj imevo.obj link.exe ventana.obj ventanaDlg.obj imevo.obj imevoc.obj imevos.obj imevo_i.obj TAO_Portableserver.lib TAO_RTEvent.lib TAO_CosNaming.lib TAO.lib ace.lib /libpath:"d:\ACE_wrappers\LIB" ventana.obj: ventana.h ventana.cpp CL ventana.CPP /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /c ventanaDlg.obj: ventanaDlg.h ventanaDlg.cpp CL ventanaDlg.CPP /MD /W3 /GX /O2 /I "d:\ACE_wrappers" /I "d:\ACE_wrappers\TAO" /I "d:\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /c imevos.obj: imevos.cpp imevos.h CL imevos.CPP /MD /W3 /GX /O2 /I "d:\ACE_wrappers" /I "d:\ACE_wrappers\TAO" /I "d:\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevoc.obj: imevoc.cpp imevoc.h CL imevoC.CPP /MD /W3 /GX /O2 /I "d:\ACE_wrappers" /I "d:\ACE_wrappers\TAO" /I "d:\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevo_i.obj: imevo_i.h imevo_i.cpp imevoS.h imevo.h imevo.cpp CL imevo_i.CPP /MD /W3 /GX /O2 /I "d:\ACE_wrappers" /I "d:\ACE_wrappers\TAO" /I "d:\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevo.obj: imevo.h imevo.cpp CL imevo.CPP /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c ``And the nmake throws: `LINK : fatal error LNK1561: entry point must be defined NMAKE : fatal error U1077: 'link.exe' : return code '0x619' Stop.` when it ends compiling. servidor and cliente are OK. Which could be the problem? Thanks!``
-
Link Errorok, I understand... My problem now is that I don't know which is the main procedure in the application... I'm working in Visual C++ and my app is called Window (I only wrote /ENTRY:WinMain so I could know if I had understood you). Thank you.
-
Link ErrorMy make file is:
todo: cliente.exe servidor.exe servidorV.exe cliente.exe: cliente.obj imevoc.obj link.exe cliente.obj imevoc.obj TAO_Portableserver.lib TAO_RTEvent.lib TAO_CosNaming.lib TAO.lib ace.lib /libpath:"C:\corba\ACE_wrappers\LIB" servidor.exe: servidor.obj imevoc.obj imevos.obj imevo_i.obj imevo.obj link.exe servidor.obj imevo.obj imevoc.obj imevos.obj imevo_i.obj TAO_Portableserver.lib TAO_RTEvent.lib TAO_CosNaming.lib TAO.lib ace.lib /libpath:"C:\corba\ACE_wrappers\LIB" /NODEFAULTLIB:nafxcw.lib servidorV.exe: ventana.obj ventanaDlg.obj imevoc.obj imevos.obj imevo_i.obj imevo.obj link.exe ventana.obj ventanaDlg.obj imevo.obj imevoc.obj imevos.obj imevo_i.obj TAO_Portableserver.lib TAO_RTEvent.lib TAO_CosNaming.lib TAO.lib ace.lib /libpath:"C:\corba\ACE_wrappers\LIB" /ENTRY:"WinMain" cliente.obj: cliente.cpp imevoc.h CL cliente.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevoc.obj: imevoc.cpp imevoc.h CL imevoC.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevos.obj: imevos.cpp imevos.h CL imevos.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c servidor.obj: servidor.cpp imevo_i.h CL servidor.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevo_i.obj: imevo_i.h imevo_i.cpp imevoS.h imevo.h imevo.cpp CL imevo_i.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c imevo.obj: imevo.h imevo.cpp CL imevo.CPP /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /FD /c ventana.obj: ventana.h ventana.cpp CL ventana.CPP /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD /c ventanaDlg.obj: ventanaDlg.h ventanaDlg.cpp CL ventanaDlg.CPP /MD /W3 /GX /O2 /I "C:\corba\ACE_wrappers" /I "C:\corba\ACE_wrappers\TAO" /I "C:\corba\ACE_wrappers\TAO\orbsvcs" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /FD
-
Link ErrorWhere should I write down this option, please? Thank you.
-
Link ErrorWell, I have in my code the line
CWindowApp theApp;
and I have "Use MFC in a shared DLL" so I don't know but I think they are not the problem... Usually, I can compile and link with no problem, but when I try to create threads then I got this problems in link. Any idea?:doh: Thanks! -
Link ErrorHi all! I'm trying to build a Visual C++ application (a dialog application in Release mode with a simple window that creates a new thread in CWindowDlg). It compiles but in link I get this error:
LINK : fatal error LNK1561: entry point must be defined NMAKE : fatal error U1077: 'link.exe' : return code '0x619'
Does anybody know what it means and how I could eliminate it? Thank you in advance! -
IDL file?Hi all! I have to make a CORBA interface for my Visual C++ application but when I try to compile the .idl file I get errors with CString type. How could I solve it? Thank you in advance!
-
Enumerated typesHi all! I have to do an enumerated type but I don't know how is it. If my variable is "color" and it may have the value red, green, yellow, blue or pink, how would it be written? Thank you in advance :)
-
Variables in my own dialog boxYes, it's perfect. Thank you :)
-
Variables in my own dialog boxHi! I've done a new Dialog Box in my application that appears when the user clicks a button in the main window. I need to know if the user has clicked one button in that Dialog box but I don't know how could I check this. I can check edit boxes or Radio Buttons if I see Dialog Box's int variables values from my main window code but I don't know what could I use for checking if buttons have been clicked or not. May I use a control variable or what could I do? Thank you in advance!
-
Defining functions in other filesHi there! I have to use some functions in my application but they must be in an apart file because they are going to be used from differents applications. How should I write it in my code so it runs? What headers should I add to my code? Thank you in advance!
-
STDMETHODIMP?Thank you :)
-
Unresolved external symbolHi all! I'm trying to do a Visual C++ application. I have the main file parlante.cpp, and it uses classes from imevo.cpp When I compile each file separately, I get no errors, but when I build the application I get lots of unresolved external symbol in imevo.obj when linking. Which could be the reason for this? What should I submit here so you could help me with this if what I've said it's no enough? Thank you in advance!
-
STDMETHODIMP?Hi! I've seen in some code examples this word in head of functions, but I don't know what's its meaning... Any idea? Thank you :)
-
CORBA interface for a Visual C++ 6 applicationHi! I have to do a CORBA interface for my Visual C++ application and I have no idea. What should I do? How could I start? Where could I find some information about this? Any advice will be welcome. Could I ask questions about this here or is there any other board for this theme? Thank you in advance! :) :-D