Hi, Is it returning the data ??????? or displaying like ???? (Suppose message box/MSDEV Editor).. If it displays ??????, you must install profer font on your PC. And also while creating fonts, you should mention the charset of the language you are using.. Operating systems also could be issues.. Can you tell me what operating systems you are using, font using and the language of interests... " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
MailtoGops
Posts
-
Problem with unicode data -
Linker ErrorYou use the tlb or idl files to extract the objects information.. You can do this by using #import<..> " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
why pure virtual function is neededcedric moonen is right... Here Why you need Abstract class.. Consider the basic senario of having shape classes like Line, Rectangle, etc. In the real world, there is nothing called Shape... you cannot define a Shape,, The object could be regular, irregular... But you cannot not define Shape anywhere... Line is a Shape Circle is a Shape Rectangle is a Shape But Shape is not Shape... (U might confused more..if it is i am really sorry :) ) But if you look at Line, Circle, Rectangle they are measarable..ie you can find area, they will have line length, width, color, style etc.. So considering these features we have, all are put in to a Shape class in order to resuse the existing implementation... But as I told Shape is not Shape... You cannot draw a Shape.. So you need to protect the user to create Shape object...For that you need to make that class as abstract ie it must to have a pure virtual function, Pure virtual function doesn't has implementation (In c++ context) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
send message from thread to extended MFC DLLThis is my understanading of the problem... 1. You have an application and a dll 2. You are creating a thread which thread proc is in the DLL function 3. You need to send a message to the Thread which reside insode the dll.. Am I right? PostMessage and SendMessage are used to send or post a message to the same proc.. Obviously they are belongs to the Window and processed by the Window Proc. As you know Window and Thread are fundamentally different.. In your case, your have two threads (minimum, one is your application thread and another one is dll thread... For sending messages between the threads you have to use PostThreadMessage() function. For that you need the thread id of the destination. Hope this help you.. Let me know if you need more information... :) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Network programQuestion is not clear. Can you explain further please.... " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
help neededI think, you are doing the following --> Click the POP up menu, --> IT fires the event, in the event handler you are creating the Dialog Window. Before create the modal dialog, delete the pop up menu and create dialog " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Double Click File to open MFC ???Hi, If it is SDI/MDI Application, it is quite easy... You need to have IDR_MAINFRAME which values are like this SDI\n\nSDI\nSDI Files (*.dra)\n.dra\nSDI.Document\nSDI Document.... After creating the document template call, EnableShellOpen(); RegisterShellFileTypes(TRUE); function. This will do.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
[Message Deleted]I don't think it is defined two times. Program used reference value. Check other possiblities.. Why do you want to use like this.. --> CWinApp& theApp = (* (static_cast (AfxGetApp()))); use like this.. CWinApp *pApp = AfxGetApp(); ASSERT(pApp != NULL); " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
concerning PostMessage.....You May need to use PIPE, MailSlot, Socket, DDE for interprocess communications.. Try this also. 1. Create a Private clipboard and place the message 2. Send a message to the another application 3. In the another app, Read the data from the clipboard and clear the clipboard Might have problem!!! in compatiblity or security reason.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Problem with CStringYou better rebuild the application again.. It might help.. :) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Serial communicationHi, Can you check this with Hyperterminal tool provided along with the operating systems?. If hyperterminal prints the right characters send by the microcontroller then we can dig into your code... Could you please do this?? And also check whether the characters sent by the microcontroller are ascii or unicode complaint.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Undovery good article Nemanja Trifunovic " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
memory issues when i opening the dialog boxHi Raju, I have a few questions for you !!!! :) 1. Which operating system you are using? 2. Are you dealing with multilingual operating systems/system setting Basically, dialog boxes uses Dialig units(DLU) for creating dialog. So your dialog size depends on the font you are using/char set you are using.. Please have a look at this angle.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
STA & MTAWhen I am into the STA or MTA threads, how can I check at runtime whether I am STA or MTA thread..
-
program step into non defined areaa lot of confusion to me :) ok. Preprocessor symbols can be defined in two ways. (As I know) 1. in the source or header files 2. In the project setting. Please check the project settings, preprossor options.. BAsically All debug relateted preprocessor are defined in project setting only.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Edit boxYou can use MFC CEdit::GetLineCount() or the Win32 Message EM_GETLINECOUNT to get the number of lines. --> . If the number of lines is three or less it should come the center of the dialog vertically. I can't understand your question properly. do you meant to say if the number of lines are 3 or less, you don't want any scrollbar? " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
MultiLanguage Support1. You better go for custom message box, the code you can get it by google search. 2. Or if you use windows NT based operating systems, you can try to use French localized dlls. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
trouble with UpdateAllViews()UpdateAllViews() should not call OnCreate() method. Could you please make sure, you have created all views and initialized before calling UpdateAllViews() method. Show us some code snipet.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
MDI MFC App QuestionAll you need do is go to Resource-->String table. There you can find entry for IDR_MAINFRAME. You can get help to fill out IDR_MAINFRAME through google. Other see the following example. IDR_MAINFRAME has to be set like this. sample\n\nSample\nSample Files (*.dat)\n.dat\nSample.Document\nSample Document " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
Class wizard problemI think you have deleted the script generated by the application wizard(Basically a C++ comment lines(Statrs with /// which is used by the App wizard). Try to look at the similar code in other files or create a temporary project and copy those scripts.. I have to be carefull while doing this.. I don't think there any other options... Wish you better luck :) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan