Answer Questions
tinaM Help Needed : Error using a DLL after compiling with /CLR
I'm trying to take an old(er) C Win32 app and move towards managed C++ (C++/CLI). I have successfully made the modifications to the code to bring it up to C++ specs. I will compile/link and run just fine as C++. I can compile it as C++ code, but when I make the move to managed (via the /CLR) compiler switch I have *one* problem. The program uses many dll's.. some written in house some 3rd party. All the inhouse and most of the 3rd party dll's wo ...Show All
Serovic inline function
I have a set of functions that I'd like to make inline using VC++ 2003. The functions are compiled sparately from the calling function. I've attempted by placing inline before the function name and in the prototype statement but the function is not found. Do I need to use IMPORT, extern or something like that I can't seem to find an example anywhere to emulate. Thanks, RON C FUNCTION: inline int index_4 ( int jstr, int ks ...Show All
AndrewRae After DirectX SDK install, even a simple Windows application will not compile...
My goal is to use DirectShow with Visual Studio 2005 Pro. The Platform SDK comes with VC 2005, but it doesn't have DirectShow. I put dshow.h and other dependencies in the $(VCInstall)\PlatformSDK\Include folder. I created a new project, included dshow.h (that's the only code I added), and the project needed ddraw.h (from DirectX). I installed the December 2005 DirectX SDK. Now a completely fresh new Win32 Application will not build. I get the er ...Show All
Jayden CHan Datatype Double Problem
I'm new to C++. When writing a simple program to compute the amount of change due from a customer including specifying how many dollars, quarters, etc, the customer should receive, I found I was getting inaccurate results if either the amount due from customer or amount paid by customer was entered with cents. For instance, it the amount due was entered as 75.34, the amount stored in the memory location was 75.340000000000003. ...Show All
Nick Tucker Why do I get C1001 (internal compiler error)?
Why do I get C1001 with the following code array < float ,2>^ arrGrayscale = gcnew array < float ,2>(100, 100); pin_ptr < float > pp = &(arrGrayscale[0,0]); Notes: If I change the array element type from float to short, the compiler does not complain. Thanks Internal compiler errors are compiler bugs. Could you please log the issue at http://lab.msdn.microsoft.com/pro ...Show All
Bipul Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have recently install VS 2005 Pro and I cannot get breakpoints to work properly in my C++ Win32 application. After compiling for Debug and placing a breakpoint, when I run my program the breakpoint indicator becomes a hollow circle with an exclamation point and I see the above message when I hover over it. This makes no sense to me because I have verified the following: 1. Yes, I have compiled for Debug. 2. Output for my program indic ...Show All
andy1114 msvcr80.dll
i have a Com DLL project that is created on VC++ 2003 .i have converted this project to VC++ 2005 project.this project is running on VC++ 7.1 fine but when i compile on the VC++ 8.0 i get this error message;"LoadLibrary("project.ocx") is failed;specified module could not be found" then i have copied the MSVCR80.dll from "x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd" to "project Director ...Show All
Steve B. Linking-Error with VSC++ 8.0
hey ho, I just updated my project from VSC++ 7.1 to VSC++ 8.0 Express Edition. Unfortunately, i get a linker error every time i compile my project: 1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" ( $ ...Show All
Osi Performance for C code
I looked around and was not sure where best to post this question...this won out over all. Question... I have legacy C code that employs heavy duty graphics algorithms ... internally quite a few of them sit on use of a WORD data type. At the time of their development memory was not as it is today and so a WORD data type with max value of 65k was enough to satisfy any requirements. In convsersation someone recently spoke about the use of WORD vs. ...Show All
matthew4oz Discussion about languages...
Greetings to all. Discussion about languages... When I took the first steps in the world of programming I began from consideration of the most popular languages, I estimated their power, flexibility and beauty of syntax. In a month or having read set of various articles I still could not choose. And once again visiting book shop, I have met book Windows Script Host and have decided to begin the way with easy langua ...Show All
NuSoul Console Applications only work on computer with the IDE
I'm using a text book to learn C++ and am writing my first programs. They compile fine and work the way I want them to, from Visual Studio or Windows Explorer. However, if I move them to another computer (with a disk), they don't work. Something about the configuration of the application. I've tried CLR console apps and Win 32 console apps (with header). I move the entire project, not just the .exe I would really ...Show All
neko... finding book.
I need some book about windows message mechanism,hook,event,instance.,handle,ect.... I have learn the c++,now begin to learn vc++,but, for this kind of concepts to me is a puzzle. who may tell me this kind of book thanks. this one http://www.charlespetzold.com/pw5/ ...Show All
Peter L Coding guidelines
I heard from somewhere that Microsoft has some kind of coding guidelines for VC++. Does anyone have a pointer to this information or is it available online Thanks a lot, Karthik Thanks cgraus. I guess thats the best thing to do. KarthikR Microsofts recommendations change with time. For example, they no longer recommend hungarian notation. I would say, whatever team you are on should discuss coding standards together, ...Show All
Aaron Hallberg Flipping an image
Hello, I've been wondering if it's possible to flip an image on it's side in an pictureBox without having to insert more pictures. With Thanks, Gal Beniamini. I' m currently dealing with a graphics program creating line charts. However, the image created on picturebox with the e As System.Windows.Forms.PaintEventAr ...Show All
RGunther calling a WINAPI function from a managed main creates linker error
OK, here is the latest saga from this newbie: Whenever I try to call EnumDesktopWindows or GetWindowsText the linker vomits out the following: LocateWindow.obj : error LNK2028: unresolved token (0A00000D) "int __stdcall EnumDesktopWindows(struct HDESK__ *,int (__stdcall*)(struct HWND__ *,long),long)" ( EnumDesktopWindows@@$$J212YGHPAUHDESK__@@P6GHPAUHWND__@@J@ZJ@Z) referenced in function "public: void __thiscall LocateWindow::setPopulateWindow ...Show All
