|
* bump * Any suggestions? Please... * bump *
|
|
|
|
|
i want to know that is SDK function and the API are same or different. if same can we use them in vc6.
ddd
|
|
|
|
|
tasleem143 wrote:
i want to know that is SDK function and the API are same or different.
Software Development Kit vs. Application Programming Interface. An SDK can contain many APIs.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
can we use the sdk functions in vc like API without header files or do something exta.
ddd
|
|
|
|
|
You seem to have a fundamental confusion as to what an SDK is and what an API is. While a difference exists, depending on your perspective, there's nary a reason to know. What exactly is it that you are trying to do.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
i had used the api to know the text of active window on the computer.For that i got the api "GetWindowText( , , )" from api text viewer.
i tried to use in the visual c code. but the problem is that there is the Cwnd function with same name but it take two argument.the first argument which is the activewindow handle is not present tell me what to do
more description is below.
result=GetWindowText(m_hhandle1,str1,512);//this is api i had seen on api textviewer comes with visual studio. i want to use API had the three parameter
//1.The first handler form above API
//2. buffer to store the windowname
//3.length of buffer
//but i takes two arg not three bcos it consider it a fucntion of CWnd not API. what to.
/*******************************/
ddd
|
|
|
|
|
CWnd encapsulate the hwnd of the Window; so when using CWnd::GetWindowText( ... ), you actually use the hwnd of the current CWnd ( this ).
if you want to use the ::GetWindowText, you will need to get the HANDLE of the CWnd you want.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
i had got that handle through the GetForegroundWindow API. but problem is that this Cwnd functin GetWindowText take two argument it does not take the handle of window as parameter as GetWindowText API does.
i hope u had understood the problem that i dont want to use Cwnd function bcos it work for the current window only not all window handle got through the api Getforegroundwindow.i want the enabling of api function not cwnd func.
ddd
|
|
|
|
|
if you want to use API function, you need to use the :: prefix for the function :
::GetWindowText( ... );
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Try:
result = ::GetWindowText(m_hhandle1, str1, 512);
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
thanks it works. but what actually :: does if u can tell me.
ddd
|
|
|
|
|
The :: indicates that the function is part of the global namespace ( or global scope depending on the documentation ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Like I indicated, it's the scope resolution operator.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
How to use the RTC Client API?I downloaded the version 1.2 and 1.3 and installed them,but I still
can't run the programmes about RTC on my Windows 2000 SP4 operating systems!!
Always "Initialization Error" !?
Run-Time Requirements:
The RTC Client API version 1.2 requires Rtcdll.dll on Windows Server 2003, Windows XP, and Windows 2000 operating systems.
The RTC Client API version 1.3 requires Rtcdll.dll on Windows Server 2003, Windows XP, and Windows 2000 SP4 operating systems.
BOOL CAVDConfDlg::OnInitDialog()<br />
{<br />
CDialog::OnInitDialog();<br />
<br />
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);
<br />
if (InitRTCClient() != S_OK)<br />
{<br />
MessageBox ( "Initialization Error" );<br />
m_cMakeCall.EnableWindow ( FALSE );<br />
m_cAppCall.EnableWindow ( FALSE );<br />
m_cMessaging.EnableWindow ( FALSE );<br />
m_cTuning.EnableWindow ( FALSE );<br />
m_cWhiteboard.EnableWindow ( FALSE );<br />
}<br />
<br />
return TRUE;
}
|
|
|
|
|
Is there a way to check if a thread is currently suspended?
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
This is abit of a guess, but you could call SuspendThread , followed by a call to ResumeThread (these functions maintain a "suspension count", and test the return code of ResumeThread to see if it was suspended before your two calls.
|
|
|
|
|
Hi
What is the basic idea to track the url requests. My intention is trap all url request i post using IE or mozilla and say save that to a file. Can any one help me in this regard.
Regards
Vivek Ragunathan
|
|
|
|
|
to track the urls of ie, it is possible to create a "browser helper object" (a kind of plugin for (internet) explorer). if i remember well, you can be notified on each new navigation.
++
thomas
|
|
|
|
|
|
I just finished a simple program, but it keeps saying that I have a error. The error says that "end of program is found before left brace" line 37. What does that mean, here's my code:
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
//declare variables
double sales = 0.0;
double totRegSales = 0.0;
int region;
int outlet;
while (region <= 5)
{
cout << "region" << region << endl;
outlet = 1;
totRegSales = 0.0;
do
{
cout << "Enter sales for outlet" << outlet << "enter 0 for next region):";
cin >> sales;
totRegSales += sales;
outlet++;
}
while (sales != 0.0);
cout << "region " << region << "sales total:" << totRegSales << endl << endl;
region++;
}
cout << "End of program" << endl;
|
|
|
|
|
|
where am i missing as "}"
|
|
|
|
|
|
at what spot should I place the "}".
|
|
|
|
|
at the end of the program.
all functions MUST end with a }. the code you posted above does not end with a }.
put a } at the end of the code, after your last "cout << .."
Image Toolkits | Image Processing | Cleek
|
|
|
|