Answer Questions
Magos294963 Handling exceptions thrown from a DLL compiled with /clr within a pure C++ host application
Greetings! I have an application that needed to be compiled in pure C++ to support some statically linked libraries that my company has written, but I wanted to take advantage of the ease of C# programming with VS2005 and .Net 2.0. My application has three components then: a managed assembly with the bulk of the application code, a DLL used for marshalling the few calls that the application will make, and the host executable itself. The problem I'm having is with regards to how to throw exceptions from code within the managed DLL to be caught by pure unmanaged code in my application. Every time I try to do this, I get the following message: "An unhandled exception of type 'System.Runtime.InteropServices.SEHException' occurred in (my m ...Show All
Joe Horton Error messsage
The version of SP is 20040803.231319. It has been suggested that I post my query in another forum. This I will do. Thanks for responses. Thanks Sarah. Damian has suggested that I put the question in a MSDN forum. I am new for forums and any advice you have would be helpful. You question will be rolled to back on new posts to the forum. So it would be hard to track your question Please provide the link to your question or post it again. You can see your posts from "My Threads" like at top right of the page I did as you suggested with about 4 files in BTHelp and it work. Rebooted and no error messages. Opened Help program and I have the facility for asking questions. Thank you so much. By ...Show All
LKeene COM Shell Extension Drag Drop, Copy/Paste
Hi All, I am working in VC++ 6.0. My requirement is to get the control when an user try to Drag and Drop or Copy and Paste any file into a specif folder in Explorer. I referred to some web pages and got to know that this can be achieved by COM Shell Extensions. I am very much new to this requirement, Can anyone please help me out in this regard. Regards G.Girish For VC6.0 issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups OTP Thanks, Ayman Shoukry VC++ Team ...Show All
ScorpEagle debugger error
It's called "No Debugging Information" error. It says "Debugging information for 'name.exe' cannot be found or does not match. Binary was not built with debugging information." I get this when ever I hit the debugging button. Can anyone help me with this Hi, well, your executable does not need any of your variable or function names to execute it only uses memory addresses, except for some symbols which are exported to be used by other programs. So debugging an executable gives you not much information what code is executed when you look at the assembly instructions. With the pdb files you get your variable and function names back and they can be connected to your source code, so in ...Show All
perstam linking of dependant projects
I have a solution with 2 projects... Project a is a console app with MFC support and project B is a dll with MFC support. I have set project A to depend on project B. When I build the solution it fails as there are unresolved externals (from Project B) I have turned in the verbose option on the linker and can see that the lib isn't scanned. Is there somthing else I need to do to get my project to build Robin I thought thats what normaly happened (has done since VC4!) I had looked at the linker/command line settings initiall and hadn't seen it and thought that it was hidden due to the dependancies settings. The only other settings I have found is in Linker/General Link Library Dependencies ...Show All
Will Merydith Migrating VC2003 to VC2005
I'm migrating code from VC2003 to VC2005 and get the following error message: fatal error C1189: #error : Building MFC application with /MD (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h However, _AFXDLL IS defined through the command line compiler switch... the command line reads as folows /Od /I "\Ix102\include" /I "\Ix102" /I "\supersuite\include" /I "\isc102\include" /I "\isc102" /I "\supersuite" /I "\sudac" /I "\sudac\interfaces" /I "\suinfo\include" /I "\sustaticlibrary\include" /I "\sugui\include" /I "\suuti ...Show All
SuperSaiyanZero How to override PostNcDestroy in modeless dialog?
Using MFC, I have a modeless dialog. I want to add an override for PostNcDestroy. In VS6, I would have done this using ClassWizard. In VS2005, there is no ClassWizard, so I tried to use the dialog's Properties window. But there doesn't seem to be any section there which is appropriate. Do we now have to enter the virtual function overrides by hand If you haven't done this yet: right-click the dialog, Add Class, fill out the Class wizard properties. Open the generated .h file, put the cursor on the class constructor. In the Properties Window, click the "Overrides" icon. Select "PostNcDestroy" and select <Add> in the combobox. Moving to C++ general. Sorry for the la ...Show All
syhzaidi VC 6.0 compatibility with WinDDk
Is VC++ 6.0 compatible with Windows DDK 3790.1830 I am getting error "compiler version not supported. You must use the compiler shipped with the DDK. VC6's compiler is not supported. ...Show All
nagajim VS C++ Forms Designer
I'm having a few problems with the C++ windows form designer. I love being able to create forms in C++ by dragging and dropping controls, etc. but it seems very easy to break this functionality. The current problem or issue is this: If you create a new form in a project (Add New Item -> Windows Form) you are shown the form in designer view. You can then make changes, add controls, save it etc. You can of course also view the code i.e. everything is hunky dory. However if you then at some point (and after saving it) choose to exclude it from the project and then add it back to the project you lose the ability to view the form with the designer. You can't right click on the file in the solution explorer window and choose the view de ...Show All
Penicillin a problem ablut the reference
in<think in c++>2th Page 453 the author said :Once a reference is initialized to an object ,it cannot be changed to refer to another object " but form the code I can see the reference is changed to refer to another is the auther wrong PS I am using dev C++ #include<iostream> using namespace std; int main(int argc,char* argv[]){ int i,k=3; int &x=i; i=1; cout<<x<<endl; i=0; cout<<x; &nbs ...Show All
Matthew Lebo28574 Best approach for IPC...? Confusion about what to use...
Dear all I have been thinking the last few days of a best way to achieve this task: I have two pieces of software. They are both independent application and are final products.(i cant modify the soure).But they both provide an API listing methods that i might want to use to extend some functionality. What i would like to do is as follows: If i am in PROGRAM A and i click the mouse i would like to transfer the mouse click to PROGRAM B.Or if i drag the mouse in PROGRAM A i would like to do the same event in PROGRAM B and vice versa. The API specifies how to do the clicks and drags in both applications but the problem is how to initiate those functions...... I was doing some work and i can identify the window handles and thought that i can s ...Show All
Harshil_Patel_5326c0 Help Me Please
Hi im learnig VC++ 2005 and something wierd is goin on with my compiler.. when ever i build and run my projects an error pops up saying "This Application Has failed to start because MSVCP80D.dll was not found. Re-installing the Application may fix the problem." but here is the wierd part the file MSVCP80D.dll is present in my C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c folder i can see it but how come VS is not detecting it and i even tried re-installing the software but it doesn't seem to work can someone please help me!!! Thanks Is this a whole new project, or did you open an existing one If the latter is true, could you try creating a simple c++ win32 ...Show All
JohnnyP34 Problem with building my DLL.
Hi. I am getting tye following error when i build my DLL. Error:--------------------Configuration: Projdll - Win32 Debug-------------------- Linking... Creating library Debug/Projdll.lib and object Debug/Projdll.exp Debug/Projdll.exe : warning LNK4086: entrypoint "_mainCRTStartup" is not __stdcall with 12 bytes of arguments; image may not run LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Projdll.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Projdll.exe - 2 error(s), 1 warning(s). I am not able to figure out the problem. Kindly someone help me out about the occurance of the above problem I don't think you should get that error unless you have a bog ...Show All
Peter Wellington building 16-bit dll
I would like to obtain Visual C++ 1.5 for building 16-bit DLL. How can I get one copy of it -Jeremy This version may no longer be available for sale. You can try e-bay or failing that you can use Borland Turbo C++ which can be downloaded from the Borland website. Regards Sahir Shah ...Show All
CV. Bug: __alignof on member variable causes internal error
// Compile in C++ mode struct Struct { __declspec(align(8)) char data[12]; int MemberFunction(); }; int Struct::MemberFunction() { return __alignof(data); } The above code causes a C1001 on the return line regardless of optimization settings. I tried it on 3 versions: VC 7.1 x86-32 VC 8.0 SP1 x86-32 VC 8.0 SP1 x86-64 Note that the above code is bad; __alignof is only documented to work on types. Report it at http://connect.microsoft.com/VisualStudio , and post the resulting issue URL here. ...Show All
