|
Is it correct returning value from catch() block?
Can the calling function get return value when there was exception caught by try{}, catch() in called function?
Best Regards,
Suman
|
|
|
|
|
Provided that the function returns a value of that type it is correct in the aspect of C++ syntax to return a value from inside a catch block.
However, I would rather have the return statement outside the catch block since in my opinion the code would be easier to read. I would have a return value at function scope that I would assign a value inside the catch block and return it at the last line of the function.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
i want to sent ctrl+alt+delete to remote computer,
i using postmessage() API, its working fine all os except VISTA.
is there any chance to send/simulte ctrl+alt+delete in VISTA.
Anybody hav ideal,plz help me.
|
|
|
|
|
Hi,
When i am trying to build my C++ exe using /clr option, i am getting the following Link Error:
StdAfx.obj : error LNK2020: unresolved token (0A001984)......
Please could someone suggest me how to resolve this error?
Regards
Rinnu
|
|
|
|
|
Try to ask the right forum (the managed C++/CLI one).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
...and please post full error messages so we don't have to guess.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
am working on FTP wizard
I written a code to get the properties of selected file for local drive as
HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem();
{
CString selectedPath =GetLocalTreePath (hlocalselitem);
HWND hwnd = GetSafeHwnd();
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
ShExecInfo.hwnd = hwnd;
ShExecInfo.lpVerb = "properties";
ShExecInfo.lpFile = selectedPath;
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
}
which works fine.
But when I used it for remote file i.e. selectedpath is different
as i.e. using '/' but it is giving me error as please check the path
I also tried for complete URL then it gives invalid parameter for
ShExecInfo.lpFile = selectedPath;
path is : "ftp://www.ganitra.com//BannerTestPlan.jpg"
|
|
|
|
|
For <insert deity of choice>'s sake - it was only half an hour since your last request, in a different thread!! This is a volunteer site with people who do other things for a living. Be patient. And don't open a duplicate thread.
<end lecture on forum etiquette>
chetanjoshi9 wrote: path is : "ftp://www.ganitra.com//BannerTestPlan.jpg"
anyway, you don't need double slashes (//) if it is a forward slash. Doubles slashes are only needed in the string if you use a backward slash i.e. use either
"ftp:/www.ganitra.com/BannerTestPlan.jpg"
or
"ftp:\\www.ganitra.com\\BannerTestPlan.jpg"
Technically, Windows uses the backward slash although some of the APIs will accept forward slashes. I don't know off-hand if the one you're trying to use accepts / so try changing to \\.
Judy
|
|
|
|
|
hi all,
i am savitri here.good afternoon to all. in my program i want to find middle value of the string so how shall i find that value. please help me out.in VB it is like this
For ctr = 0 To 15
dout(ctr) = Asc(" ")
Next
For ctr = 0 To Len(strData) - 1
dout(ctr) = Asc(Mid(strData, ctr + 1, 1))
Next
but i want to know in VC++. in VB it is built in function but in VC++ it is not there please help me. please i am learning VC++ u all my guru's so please answer to my questions.
thanku in advance,
savitri.
|
|
|
|
|
See this[^]
savitri wrote: good afternoon to all
Time zone matters
|
|
|
|
|
Hi Experts,
I recieved HMENU from other funtion.
Could I append menu item with bitmap in it except InsertMenu().
|
|
|
|
|
Hi all,
Is there any open source application for detecting the people from the sequence of video motion of webcam. I need to detect only humans rather than objects.
Thanks in advance
|
|
|
|
|
I dont know of any open source app for people tracking, but you can build your own if you know a little bit of image processing. Open source library for image processing are available, such as OpenCV (Intel). You can also look for existing papers on human tracking on IEEE Xplore or the web.
|
|
|
|
|
I have an MFC app, I want to create a minidump .dmp file at my preferred location whenever the app crashes.
Any ideas ? Do I need to make some code change or is it some Windows setting or BOTH ?
Regards
Cage
|
|
|
|
|
|
Thanks a ton Roger!
|
|
|
|
|
I am working on FTP wizard
I written a code to get the properties of selected file for local drive as
HTREEITEM hlocalselitem = m_LocaleTreeCtrl.GetSelectedItem();
{
CString selectedPath =GetLocalTreePath (hlocalselitem);
HWND hwnd = GetSafeHwnd();
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_INVOKEIDLIST ;
ShExecInfo.hwnd = hwnd;
ShExecInfo.lpVerb = "properties";
ShExecInfo.lpFile = selectedPath;
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;
ShellExecuteEx(&ShExecInfo);
}
which works fine.
But when I used it for remote file i.e. selectedpath is different
as i.e. using '/' but it is giving me error as please check the path
I also tried for complete URL then it gives invalid parameter for
ShExecInfo.lpFile = selectedPath;
|
|
|
|
|
please post the path you specified for remote file
|
|
|
|
|
path for ftp file to which I want to get properties
ftp://www.ganitra.com//BannerTestPlan_1.jpg
|
|
|
|
|
::CoInitialize(NULL);
m_adoConn.CreateInstance(__uuidof(Connection));
m_adoConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\1.csv;Extended Properties=csv;HDR=Yes;FMT=Delimited","","",adModeUnknown);
m_adoRec.CreateInstance (__uuidof(Recordset));
m_adoConn->CursorLocation = adUseClient;
m_adoRec->Open("select * from c:\\1.csv",m_adoConn.GetInterfacePtr(),adOpenDynamic,adLockOptimistic,adCmdText);
error message:
Unknown error 0x800A0E7D
thank
Blog:
http://taotesea.spaces.live.com
|
|
|
|
|
Hi all,
Actually i am new to VC2005. My problem is whenever i am trying to add any member function it says.IntelliSense:"No additional information available"I am not getting how to correct it...
Can anybody help me in correcting it...
Thanks in advance
|
|
|
|
|
Please post in appropriate forum - 'Visual Studio'.
Thanks
Cage
|
|
|
|
|
dear all
i have loaded a jpeg image already, now i would like to process this image, for example, convert to grayscale, and then display the grayscale image via this buffer. how to declare such buffer? thanks.
the following is what i loaded image code:
JpegData jData;
int iWidth, iHeight, iBpp;
jpeginfo(path, &jData);
iWidth = jData.width;
iHeight = jData.length;
iBpp = jData.vbitcount;
allocimage(&m_vicImg, iWidth, iHeight, iBpp);
Li Zhiyuan
|
|
|
|
|
I hope this can help you.
|
|
|
|
|
Hello friends.
I am having a problem with Timer in my application in Release mode.
The application crashes in release mode but works fine in Debug mode.
What could be the problem with the Timer in release mode?
ritz1234
|
|
|
|