U may use the wrapper classes. http://www.codeproject.com/KB/database/caaadoclass1.aspx[^] The wrapper class will catch the _com_error exceptions for u.
Jerry Wang
Posts
-
Catch database Exceptions globally -
How to Delete a used file in C++?When u create/open the file, try to specify the FILE_SHARE_DELETE parameter.
-
How to Delete a used file in C++?How about MoveFileEx with MOVEFILE_DELAY_UNTIL_REBOOT?
-
pdf manipulation modulehttp://alivepdf.bytearray.org/[^] ActionScript 3 Open-Source PDF Library - 100% client side PDF generation
-
Converting win32 console app. to service ?The simplest way is: Download the Windows Server 2003 Resource Kit Tools, http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en[^] Use the Srvany.exe, Applications as Services Utility
-
How to create window with Transparency level starts from 0 to 100%?The sample uses the GDI+ to load PNG / TIFF image. U can modify the code to use CXimage http://www.codeproject.com/KB/graphics/cximage.aspx[^] and normal GDI The Refresh() method in CImgBaseDialog works as the following: Paint the background first. Enumerate all child controls, and for each of them, send WM_PRINT to get the captured bitmap, paint at the same place of the fake window. Finally, caculate the position of caret, draw the caret. ---------------------------------------------------------------- English is not my native language
-
error while inserting table with autonumber using MsAccessWhat is the schema of the Table1 ? It seems that you can insert into the table, but missing the field value for some additional required field. insert into Table1 values('field1', 'field2', 'field3', ..., 'fieldn') n = Table1's field's count
-
How to replace/change the container menu item and menu item behaviour from an activex controlThe Acrobat activex response the "Print" menu in this way: get the IHTMLWindow2 interface Advise DIID_HTMLWindowEvents2 When Invoke is called, check the DISPID = DISPID_HTMLWINDOWEVENTS2_ONBEFOREPRINT
-
g++ compiling paramter -static on Solaris sparcWhy not remove -static ?
-
g++ compiling paramter -static on Solaris sparcIt seems that u r missing some static libraries
-
How to create window with Transparency level starts from 0 to 100%?read this article, it helps http://www.codeproject.com/KB/dialog/SemiTranDlgWithCtrls.aspx[^] You can give a background, Left side transparency level = 0% Right side transparency level = 100%
-
Execute a C# App without installing .Net Framework !Try Xenocode Postbuild Run your application on any Windows PC - Native x86 executable generation allows your .NET application to run anywhere, with or without the Framework. Embed application-specific .NET and DirectX dependencies. (Windows 9x and NT4 targets not supported.)
-
How to know the type of application?Try to create each one of the 3 types project, look at what is difference, the main difference is CMainFrame
-
Net hook1, The best way is sniffer, download the WinPcap http://www.winpcap.org/[^], and look at the samples. 2. Hoot the network api, such as send sendto etc. download M$ detours , look into the sample which hooks the network api.
-
Best way to get up to speed on web programming?PHP should be easy for u.
-
how to prevent right click in a browser.<HTML>
<script language="javascript">
function preventEvt(evt)
{
evt.returnValue = false;
if( evt.preventDefault ) evt.preventDefault();
return false;
}
</script>
<BODY oncontextmenu="return preventEvt(event)" onmousedown="return preventEvt(event)"></BODY>
</HTML>This code can works in IE and Firefox, but no way in Opera
-
HTML Table Issue in ASP.Net Web appAdd the CSS style to your table.
style="table-layout:fixed; width:XXXpx"
-
How to close a pop-up window which was opened by java script.1. You can try to use window.showModalDialog instead of window.open. Though this is not a W3C standard, Firefox supports it now. 2. You can try Observer design pattern, each popup windows opens, add itself handle to the close event.