|
|
sophia2288 wrote:
see,thx again
This Section would be great start for learning DLLS :-
http://www.codeproject.com/dll/[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
can anybody help!
i am creating check boxes at run time in the Statc group box.and i want if the no. of check boxes are upto 13 a scroll bar will added vertically on static group box and further check boxes will create in that group box.but i dont know how i do this
|
|
|
|
|
Sounds like you should use a CListCtrl . It allows you to insert items with checkboxes and has a scrollbar too.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Hello all,
When use callback function, and what is the purpose?
Which cases we should use the callback functions?
Could you tell me about?
Thanks!
|
|
|
|
|
http://www.google.co.in/search?q=callback+function
|
|
|
|
|
Callbacks are typically used when the function needs to notify its caller for some reason. This can be for simply informing the caller or for getting information necessary for the function to continue execution.
For example, you can have a timer function that runs in a loop and needs to notify someone whenever a timer expires. You'd write something like
void TimerFunc(CallbackFunc *func)
{
while (1)
{
...
func();
}
}
They can also be used to alter the function's flow depending on the caller. For example
void SomeFunc(CallbackFunc* func)
{
int x = ...;
if (func(x) == true)
{
}
}
As you can see, func gets the ability to change SomeFunc's control flow.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
CString strTemp
strTemp.Format("%-60s%-20.1f\r\n%-60s%-20.1f\r\n%-60s%-20.1f\r\n","Global Wall",0,"Limiting Potential",0,"Roughness Correlation",0);
TRACE("output:%s\n",strTemp);
when debugging, the output is:
output:Global Wall 0.0
(null) 0.0
? -2.0
how can i dispose of the problem?
|
|
|
|
|
Remove "\r".
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Try casting your 0 to (float) 0
Now, they are int's.
|
|
|
|
|
CString strTemp
strTemp.Format("%-60s%-20.1f\r\n%-60s%-20.1f\r\n%-60s%-20.1f\r\n","Global Wall",(float)0.0,"Limiting Potential",(float)0.0,"Roughness Correlation",(float)0.0);
// important to case the CString since the TRACE does not know argument type
TRACE("output:%s\r\n",(LPCTSTR)strTemp);
|
|
|
|
|
All you need to do is replace each 0 with 0.0 instead. When Format() encountered the %f , it attempted to pop a float type from the stack but got an int type instead.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hello,
For my project I have to develop a DLL for printing receipts.
I use an ActiveX but for software design, I don't want this ActiveX will be managed throws a Windows .
Do you know if it is possible ?
Thanks for your help
|
|
|
|
|
Come back when you're sobber!
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
i am making a project on ado
i used these statements for linking:
BEGIN_ADO_BINDING(CCustom)
ADO_FIXED_LENGTH_ENTRY(1, adInteger,m_id,idStatus,FALSE)
ADO_FIXED_LENGTH_ENTRY(2, adInteger,m_regno,regnoStatus,FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(3, adVarChar,m_fname,sizeof(m_fname),fnameStatus,TRUE)
but during compile time it is goving "undeclared identified: adInteger and same for adVarChar"
help to solve this
|
|
|
|
|
Looks like you are trying out the ADO tutorial in MSDN. The variables adVarChar etc.. are in msado15.dll. Did you import the "c:\Program Files\Common Files\System\ADO\msado15.dll" into your program?
|
|
|
|
|
I need to compile one file as Release in Debug project
How I can set propertis of one .cpp file in
Visual Studio .NET 2003?
|
|
|
|
|
Anonymous wrote:
How I can set propertis of one .cpp file in
Visual Studio .NET 2003?
Just right click the file in Solution Explorer and click 'Properties'.
You can't make the file compile with the Release settings while the project compiles as Debug. But you can make the file properties for the Debug configuration match those in the Release one.
Hope that helps,
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
UpdateDriverForPLugAndPlayDevices fails to upgrade the printer driver dll (language monitor) to the latest version provided (even with INSTALLFLAG_FORCE option.)
Can any one tell the reason for the this?
More Info : The driver I was trying to upgrade had the same driver version as already installed driver, but one of the dll was changed, which I needed to upgrade. I had the proper signed cat file for the changed dll.
Suma
|
|
|
|
|
Hi
Is there any restrictions on the packet size that the server can send to client?
Because when my server sends data of the size 5KB to client after some time a run time error is generated at my client side.
But when i change the data size to 2KB, run time error is not generated.
Why so?
Waiting for suggestions.
Regards
|
|
|
|
|
Is the buffer on your client side big enough?
Looks like that might be the problem..
|
|
|
|
|
Daniel vittori wrote:
Is there any restrictions on the packet size that the server can send to client?
Yeap, I have faced similar problem, when I was sending Image across Sockets.
Daniel vittori wrote:
when my server sends data of the size 5KB to client after some time a run time error is generated at my client side.
Through my practical exp., Data size more than 4.12 kb at one time might cause problem. Though, in my case, application doesn't crash and one more point is to be noted the destination Socket is based on PHP
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I am writing a program that opens a dialog based application (for which I don't have the source code), fills data in the edit boxes there and clicks the "OK" button.
I can open the application through ShellExecute function, but I am not able to fill data in the edit boxes or get the "OK" button clicked.
Can anybody help?? Please...
|
|
|
|
|
thevoyager wrote:
but I am not able to fill data in the edit boxes or get the "OK" button clicked.
1. First Find Handle to Remote Window Using FindWindow() and FindWindowEx Api's.
2. Now, Find the Edit Box and OK Button, In Which you want to fill your custom values off course using FindWindowEx or EnumChildWindow Api.
3. Using WM_SETTEXT message Fill the Edit Box of remote Window from your custom text.
4. After completing above task, Post BN_CLICKED message for OK Button to Remote Window
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Thanks Alok, it works
I got the Handle to Remote Window and also to the buttons on it, but...
i) I'm not able to get control of the edit box (I searched for the button based on it's caption, but editboxes don't have a caption and i don't know what to give in the parameter lpszClassName).
ii) Sending BN_CLICKED message for the OK Button doesn't seem to work.
I'm sending you my code. Could you please figure out the problem:
CWnd* pClientWnd = NULL;<br />
pClientWnd = FindWindow(NULL, "Login");<br />
CWnd* pControl = new CWnd();<br />
HWND hWndOk = FindWindowEx((pClientWnd->m_hWnd), NULL, NULL, "&OK");<br />
pControl->Attach(hWndOk);<br />
pControl->EnableWindow(TRUE);<br />
pControl->PostMessage(BN_CLICKED);
|
|
|
|