Please let me know about the basics about .odl file, it's creation and purpose. Any kind of suggesion or link to the particular documentation will help me a lot............ looking for your immediate response... :-O:confused::rose:
Billar
Posts
-
Regarding odl file -
Simple but need ur response immediatelyDear Friends, I know i am asking very simple question, so please reply to ASAP and help me to get the solution. Please write to me how to get the image of a dialog box as a .bmp or any kind of image file. I just want to get the image of dialog box so can display the complete contents of dialog box items i.e. buttons etc for documentation. Please respond ASAP. For this I shall ever be greaful to you. Although it is possible by creating such an option inside the dialog box or by adding menu to provide copying option but I think it is possible in other way too and that method I wish to know....Thus please write to me to get the solution...................... Thanking you in advance................... Billar
-
It's really a complicated problem-Help me to get solutionDear Friends, Sometime my application gives an error and an abnormal error dialog box gets created and immediately after that my application closes. Also some time my application hungs-up. I am not able to find out the actual error because usually it never happens but sometime it happens and that is why it is not easy to track errors. 1. Thus please tell me how to create a log file to track of each operation. 2. Also I would like to track few errors like access violation, abnormal error window generation. As I am also unable to get the exact error so I cannot give any more idea abt errors so it may help if I can create a log file or can track few errors as specified. Thus please help me to find out the solution. Also please write to me whether I can make my program to generate a particular error to check whether my preventive measures are working properly. I am new to VC++ and at present I am unable to find any solution of it. Although I find a function say GetLastError(), but how to use it, to a particular error, I am not getting........I think WM_ENABLE message may also help me in case of hung-up but how to add this message to class wizard?:confused: Thus please help me to find the solution... Thanking You in advance. Billar :mad::confused: X|
-
How to start a PC/Application from ProgramThanks u very much for your important advice..... Billar
-
How to start a PC/Application from ProgramDear David, You r absolutely right. There will never be a solution by restarting the system instead of solving the particular error, when have errors. Actually my requirement was to restart the system on a certain condition. Billar
-
To track an errors-messagesDear Friends, Sometime my application gives an error and an abnormal error dialog box generates and then my application shuts down. Some time it may happen that my application hung-up. Although presently I don't any such kind of error but I would like to track such kind of errors and wish to do some preventive measures accordingly in abnormal cases. Will you please tell me how to track error messages in MFC. Also please write to me whether I can make my program to generate a particular error to check whether my preventive measures are working properly. I am new to VC++ and at present I am unable to find any solution for it. Although I find a function say GetLastError(), but how to use it, to a particular error, I am not getting........I think WM_ENABLE message may also help me in case of hung-up but how to add this message to class wizard. Thus please help me to find the solution... Thanking You in advance. Billar
-
How to start a PC/Application from ProgramDear Friends, I would like to restart a PC whenever any error occurs in my application. How can I do so. Please help me as soon as possible. Thanking You in advance....... Billar
-
Complicated TaskYes, But I would like to develop an application which captures an image from camera and display it to a Projector. Waiting for your response......... Billar
-
Complicated TaskDear Friends, I would like to develop an application, which can display a image to a Projector instead of a Dialog's Display. Please help to solve this problem. Is it possible to display the Dialog's display on a Projector? Any kind of suggesion will be highly appriciable. Please help me soon. Thanking you in advance. Billar
-
Creation of Lib fileDear Friends, I have a .li file which works well in Release Mode but it gives error in Debug Mode. I have told to do necessary modification in .lib file to work satisfactorily in Debug mode. Will you please write to me how to handle this task. Any kind of suggesion will be highly appreciable. Thanking You in advance.. Billar
-
CAsyncSocket ServerDear Freinds, Thank you all for the information and kind response. MY problem is solved. Actually the problem was at the client side. I was not initializing the socket at the client side at InitInstance. But now it is solved. Thank you once again for everything. Bye Billar:):-O
-
Urgent Requirement-Socket ProgrammingHi includeh10 I don't have msdn. So if you can provide the such samples, it will be a great help to me. Waiting for your reply....... Billar
-
Urgent Requirement-Socket ProgrammingDear Friends, I am using CAsyncSocket and CSocket for writting a server program. In AsyncSocket I am using virtual void OnAccept(int nErrorCode); virtual void OnClose(int nErrorCode); virtual void OnReceive(int nErrorCode); and also in Socket I am using virtual void OnAccept(int nErrorCode); virtual void OnClose(int nErrorCode); virtual void OnConnect(int nErrorCode); virtual void OnReceive(int nErrorCode); Also in the dlg.cpp file, At InitDialog I am writting m_cSocketServer.Create(4000); m_cSocketServer.Listen(); m_cAsyncSocketServer.Create(4000); m_cSocketServer.Listen(); Also at the Onbutton message I am checking and writting a message into a display like this void CMFCServerDlg::OnButtonConnection() { // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください char DispBuf[256]; if(m_cSocketServer.Create(4000) && m_cSocketServer.Listen()){ sprintf(DispBuf, "Server Started"); AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf); } else{ sprintf(DispBuf, "Connection Failed"); AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf); } For other reference.... LRESULT CMFCServerDlg::OnAccept(WPARAM wParam, LPARAM lParam) { m_cSocketServer.Accept(m_cAsyncSocketServer); DestroyFlag = TRUE; return 0; } This is a user message send by the AsyncSocket and Socket from OnAcceptMessage.... My applicaion is very simple and with the above code it is not working. Will you please help to detect the error. Why this code is not suitable to develop a simple server. Here, I have a dialog box with one button and a text box. Button is for to start a server and text box is nothing but to display a message that server is started. Please help me to find out the solution. Thanking You in advance. Billar
-
CAsyncSocket ServerDear Friends, I am using CAsyncSocket and CSocket for writting a server program. In AsyncSocket I am using virtual void OnAccept(int nErrorCode); virtual void OnClose(int nErrorCode); virtual void OnReceive(int nErrorCode); and also in Socket I am using virtual void OnAccept(int nErrorCode); virtual void OnClose(int nErrorCode); virtual void OnConnect(int nErrorCode); virtual void OnReceive(int nErrorCode); Also in the dlg.cpp file, At InitDialog I am writting m_cSocketServer.Create(4000); m_cSocketServer.Listen(); m_cAsyncSocketServer.Create(4000); m_cSocketServer.Listen(); Also at the Onbutton message I am checking and writting a message into a display like this void CMFCServerDlg::OnButtonConnection() { // TODO: この位置にコントロール通知ハンドラ用のコードを追加してください char DispBuf[256]; if(m_cSocketServer.Create(4000) && m_cSocketServer.Listen()){ sprintf(DispBuf, "Server Started"); AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf); } else{ sprintf(DispBuf, "Connection Failed"); AfxGetMainWnd()->GetDlgItem(IDC_STATIC)->SetWindowText(DispBuf); } For other reference.... LRESULT CMFCServerDlg::OnAccept(WPARAM wParam, LPARAM lParam) { m_cSocketServer.Accept(m_cAsyncSocketServer); DestroyFlag = TRUE; return 0; } This is a user message send by the AsyncSocket and Socket from OnAcceptMessage.... My applicaion is very simple and with the above code it is not working. Will you please help to detect the error. Why this code is not suitable to develop a simple server. Here, I have a dialog box with one button and a text box. Button is for to start a server and text box is nothing but to display a message that server is started. Please help me to find out the solution. Thanking You in advance. Billar
-
Dialog Based Server-ClientDear All Thanks for the information.... Here, in the above mentioned code, they have used thread. In the Client Program they call a User Message in OnAcceptMessage in both classes and start a TCPIP Thread, through where it send message to Server. Then Server checks for those messages and displays messages accordingly. Here, instead of having thread I wish to Start a Server On Click Button and want to have a Client side which send messages to Server and Server performs just something on depending upon the message contents..... If you r any having such idea or having an example of such kind of code please refer to me. Eagerly waiting for your help.......... Thanks once again to all in advance..... Billar
-
Dialog Based Server-ClientDear Friends, I have a source code in which there are 2 socket classes i.e. CSocket & CAsyncSocket for both server and client. Codes on the both classes are almost same i.e. having same message handlers of having same code. I would like to know 1. if server or client program can be written by only one class then what is the use of CAsyncSocket together with CSocket? 2. Although CSocket is derived by CAsyncSocket, but if possible please let me know the benifits and uses of AsyncSocket over CSocket....... Thanking you in advance....... Billar
-
Server-ClientDear Friends, I wish to operate a Dialog Based application(Say Server) depending upon the command send by the Client. Please help me by giving me a simple example to do so. Thanking you in advance. Regards, Billar
-
What is the rwson behind thisDEar Friends, I got the solution. Actually the problem was in the attached lib file. After linking the another or seperate .lib file seperately in Release/Debug mode, problem get solved. Anyway thanks for your kind co-operation. Bye Billar
-
What is the rwson behind thisDear Friend, My application works fine in Release mode but it gives an error or displays an abort dialog when I close window in Debug mode. Please write to me the reason behind this. Thanking you in advance.... Billar
-
Insert Item in Listcontrol/listview using thread.Hi Sumeet, Nice to see you again.... I find the solution of my problem by calling the SendMessage(IDC_xxx_xxx) to call the ON_BN_CLICKED message directly from your thread function.I also works even in case of User-Interface Thread. Like that you may place ur item directly from your thread program. It will work eeven if you are using User-Interface thread. This may help you. Wish you all the best.. Bye