|
hi,
I tryed using
KillTimer(ELAPSED_TIMER);
but i am getting error
error C2660: 'KillTimer' : function does not take 1 parameters
Error executing cl.exe.
|
|
|
|
|
Since you're using the raw API call, you have to provide it with the window handle the same way you called ::SetTimer().
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
Hi,
Thanks for the information it will be usefull for me.
|
|
|
|
|
vinaycool wrote: KillTimer(ELAPSED_TIMER);but i am getting error
what about KillTImer(status->m_hWnd,ELAPSED_TIMER)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
vinaycool wrote: hr = CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))WorkerThreadProc,this,0,0);
Since this is an MFC application, why are you not using AfxBeginThread() here.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
HI all
I have a main application in VC++ and have a dll called AdminXA.dll (which is not part of the main project but .sln is available)
The main application calls functions from this AdminXA.dll . How can I debug the functions available in AdminXA.dll from the main app?
Note : AdminXA.dll is COM based and i can see AdminXA.tlh , .tli in Main Application's debug folder . And am able to debug till .tli file
Please help me
redindian
-- modified at 6:27 Thursday 18th May, 2006
|
|
|
|
|
This code works perfect without exceptions when calling it from the main appthread, but when called on a working thread (AfxBeginThread) httpOpenRequest gives a valid handle and the function works but a bunch of exception occures during the call and afterwards GetLastError returns ERROR_INSUFFICIENT_BUFFER.
I know I shouldn't be worried if I get a valid handle but anyway....
Any ideas?
code:
CONST TCHAR *szAcceptType = TEXT(HTTP_ACCEPT_TYPE);
HINTERNET hHTTPRequest = NULL;
CHECK_BOOL(NULL != (hHTTPRequest=::httpOpenRequest(hSession, // HTTP session handle
HTTP_VERB_HEAD, // HTTP Verb szURI, // Object Name
HTTP_VERSION, // Version
NULL, // Reference
&szAcceptType, // Accept Type
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_KEEP_CONNECTION,
NULL))); // context call-back point
CHECK_BOOL(hHTTPRequest != INVALID_HANDLE_VALUE);
// REPLACE HEADER
CHECK_BOOL(::HttpAddRequestHeaders( hHTTPRequest, HTTP_ACCEPT, _tcslen(HTTP_ACCEPT), HTTP_ADDREQ_FLAG_REPLACE));
// SEND REQUEST
CHECK_BOOL(::HttpSendRequest( hHTTPRequest, // handle by returned HttpOpenRequest
NULL, // additional HTTP header
0, // additional HTTP header length
NULL, // additional data in HTTP Post or HTTP Put 0)); // additional data length
return hHTTPRequest;
CLEANUP:
m_dwError=::GetLastError();
#ifdef _DEBUG
LPVOID lpMsgBuffer;
DWORD dwRet=FormatMessage( FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS,
GetModuleHandle("wininet.dll"),
m_dwError,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
reinterpret_cast<lptstr>(&lpMsgBuffer),
0,
NULL);
// Display the string.
MessageBox( NULL, (LPCTSTR)lpMsgBuffer, "Error", MB_OK | MB_ICONINFORMATION );
LocalFree(lpMsgBuffer);
#endif
if (hHTTPRequest)
InternetCloseHandle(hHTTPRequest);
hHTTPRequest = NULL;
return hHTTPRequest;
|
|
|
|
|
I have interview at Tata Consultance services on VB/C++/VC++ tomorrow.Any body has link where I can find good tricky question and answers about this subject
|
|
|
|
|
NiLeSh KoRpE wrote: I have interview at Tata Consultance services on VB/C++/VC++ tomorrow.Any body has link where I can find good tricky question and answers about this subject
try this http://groups.yahoo.com/group/crscem_coolz[^] group files section, atleast then you stop posting interview question here
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
arre Bhai aap to bura maan gaye,lekin iske kabhi kabhi jarurat padti hain.....
|
|
|
|
|
NiLeSh KoRpE wrote: arre Bhai aap to bura maan gaye,lekin iske kabhi kabhi jarurat padti hain...
thick hai bhai, bura nahin manata , tention mat le... araram se hoin jayege tere TCS main, they have hell lot of requirement! BEST of LUCK... aur ish forum paar hindi dekh kar ache laga ...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
ThatsAlok wrote: thick hai bhai, bura nahin manata , tention mat le
Is this for real ? I mean do you understand this ? Seems like Klingon to me...
~RaGE();
|
|
|
|
|
Rage wrote: ThatsAlok wrote:
thick hai bhai, bura nahin manata , tention mat le
Is this for real ? I mean do you understand this ? Seems like Klingon to me...
Hey rage, let me do it for you...
"It's ok bro, I won't mind, don't get angry."
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: don't get angry."
I havn't said that in hindi
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: I havn't said that in hindi
ok then it's "don't take tension..." Right?
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: ok then it's "don't take tension..." Right?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Rage wrote: Seems like Klingon to me...
.. thats Hindi, My Mother Tounge
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
Visit http://freshersworld.com/ u find some ...
|
|
|
|
|
|
Hi NiLeSh KoRpE,
All the best ...
|
|
|
|
|
I'm new to C++, but have a solid grasp of pointers and DMA in other languages.
My main issue is that i'm trying to figure out how to do things in an enviroment where i have no base class libraries, and i'm also trying to get my head around the layout of C++ files etc. I have a reasonable grasp of the basics, but am totaly lost as far as collection structures go.
As a learning exercise i am looking to make an arraylist structure. I've had a look around but not found any code that really fills my needs.
* Firstly the structure will contain an array, with count and length data.
* The array will be an array of pointers. (void pointers)
* When the Count value reaches the Length value, a new array is constructed that is scaled up from the origional by a given value.
* The items are shifted across to the new array.
* The origional array is deleted and set to null.
* Add some memory shuffling stuff to add / remove. (I can handle this if i get the rest working)
If anyone can direct me to some source code that will either explain it all or give me enough info to get working on this, that'll be a great help.
Also I've seen some code like this:
<br />
*char a;
<br />
<br />
delete a;<br />
a = NULL;<br />
But there seems to be no NULL keyword. I know it's just setting the pointer to nothing, which should genericaly be 0. Is this an actualy keyword in some version of C++, or is it standard practice to have a global constant 'NULL = 0;'?
Cheers Chaps
Tris
-- modified at 6:48 Thursday 18th May, 2006
|
|
|
|
|
The Catalyst wrote: seems to be no NULL keyword
true, NULL is a simple #define on 0.
What you are basically trying to do is a sort of memory heap, right ? C++ coders normally do not handle collection by themselves, this would be reinventing the wheel, though I can understand that it can be educational. We normally use STLs, or collection provided by the windows API (which is not relevant for you, since you do not want to rely on base classes).
~RaGE();
|
|
|
|
|
Hi,
I want to have a menu with menu items as bitmaps.
How can that be done??
How can I use imagelist to store images n then
populate menu with it??
Thanks.
|
|
|
|
|
|