Answer Questions
Christian Meier LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
HI, I'm trying to install GLUI to work with Visual Studio 2005, i'm just trying to run one of the examples but i keep getting this error: LINK : fatal error LNK1104: cannot open file 'LIBCD.lib' the only reference i could find to it was in a microsoft help page but it said the bug had been fixed in an eariler version. Any help would be great. Cheers Try to set: Ignore sp ...Show All
WiT8litZ using a textbox from a 2nd Windows form
I've got a Windows Forms .NEt application that uses 2 forms. I've got Form2 which is created from Form1 : (inside a Form1 button click event handler) : namespace::Form2 *myForm2 = new namespace::Form2; myForm2->Show(); This Form2 works well, & I now have the need to write text to it's textBox1. So I create one in Form2[Design]. I need to do this textbox population inside a function X that is defined within namespace but outside the defi ...Show All
dwielgosz CHtmlView Exceptions - Lots of Them!
I'm building an MFC app that uses an CHtmlView and I've observed that it throws multiple, non-crashing, exceptions from the main app instance (MyApp.cpp). The exceptions are: ------------------------- First-chance exception at 0x7c81eb33 in htm.exe: Microsoft C++ exception: COleException at memory location 0x0012dcc4.. Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003). ------------------ It throws t ...Show All
jjones11 VC 7.1/8 difference with templates
VC7.1 fails to compile the code below, with the error "no appropriate default constructor available", when the template qualification in red is omitted. However, VC8 does compile it. Which compiler is behaving correctly Thanks, Keith MacDonald template<typename T> class Base { public: Base(T n) : val_(n) {} T val_; }; template<typename T> class Derived : public Base<T ...Show All
mizd To detect any 'Enters' pressed
Hi, How about detecting any 'Enters' pressed in the keyboard How can we have a thread for detecting this Thks & Rgds, HuaMin I merged the threads because they deal about the same problem. Every character that is types arrives in your program inside the message loop with a WM_KEYDOWN and WM_CHAR messages. You can trapp them there or you use a Keyboard hook. SetWindowsHookEx with WH_KEYBOARD. Hi, Suppose that wi ...Show All
wjousts Porting MFC application from VC++ 6.0 to VS8
I'm porting an MFC app from VC6 to VS8, while I expect to got the same sources compiling to both VC6 and VS8, I've been successful until I face the following error in: BEGIN_MESSAGE_MAP(SkStatic, CStatic) //{{AFX_MSG_MAP(CSkinDlg) ON_WM_PAINT() ON_MESSAGE(WM_SETTEXT,OnSetText) //}}AFX_MSG_MAP END_MESSAGE_MAP() The ON_MESSAGE line causes a error C2440: 'static_cast' : cannot convert from 'void (__thiscall SkStatic::* ...Show All
DialogDude vs2005 and the C runtime library
Hello, I've got VS2005 and I'm producing a standard C application, not using .NET/clr or MFC, ATL, etc. I wish to simply produce an executable without any manifest or reliance on any files other than the executable itself and the C runtime. Do I need to set 'Allow Isolation' to No (/ALLOWISOLATION:NO) in the Linker/manifest configuration section and in the Manifest Tool/Input and Output set 'Embed Manifest' to No (this changes the flags to /o ...Show All
rodizzio SFX code
I'm trying to create a small self extracting program. The data that needs to be extracted will be at the end of exe. I can figure most of the stuff up.. but i'm stuck at the point where i try to open the exe itself. I find out the exe name using : GetModuleFileName(GetModuleHandle(NULL),szFilename,50); and try to open the file using : fp = CreateFile(szFilename,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); ...Show All
paulking123 required libraries for 64 bit applications
Hi, We have been developing 64 bit apps (straight C++/MFC, no .NET) for some time and now need to distribute executables to non-developers who do not have VS2005 installed. What libraries need to be installed on client machines and how do they get installed Thanks John Avis John, could you let us know how you created the set up project. Also what are the architectures for your development/host machine and your ...Show All
Flattery meaning of a=a++
I hold the idea that the current result of this code is 0,but in vc6 and vc2003,it's result is 10! could you tell me why btw,the result if this code is 0 with java compiler. int main() { int a=0; for(int i=0;i<10;i++) { a =( a++); } cout<<a<<endl; return 0; } This is undefined-behavior in C++ - so basically what ever result you get is the correct result. The reason for this is t ...Show All
jmparks Problem with VC++ 2003.Net Inheritance and destructors
I have come upon a weird but probably very simple problem. In Visual Studio.net 2003 I try inheriting a public managed class into a public managed class both of which were created by using the class wizard. If I comment out the destructors the library compiles properly. But if I leave in the destructors or any one of them the inheritance gives a compiler error. Would someone be kind enough to tell me what silly mistake I am making Error Messag ...Show All
Harinadh Error when trying to run apps on other computers
Hi! I've just switched to Visual C++ Express Beta. All my apps compile and work well, that's on My PC only! Whenever I move my app to another PC and try to run it It gives me this wierd error: "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this program" . Am I doing something wrong. Am I not getting some files that should be with my apps, or am I not setting the lin ...Show All
Giorgos Eleftheriadis Tiered library dependencies under VS2005
We have a project that is structured like this: Program depends on Library 1a which depends on Library 2a, Library 2b, etc. The dependencties for the above are set by right clicking each project and selecting Project Dependencies... and selecting the projects immediately below the projects in the dependency tree. If I modify a source file in Library 2a and then right-click on Library2a and select Build, it builds the library. ...Show All
GNE How to make Win forms designer work with a namespace like X::Y::Z?
This is for VC++ 2003. Looks like I have to put the form being designed, in a simple namespace like XYZ. I know how to rename the form class or the namespace without breaking the designer. But if I add an outer namespace, the designer just refuses to do anything other than displaying a message saying something is wrong with the form, though the program compiles and runs fine. Any idea How about VC++ 20 ...Show All
BullZhot aka Klaes Use WinIO
Hello friends I have written a code in c++ for parallel port reading . Programm is running successfully. A analog to digital converter is attached to parallel printer port using 25 pin. one side this ADC is attached to a device which gives analog voltages. Following programm read the voltages pulses and print their values. But I am not able to run this programm in VC++ I using conio.h and _outp _inp. I have to run ...Show All
