|
DEPENDS ON WHAT YOU PROGRAM FOR !!!!
hey, you know what ? i love C++, but no language is THE language...
i'm sure one day i'll learn the klsdfhlskdh+++ !!! and perhaps you won't like it... :->
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
i'm sure one day i'll learn the klsdfhlskdh+++
HOpe so i think me also want to learn that tooo
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
|
toxcct wrote:
klsdfhlskdh+++
Hey, when will it be released? I try to google and couldn`t find that language. Did microsoft created it?
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
Yulianto AKA goodmast3r wrote:
I try to google and couldn`t find that language
normal, it doesn't exist yet.
Yulianto AKA goodmast3r wrote:
Did microsoft created it?
how could they ??? the language don't exist anymore (see previous answer )
So who will create it ? I will... in concordance with anybody who want to help... (will Mr GoodMast3r play this game ? :->)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I would like to help. I can see the future now. "A new language is created by us", quoted from cnn.com.
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
how to show *.rpt in visul c++ or edit crystal report?
thank you.
|
|
|
|
|
hi all,
i do want to refresh my desktop or any open window .Can it be done using InvalidateRect().if so how ?.I have tried most of the options like update,redrawwindow..etc but no change.Iam working on Vc++ 6.0.
thanks in advance.
help required ASAP.
udaykumar
|
|
|
|
|
you can refresh your Desktop Window by sending
::PostMessage(::GetDesktopWindow(),WM_PAINT,0,0);
or
RECT rect,
GetWindowRect(::GetDesktopWindow(),&rect);
InvalidateRect(::GetDesktopWindow(),rect,TRUE); i never tried that but hope that will work
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
hi alok,
i really thank u for u r time .I am really very new to Vc++,hope iam not asking very silly questions. i added the code which u had sent but i was getting some errors like ...
error:GetWindowRect doesnt take 2 parameters
.....:
error C2660: 'InvalidateRect' : function does not take 3 parameters
.....
so i made some changes like ...
RECT rect;
RECT *lprect;
lprect = ▭
::GetWindowRect(::GetDesktopWindow(),&rect);
::InvalidateRect(::GetDesktopWindow(),rect,TRUE);
i am able to compile it ,but not able to achieve the refreshing of the desktop.
hoping 4 u r reply.
thanking u.
regards uday
udaykumar
|
|
|
|
|
Try this instead, you were missing sending afddress of rectangle to InvalidateRect:
InvalidateRect(
HWND hWnd, // handle to window
CONST RECT* lpRect, // rectangle coordinates
BOOL bErase // erase state
);
RECT TheRect;<br />
HWND hDesktop = ::GetDesktopWindow();<br />
::GetWindowRect ( hDesktop, &TheRect );<br />
::InvalidateRect( hDesktop, &TheRect, TRUE );
If that does not do it for you, you can just invalidate entire client area of window:
::InvalidateRect( ::GetDesktopWindow(), NULL, TRUE );
|
|
|
|
|
hi blake ,
thnx i lot 4 u r suggestion ,i was able to solve the issue by using
::InvalidateRect(0,0,TRUE);
but still i have a sillly doubt .... i work on Vc++ 6.0 & refering to the msdn ,in Msdn it states that InvalidRect supports only two parameters ,but that never works .can u just brief me about the difference b/w
::InvalidateRect();
InvalidateRect();
bcoz only the ::InvalidateRect works and not InvalidateRect().
thnx in advance
regards
uday
udaykumar
|
|
|
|
|
When you are using MFC programs, typically the function without the colons means it will invoke the MFC version of the function – some function that is a member of an MFC or other C++ class will be invoked.
CWnd::InvalidateRect
void InvalidateRect(<br />
LPCRECT lpRect,<br />
BOOL bErase = TRUE <br />
);
If you want to make sure you call the WIN32 API or GDI version of a function that has the same name as an MFC version of the function, then you put the two colons “::” in front of the function name.
This means the function is invoked at ‘global’ scope and not as a member function of some class.
Here is an example of calling it at global scope:
::InvalidateRect(<br />
::GetDesktopWindow(),
NULL,
TRUE
);
|
|
|
|
|
hi Blake,
Thnx a lot...It was really very kind of u!!!
Thnx again
regards
uday
|
|
|
|
|
hi blake,
thnx a lot!!!It was really good.
thnx again.
regards
uday
|
|
|
|
|
ThatsAlok wrote:
::PostMessage(::GetDesktopWindow(),WM_PAINT,0,0);
Bad idea. That will probably not work. If it does, then you're very lucky
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hi Alok ,
thnx i lot 4 u r suggestion ,i was able to solve the issue by using
::InvalidateRect(0,0,TRUE);
but still i have a sillly doubt .... i work on Vc++ 6.0 & refering to the msdn ,in Msdn it states that InvalidRect supports only two parameters ,but that never works .can u just brief me about the difference b/w
::InvalidateRect();
InvalidateRect();
bcoz only the ::InvalidateRect works and not InvalidateRect().
thnx in advance
regards
uday
udaykumar
|
|
|
|
|
if you want to refresh desktop
then use
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);sushil sati
|
|
|
|
|
i can not pass CStringArray from dll....
my dll code here...................
My.h
----
MY_API CStringArray MyName;
MY_API void GetmyName(CStringArray _myname);
My.cpp
------
MY_API void GetmyName(CStringArray _myname)
{
for(int i=0;i
|
|
|
|
|
|
--OR-- Pass the CStringArray address instead of a COPY of the entire string array
MY_API CStringArray MyName;
MY_API void GetmyName(CStringArray* _myname);
My.cpp
------
MY_API void GetmyName(CStringArray* _myname)
{
for(int i=0;i {
_myname->Add(MyName.GetAt(i));
}
}
typedef void (*EXTERNAL_NAME) (CStringArray* _myname);
EXTERNAL_NAME dll_myname;
----
---
--
--
CStringArray aa;
dll_myname(&aa);
for(int i=0;i {
m_ist.AddString(aa.GetAt(i));
}
|
|
|
|
|
great!
this work ...
but i have problem..
i accepted result and then error appear...
i don't know what happen..
Debug Assertion Failed
Program:debug\My.exe
File:dbgheap.c
Line:1011
Expression:_CrtIsValidHeapPointer(pUserData)
Debug Assertion Failed
Program:debug\My.exe
File:dbgheap.c
Line:1076
Expression:_pFirstBlock(pHead)
Application Error
The instruction at "0x10008ba5" refrenced memory at "0xddddddf1":The memory could not be "read".
|
|
|
|
|
Make sure the two files are matched as to their debug versus release builds.
You will get this very commonly if you built your DLL as DEBUG and your EXE as Release and then run them against each other.
The debug build's memory allocator will add extra memory checking data at head and tail of memory blocks, and the release build's memory allocator does not expect this extra data to be there.
Likewise, if memory is allocated by a release build and tested by a debug build, it fails because the memory block's header data appears to be corrupted.
|
|
|
|
|
There is a critical service in my machine which crashes once in a month. I want to write an application which monitors that process and if that crashes sends email, or SMS or if possible restarts the service.
I am trying with Enumerating Process <process.h> . But that doesn't seem to be the solution.
thanx in advance
|
|
|
|
|
Create a watchdog app. Find the handle to the process you need to monitor. Then go into a WaitForSingleObject state. Set a time limit and let the watchdog app time out and process messages occasionally in case you want to shut it down manually.
WaitForSingleObject returns a code that indicates the condition under which the function exits. If it timed out, the process is still running, so you clear the message queue and go back into WaitForSingleObject. If WaitForSingleObject exits because the process ended you send the e-mail, do whatever.
Robert
|
|
|
|