|
spanish buddy
|
|
|
|
|
gracias
nave
|
|
|
|
|
Thank you.
I tried it and am getting error Cannot convert from class CString to unsigned char[];
I tried to convert 'Str' to char variable as shown below;
CString csStr(Str);
char* pbuff = csStr.GetBuffer(csStr.GetLength());
SQLCHAR SQL[] = "SELECT EmpID,Salary FROM Employee WHERE EmpName='"+pbuff +"'";
Now i am getting the error as "Can not add two pointers"
Plz help me to solve the problem.
Thanks in advance.
|
|
|
|
|
tejaswini.g wrote: SQLCHAR SQL[] = "SELECT EmpID,Salary FROM Employee WHERE EmpName='"+pbuff +"'";
change into this :
SQLCHAR SQL[] = CString("SELECT EmpID,Salary FROM Employee WHERE EmpName='") + csStr + "'";
|
|
|
|
|
I get this error message when i compile and run the CHtmlEdit HTML Table sample application ( http://www.codeproject.com/samples/CHtmlEdit.asp?print=true ) in my VC++ Enterprise edition 6.0 at
BOOL CHtmlView::GetTheaterMode() const
{
ASSERT(m_pBrowserApp != NULL);
VARIANT_BOOL result;
m_pBrowserApp->get_TheaterMode(&result);
return result;
}
Please help.
Regards,
Roxy
|
|
|
|
|
I'm writing a plugin for an application and I don't have the HINSTANCE for my DLL when it's loaded as the application does this in the background. Is there a function within the win32 SDK that allows me to grab the current HINSTANCE? (question refers to non-MFC applications)
|
|
|
|
|
Sydes wrote: HINSTANCE for my DLL when it's loaded as
Try GetModuleHandle()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Does your DLL not have a DllMain() function?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
i just want to know is there any possibility to include vcl header file in vc++ as that of borlands c++
thanks in advance,
zari
|
|
|
|
|
If you have the header files, you could try it. If they are just standard C++, they may well work.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi all,
I am designing a Dialog Based application using MFC. Now i have created a Edit box dynamically. I want to diaplay some text in it, also dynamically. For which i need the id of the edit box created. How can i set the control id?
Plz help me solve this problem
With Kind Regards
Kenny
|
|
|
|
|
CEdit* pEdit = new CEdit;
pEdit->Create();
pEdit->SetWindowText( "Text" )
|
|
|
|
|
How can we use the SetDlgItemText( ); When you create a Edit box Dynamically?
How are we supposed to create that Control ID.
Regards
Kenny.
|
|
|
|
|
Pratheep Kenny wrote: How can we use the SetDlgItemText( );
why u need to set the text through the SetDlgItemText() function? u can use the SetWindowText(). More over the SetDlgItemText internally use the SetWindowText() function.
Then the Id of the edit ctrl. When u call create function of the edit control, u can specify the id inside it.
nave
|
|
|
|
|
Pratheep Kenny wrote: How can we use the SetDlgItemText( ); When you create a Edit box Dynamically?
CEdit* pDynEdit;
const CString csText = _T( "This is done through SetDlgItemText" );
SetDlgItemText( pDynEdit->GetDlgCtrlID(), csText );
|
|
|
|
|
or SetDlgItemText( IDC_MY, csText );
|
|
|
|
|
Last parameter of CEdit::Create() is control ID , you want to assign.
|
|
|
|
|
Pratheep Kenny wrote: some text in it, also dynamically
Place
#define IDC_EDIT1 301
HWND hWndEdit;
in your file where you are creating the window.
Create the edit window as:
hWndEdit=::CreateWindow ("EDIT","Hello",WS_CHILD|WS_VISIBLE|ES_MULTILINE,
0,0,100,20,m_hWnd ,
(HMENU)IDC_EDIT1,GetModuleHandle(NULL),0);
Now you can write:
SetDlgItemText (IDC_EDIT1,"_AnShUmAn_");
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Pratheep Kenny wrote: How can i set the control id?
You used an identifier when you created the control.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have developed an application and i want its exe should be executed as soon as my system starts, like a service.
Please help me.
Thank you.
KIRAN PINJARLA
|
|
|
|
|
create a shortcut of exe in the following location
C:\Documents and Settings\<username>\Start Menu\Programs\Startup
regrds,
Ashok
|
|
|
|
|
You won't be able to convert an .exe to service if that is not implemented to be a service.
maybe mentioned links might be helpful.
MSDN Ref[^]
Intro[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Do you want to run your app or you want to make service
|
|
|
|
|
I want my exe to be executed as soon as system strats.
Which way i can do it better?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
If you to run your app you can use from Registry and for how to use i think i saw two classes on codeproject that are working with Registry you can see them,anyway you can wrok with registry functions its not hard
|
|
|
|