thank you David. It solved my problem
Saadhinchaali
thank you David. It solved my problem
Saadhinchaali
Hi, Can I pass a string with some %s in it as first parameter in printf/sprintf. something like bellow
char str[16]="my name is %s";
char name[8]="xman";
char res[24];
sprintf(res,str,xman);
printf("%s",res);
can we achieve this?
Saadhinchaali
Hi Is there any gui tool like Toad for mysql in linux. I have the gui toos from mysql but its not comfortable. I want a smart guitool.
Saadhinchaali
Hi all, Can i write more than one query and execute a single qry among them by commenting the other queries or selecting that single qry in MySQL 1.2-LINUX, like we do in SQLServer. I maintain a server in which i need to monitor database continuously. We have tabs option but I have around 50 queries which cannot manage 50 tabs.
Saadhinchaali
Hi, I need to write an application in c on linux, which has to fire a http url. Can you guide me? Is there any wrapper class like CHttpConnection(MFC) which can be used in linux. Thank you
Saadhinchaali
Hi Smith, I dont have a stdafx.h file in my project. I have created an empty console application and created my .h and .cpp files later.
Saadhinchaali
Hi, Thank you for the reply. I have not added the line #include <windows.h> any where in my application.
Saadhinchaali
Hi Sandip,
SandipG wrote:
Your app is no longer non MFC app.
Yes. you are right. But before using that classes, i was developing a non mfc project. Since i needed a dabase interatction i used those classes. Now it has become an mfc project. Is there a way to getrid of that error?
Saadhinchaali
I have a non MFC project with couple of .h and .cpp files. Now i wnat to add a class CDbOperations to that project temporarily which will handle the database interatctions. I have used CDatabase, CString, CSemaphore classes in CDbOperations class. I have added required includes as
#include <afxdb.h>
#include <afxmt.h>
int my CDbOperations.h file. When i compile the project i got this error
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
How can i solve this error.
Saadhinchaali
modified on Wednesday, February 4, 2009 2:13 AM
HI, Thats the esaiest way. Thank you for ur reply.
Saadhinchaali
Hi Is there a way to convert a text file into an image file(tiff file). Thank you
Saadhinchaali
I have created a SDI application with a Form view. In the form view ihave inserted a property sheet like this...
void CMyFormView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
m\_PropSheet.AddPage(&m\_Page1);
m\_PropSheet.AddPage(&m\_Page2);
m\_PropSheet.Create(this, WS\_CHILD | WS\_VISIBLE, 0);
m\_PropSheet.ModifyStyleEx (0, WS\_EX\_CONTROLPARENT);
m\_PropSheet.ModifyStyle( 0, WS\_TABSTOP );
m\_bViewInitiated = true;
}
I wanted the property sheet to span the whole area of the form view, so i have written few line for that as...
void CMyFormView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
if(m_bViewInitiated)
{
m_PropSheet.SetWindowPos((CWnd*)this, 0, 0, cx, cy,SWP_NOZORDER | SWP_NOACTIVATE );
}
}
But the property sheet is not behaving as i expected. Its size remains same as the property pages sizes given at the creation time. Can you help me with this... Thank you Tritva
modified on Monday, December 15, 2008 5:33 AM
Hi, I have creted a MFC SDI project in VC 2008 and compiled in Vista OS. Now when i copied the project into XP OS system and opened. I can open all views(class view, solution explorer...) but the resource view... it is showing a MessageBox stating A resource in file uses an unknown language:English(U.S.)(unknown sub-lang:0x10). Unable to open this file. Did anybody come across this problem... Thank you.
Tritva
I have created an SDI application which i want to start maximised and disable the Restore button. For which i have written the following line in IniInstance().
m_pMainWnd->ModifyStyle(WS_MAXIMIZEBOX,0);
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
With the above lines the window is shown maximised and the Restoredown button looks disabled. But when I double click the Titlebar, the window is being restored and can not be maximised then. I want the window to be maximised or minised, but not to be resotred down. How to do that. Thank you
Saadhinchaali
Thank you. I just tried to place a tab control and put some controls on it. Even the tab control is not controling the controls. When i am moving the tabcontrol the controls placed on it are not moving. I tried cut paste on tab control also. Can u help me in this!
Saadhinchaali
I have created a SDI application with CFormView in VS 2005, vc++, MFC. I placed listctrl, a group box, and a couple of buttons and textboxes in the group box. I am setting the list ctrl and group box posisions at runtime using SetWindowPos(). The list control and the group box sets as per my x,y values. But the control which i have palced in the group box are not set with the group box. They are there, where i have placed them statically. I want all the control placed in the group box to be set as i change the pos of the group box. Is it possible. If yes where am i doing wrong. Thank you.
Saadhinchaali
Hi Mark, Thank you for your answer. My doubt is when we generate a remote desktop connection request is generated from on system how the relay server knows, to which this connection request has to be sent?
Saadhinchaali
TeamViewer is tool using which one computer can connectct to any other computer over internet which has TeamViewer installed in it. When we install TeamViewer it genrates a userid and password, which can be used to connect our computer from any other TeamViewer installed computer on the internet. I wonder how it does this?
Saadhinchaali
modified on Wednesday, November 12, 2008 4:55 AM
I want to know how the TeamViewer can connect to a remote system which doesn't has a public ip. Can you tell me how its done? Thank you
Saadhinchaali
toxcct wrote:
std::cin
Thank you but I dont think it will help. Ok i will explain the total case. I have a batch file which contains a call to an exe file called "checkstat.exe". By executing this exe through that batch file, a console window comes, and the result of 10 lines is shown on the console at first. Late after 3-4 seconds again 4 lines are shown on the console. With some intervals of 3-4 seconds some lines are shown like that until we press ctrl+c. I am running the batch file from my application using
system("");
I want all the lines which are shown on the console until the ctrl+c into some buffer in my application. Thank you
Saadhinchaali