|
can u plz send a mail to
sancres_memail@myway.com
I will explain my problem in detail
Sandeep A.C
Sanc
|
|
|
|
|
Plz see ur inbox
Sandeep A.C
Sanc
|
|
|
|
|
ok i will try to make a sample application and send it to u..
but not soon..May be tommorow..
nave
|
|
|
|
|
Thank You
Thank you very much
SAndeep A.C
Sanc
|
|
|
|
|
The following code is written in OncLose Function.
void CMainFrame::OnClose()
{
m_pFMApplicationv7->Release();
m_pFMApplicationv7 = NULL;
CoUninitialize();
CFrameWnd::OnClose();
}
m_pFMApplicationv7 is a Interface Pointer of COM Object which is created using CoCreateInstance.The COM server is written in .NET-C#.Client is MFC.
When I close the application I got the following excepton.
Unhandled Exception in CFDlink.exe (KERNEL32.DLL):0XE0434F4D) : (NO NAME)
Kindly help me to resolve this issue.
Regards
Lavate Mallikarjun Avanna
Flowmaster India Pvt. Ltd.
-- modified at 0:41 Wednesday 26th April, 2006
|
|
|
|
|
Click on retry and debug. Take a look at the Call stack to find out what's causing this exception.
Nibu thomas
Software Developer
|
|
|
|
|
Hi Nibu,
I had done the debug I found at following location in Disassembly it throws the exception.
77D4B517 CALL 77D494A4.
In the call stack at the following location it throws the exception.
USER32!77d4b517().
Let me know what is the actual problem after viewing the above lines.
Regards
Mallikarjun
-- modified at 1:02 Wednesday 26th April, 2006
|
|
|
|
|
Take a close look at the call stack to see if it lists any of your functions or any of the functions that you have called.
Nibu thomas
Software Developer
|
|
|
|
|
Hi
For your information. I found this bug when it comes out of the scope & from there it enters into the MFC framework & there it fails.
I not found any of the functions in call stack which I had called it.
Waiting for your reply.
Regards
Mallikarjun
-- modified at 1:33 Wednesday 26th April, 2006
|
|
|
|
|
lavate malllik wrote: m_pFMApplicationv7->Release();
m_pFMApplicationv7 = NULL;
Release() returns a integer value. check it. It indicates reference count.
It must be 0 in your case.
If it is not , then it must be used some where after making it NULL
|
|
|
|
|
Hi
Thanks for your reply.
I had done debug & found the return value of release is "0".
Waiting for your reply.
Regards
Lavate Mallikarjun Avanna
|
|
|
|
|
Hi,
I'm using vc++ calling ras api RasGetEntryProperties(). I able to get the rasentry structure object and I'm facing problem in getting the alternate phone number.the documentation said the alternate numbers is a string append right after the rasentry structure.From the rasentry structure, i can get dwSize and dwAlternateOffset which will store the size(bytes) of the structure and offset point to the alternate number string respectively. but my problem is how to get the string using the rasentry or dwAlternateOffset?
|
|
|
|
|
why can't u try to get like
char szAlternatePhone[128];
strcpy(szAlternatePhone, *(rasStruct+offset));
hope it will work !
Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
|
|
|
|
|
thanks for your reply. i still can't get it done.
i already email to your hotmail account. can help me to take a look on it?
thanks a lot.
|
|
|
|
|
Have you looked at the memory immediately following the RASENTRY structure to ensure that there are phone numbers there?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
hi all,
i am using a dialog based program.i have used an API ShellExecute() to extract a zip file and it is working properly.but i just want to put a condition that if that ShellExecute returns a success,then....
but return code of the ShellExecute is an HINSTANCE varaiable.and in MSDN they have written as return code as long variable.how can i know that function is a success or that .can anyone please give me some example how to use the return code of Shellexecute().
thaks in advance
lekshmi
|
|
|
|
|
From the docs:Return Values
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. So just test the value to be > 32 to tell if it succeeded.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
The ShellExecute returns a value greater than 32 if successful, or an error value that is less than or equal to 32 .
HINSTANCE hInst = ShellExecute(...);<br />
if( 32 < hInst )<br />
{<br />
}<br />
else<br />
{<br />
}
|
|
|
|
|
hi
thank you for the reply.but it didnt works i got the folowing errors
error C2446: '<' : no conversion from 'struct HINSTANCE__ *' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
: error C2040: '<' : 'const int' differs in levels of indirection from 'struct HINSTANCE__ *'
Error executing cl.exe.
lekshmi
|
|
|
|
|
just type cast..
if( 32 < (int)hInst )
{
}
else
{
}
nave
|
|
|
|
|
Do like that
if (ShellExecute(...) > 32)<br />
{do somthing...}
I don't know if it works or not. But i hope it will.
If problem remains, let us know.
Good luck.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Use:
HINSTANCE hInst = ShellExecute(...);
if (hInst > (HINSTANCE) HINSTANCE_ERROR)
{
...
} or
if ((int) hInst > HINSTANCE_ERROR)
{
...
}
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
hi
Thank you for the reply.im new to VC++ .can you please give some more detailed explanation.
i have used the shellexecute for extractig a zipfileand i just want whether it returns a success or..
thanks in advance
lekshmi
|
|
|
|
|
lekshmipriya wrote: can you please give some more detailed explanation.
Such as? Short of sitting down at your computer and typing it for you, I've shown you exactly what you need.
lekshmipriya wrote: i just want whether it returns a success or..
Which is exactly what I showed you. What is it that you are not understanding?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
i have some data ranged form 0 to 1,i want show these data in color map.
The function "img" in matlab is what i want.With help of this forum,i have solved the problem how to gradually change one assigned color to the other.Now I feel puzzled about this problem,take an example,
I use "0" to represent RGB (255,0,0) and use "1" to represent RGB(0,0,255);then other data values should represent what?How can i make these data gradually changed from RGB(255,0,0) to RGB(0,0,255)?
In fact,i can assgn "0" to repesent any color such as RGB (0,0,0) and so on,and "1"can represent any colors ,then make one color gradually change to the other.
-- modified at 22:46 Tuesday 25th April, 2006
|
|
|
|