Answer Questions
Mick McGrellis fetal error LNK1181
I am facing en error " fetal error LNK1181: cannot open input file 'kernel32.lib" while I am trying to run a simulation with OPNET. Is there anyone can help me please. Thanks Take a look at http://msdn2.microsoft.com/en-us/library/y6b12xkc.aspx for details on the error. Also, make sure you have the file kernel32.lib on your system. The error implies that you are trying to link to such li ...Show All
Andymaule DLL Version
In C# we use System.Diagnostic.GetFileVersion to obtain a dll version. How can I do this in C++ .net i'm quite new to C++.net, correct me if it is not possible. I presume you mean the FileVersionInfo class: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdiagnosticsfileversioninfoclasstopic.asp In Visual C++ you can use the same class. ...Show All
jsminch Disabling Word-Wrapping in the Console
I'm creating an ASCII game and I need to turn off the text wrapping in the console. I did a search on here but couldn't find any topic covering this. Can anyone tell me the name of the function I need to do this Thanks. Also I'm using visual studio.net 2003 so if it's a windows console function that's more what I'm looking for. More a Win32 problem rather than a Visual C++ problem (kind of off topic)... At ...Show All
dalix Trouble making simple program.
Hi I am trying to create a simple hello world program and its not working. here is what i do i create a empty project and name it "hello" then I right click on the progect icon and go to ADD > Class > C++ > C++ Class the window pops up and I enter the class name "HelloWorld" while I am doing this the ".h file:" and ".cpp file:" auto file with the same name and their own extentions. Thats all i do and then I click "Finish" I right click ...Show All
Jon-Whew! "Dynamic" creation of variables through macros
Hi, I wanted to know if something like this is possible: #define CREATEVAR(X) X##__LINE__ but expanding the __LINE__ macro. I'm trying to create a variable's name through a macro that could be called different times creating different names: int CREATEVAR(a); int CREATEVAR(a); (of course, in this case it would only work if the macro was called in different lines). The thing is that after the concatenation operator ## the macros don't get exp ...Show All
darbha How to get the Actual Path with .lnk File
Dear Sir, I had written a program which will display the Recently opened file name. Now I want the Actual File Path. Please tell me how it can be done. Here is the core of my program I done: -------------------------- -> I had used the FindFirstFile and FindNextFile to get the Link file Name. - I had written my Code in C. ( Please give explanation with C not in VC++ ) Thanks in Advance ...Show All
PAsp How can I manipulate strings in ATL
Some problems happened during my simple development on IE. When I try to use MessageBox to display one string, manipulated by"strcat", there is no error or warning during compiling. But when IE tries to invoke the DLL, MessageBox involved, the IE reports that there are some errors in my DLL. After removed "strcat", every thing is ok. I wonder whether perhaps the string manipulation is different from the ordinary ...Show All
Roberta Ezar How to create an MDI child window that contains my own CView-devived class
What are the steps involved in creating a new MDI child frame that contains an instance of a CView-derived view class, and uses a pre-existing instance of a CDocument-derived document class Please see the MSDN documentation on CMDIChildWnd: ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vclib/html/6d07f5d4-9a3e-4723-9fa5-e65bb669fdd5.htm ...Show All
darkwitch Run time error when execute "In run-time dll"
Hi All, A fuction definition from header file: define TSXAPI __declspec(dllimport) #define TSXAPIFN extern "C" TSXAPI TSXAPIFN tsxERR tsxRenderAViewRectangleToFile(tsxRenderToFileData *data, CtsxRect *rectangle); I want to access this function by :"In run-time dynamic linking" my code is: 1: CtsxRect j_renderRect; 2: tsxRenderToFileData j_renderToFileParams; 3: tsxERR error_code; 4: typedef tsxERR (CALLBACK* tsxRenderAViewRe ...Show All
Rahul Patil How can I get a notification about a "display turn off" event (WinXP)?
Hi, I would like to write a program that gets a notification for when the laptop display is turned off, either manually by the user or automatically by the system power management. Is this posible, and how Thanks, Osnat Below URL might give you some idea http://msdn.microsoft.com/library/default.asp url=/library/en-us/power/base/about_power_management.asp Thanks. You have bo ...Show All
Omkar Singh Like to know the correct WM_????? message.
Hello, I like to write a dialog program that will respond some action for mouse right click while the dialog window is minimized. I don't know which WM_ will fit in this need work and what class this message event handler will belong to. Any ideas Pls advise me. Thanks. Messages are sent to the window over which actions were done, so if your window is minimized, no message will be sent to it. ...Show All
__alex__ Opening files from explorer.
I have associated the extention .vip to my program Viper.exe. However, I have no idea how to make the program open the .vip file that has been opened in explorer! How do you find out which file was double clicked to open the filw. Thanks in advance. Hiya wrote: To be honest, I don't even know what native code is, apart from it is probably better as it works without the .NET Framework. I only know managed and started creating ...Show All
Zeus3 date
Vb.net had a variable call date so how to work at vc++ .If i provide a date i want to count the totaldayofthemonth.I had try used some software translation vb.net class to c# class fail.And i have problem trying to convert string to int and int to string The code // This is the main project file for VC++ application project // generated using an Application Wizard. #include "stdafx.h" #include "time.h" #include <sstream> // this ...Show All
DanielSilva Resource Compiler Fatal Error in Visual Studio 2005 Beta
It's impossible to launch Resource Editor from IDE. Resource Compiler Fatal Error RC1107 is displayed. You can tell if your build a vc express one or not by searching for the file VCExpress.exe on your system-- should be at Microsoft Visual Studio 8\Common7\IDE\VCExpress.exe. If it is not there then you don't have the express SKU. Also, it seems from the build version you are using that it is beta2. Pleas ...Show All
kdossey29 _TLOSS in _matherr
I am porting a mathematics application from Borland C++ to Visual C++ 2005 Express Edition beta, but it seems that _matherr does not work as described in msdn. After some research and tries I have succedded in getting _matherr called with the _DOMAIN error (for instance when evaluating log(-1)); but it seems that _PLOSS and _TLOSS are not used and the supporting routines do not complain if things like sin(1e300) are evaluated. Any ideas to make ...Show All
