-
- error LNK2019: unresolved external symbol _MAIN__ referenced in function _main libifcoremt.lib
by amsheff2
- 2 Replies
- Last post
by amsheff2
- Hi,
I am very new to using Visual Studio. I'm developing a project for my internship that uses a VC++ GUI to call a FORTRAN program. I'm right now using just a simple FORTRAN program and trying to connect to it to the C++ code developed with my GUI. I've been learning bits and pieces of VC++ all summer, but cannot get over this errors:
error LNK2019: unresolved external symbol _MAIN_
-
- C4013: 'fabsf'
by O.Z.
- 8 Replies
- Last post
by Giovanni Dicanio
- Hi, In Visual Studio 2003 I get warning C4013: 'fabsf' undefined; assuming extern returning int warning, but then project links ok. I have <math.h> included. Can this warning be worked around
-
- Is it possible to use MFC42 (compile and link) under VC++ 8 (MSVS 2005)?
by JaMDataApex
- 12 Replies
- Last post
by Ted.
- May be rather weird idea, but one of our customer using our SDK is demanding it. Thank you for hints.
-
- inclusion problem "fatal error 1014"
by B McDowell
- 4 Replies
- Last post
by B McDowell
- Hello, I've been programming for a while, so I usually have no problem error checking my code, however, this piece has me boggled.
I'm writing a fairly sizeable program that uses a class hierarchy to represent and solve, print, and simplify mathematical expressions, and for some reason the inclusions keep messing up. I'm not sure if I'm messing up, or really what's going on at all. I keep g
-
- Win32 API CListCtrl GetView
by Anonymous4683
- 5 Replies
- Last post
by Anonymous4683
- Hi all~
Was wondering if there is another way (say Win32 method) to access the View type of a CListCtrl just like the way GetView and LVM_GETVIEW do it..
Reason being, the usage of GetView need to have the macro _WIN32_WINNT set to 0x0501, which is what I do not wish to do..
Thanks in advance~
-
- CFileDialog
by giorgiosf
- 22 Replies
- Last post
by giorgiosf
- Environment: C++ VisualStudio 2005 under XP
Type of code: MFC with /crl
The Framework function File | Open works normally and opens the standard FileDialog with the new EXPLORE format.
I have another menu option: File | Load Module that is used to select and load an additional data file. I used CFileDialog for this purpose, but the first time I select this menu option the dialog does
-
- Implementation of std::cout << operator for std::string
by Fredrik Akesson &#40;P
- 7 Replies
- Last post
by Simple Samples
- I came across this strage behaviour trying to port a VS .NET 2003 project to
VS 2005 Express Edition (don't know if it has anything to do with the actual
porting, though). The project in question is a win console application.
Code Snippet
std::string testString("Hello World");
std::cout << testString.c_str() << std::endl;
Works fine. Produ
-
- A doubt on inheritance in COM and C++
by Krishna Chaithanya
- 10 Replies
- Last post
by Krishna Chaithanya
- Hi,
I am working on C++ in COM based environment. Currently, in a component, I have a class 'B'. And classes D1 and D2 are derived from this class. I have some virtual functions in 'B' which are overridden in D1 and D2 for their purpose. None of these classes are now used by any other components in the system and so, there was no interface and coclass defined for these.
So, when I wa
-
- Dll enumeration
by vbsecure
- 3 Replies
- Last post
by Andreas Masur
- i want to enumerate dll's that are loaded by an application how can i enumerate those dll's.
-
- Stock property put_BackColor not working?
by Cashish
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi,
I added a BackColor stock property to my ATL composite control, but when I invoke it, I see no change, although the call is successful. Shouldn't I see a change in the color
HRESULT hr = this ->put_BackColor(RGB(255, 0, 0));
On a different note, how can I add a stock property to my control AFTER it has been created. During creation time, the addProperty Wizard shows the s
-
- Writing a simple smart card application
by scorcho
- 3 Replies
- Last post
by Bite Qiu - MSFT
- Hi, I'm writing a simple smart card application that simply sends APDU commands to a standard ISO7816 smart card that's connected to a USB smart card reader(omnikey). I'm wondering what libraries/header files I will need to include and what are the associated API functions that I can work with TIA!
-
- Difference between Visual C++ and Visual Basic.net
by mido19
- 5 Replies
- Last post
by Damien Watkins - MSFT
- hi,
What is the Difference between Visual C++ and Visual Basic.net
thanks
-
- Pointer to member functions in VS C++ 2003
by Ferenck
- 6 Replies
- Last post
by Ferenck
- I have this code: typedef void (*DevRespPointer) (BlueDevice __gc*); class InternalBlueManager : public CBtIf { public: DevRespPointer DeviceRespondedDelegate; InternalBlueManager(void) { } ~InternalBlueManager(void) { } //Implementacion de Funciones Virtuales Heredadas void OnDeviceResponded (BD_ADDR bda, DEV_CLASS devClass, BD_NAME bdName, BOOL bConnected) { if (DeviceResponded
-
- How can i CreateWindow with no TitleBar?
by GLutz78
- 4 Replies
- Last post
by crescens2k
- It seems just using WS_DLGFRAME does not work although it sounds like it should based on msdn. I just want a window, not fullscreen, and no title bar. Is this possible
-
- Question on how to debug COM
by cccoder
- 7 Replies
- Last post
by Holger Grund
- Could some expert help to point out what's the best way to debug COM object. Let's say you get an IDispatch thing, how can you figure out the type of this object without going thru the trouble of doing
Code Snippet
if (FAILED(pDisp->QueryInterface(&pMyThing))) .... Since I had no way of knowing the type in advance, I can't even do QueryInterface() either. Is there any way to
-
- Blank screen while creating a win32 project in vs 2003
by hhampa
- 4 Replies
- Last post
by hhampa
- Last week I created a C++ project and by mistake instead of making it a win32 project I made it a .net project. I realized this and deleted the .net project and then tried to create another project with the same name, but this time it was win32 console application.
Now I am not able to create win32 projects any more. All I get is a blank screen when I slelect win32 console project (and select a
-
- doc/view w/ multi view split windows current selection
by travkliewer
- 3 Replies
- Last post
by Sheng Jiang
- Ok, instead of describing my whole application to you, I'll use an
pseudo example that suffers from the same problem. Let's say I'm
developing a scheduling program that displays each shift in a grid
pattern with the employees on the left and the days along the top. In
one view pane is the scheduling grid and the other displays details
about the shift as the user moves the mouse over one of th
-
- Debug Assertion Failed - and no idea why
by Philippp
- 6 Replies
- Last post
by Simple Samples
- i hope i found the right forum for my question. i got an debug assertion failed message, it says it failed in wincore.cpp line 1002. the strange thing is, that this isn't happening on the development computer. it happens unfortunately on a computer with no visual studio installed, so debugging is not possible. i am quite new to windows programming and i have no idea where i could start looking for
-
- Marshalling managed string to Unmanaged LPCTSTR
by kalaswetha
- 5 Replies
- Last post
by Aleksandr Tokarev
- Hi, I am using DLLImport to use a unmanaged function from my managed C++ in VS2005.
The actual function has the following syntax: EXTERN_C LPCTSTR API_API FSMGetDomainListCpp_Xml(LPCTSTR szDestAddr, DWORD dwTimeOut, LPCTSTR szXMLParam DWORD dwTaskID);
from managed C++, i am calling in the following manner:
[DllImport("ServerApi.dll", EntryPoint =
-
- Problem in vc++ 2005
by Jain1122
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hello All,
I have written some video streaming code in VC++2005 to stream video from video server.Its Successfully compiling with no errors.but when i try to run it its giving error
"This Application has failed to start becuase msvcr80.dll was not found.reinstalling this application may fix the problem."
I tried after reinstalling the application also but same problem continue.
-
- .NET 2.0 Application fails to load Mixed Mode C++/CLI assembly in particular PC environment (HRESULT: 0x80070002)
by GoldRunner
- 9 Replies
- Last post
by Anonymous
- I have a problem with starting my .NET Framework 2.0 application in particular PC environment. Previously it was successfully working on this PC, but some time it stops starting. I tested my app on several other machnies with similar configuration and it was successfully working. I was trying to repair .NET Installation, but it didn't help, so i would like to ask you help this problem, because i s
-
- Duplicating System::String assignment in another string-like class
by eldiener
- 4 Replies
- Last post
by eldiener
- One can create a System::String using the syntax: System::String ^ myString = L"A string literal"; Is it correct to say that this is equivalent to: System::String ^ myString = gcnew System::String(L"A string literal"); which is assigning the reference to another created system string If so, what System::String ^ constructor is being evoked to the right of the assignment operat
-
- Running application in DEBUG mode fails -- progress
by nivo999
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Hi,
I have a project written in C/C++, this project traveled through Visual Studio 6, then .NET 2003 and nowadays I'm in the process of moving it to .NET 2005.
This project compiles and builds OK in release/debug modes, AMD and Itanium.
The application runs OK in release mode, and also on AMD and Itanium machines, but I'm not able to make it work in Debug mode.
When I try to run it in
-
- merge modules for msfexgrid
by SteveLK
- 3 Replies
- Last post
by Ted.
- I have a native C++ application that ships with a legacy VB component. That VB component uses the MSFlexgrid to display some data.
Originally, InstallShield was used to build the distributable image. Now we are trying use the Deployment features of VS 2005. Everything seems to work fine until someone with Windows 2000 would install and run our application. They would find out they need all kind
-
- Problem understanding inline assembler code for fast sqrt implementation
by Henrik Andresen
- 3 Replies
- Last post
by Henrik Andresen
- Hi I am trying to use a fast implementation of the sqrt function, which will allow for small deviances from the std. sqrt. I am using a method based on the paper by Masayuki Ito, Naofumi Takagi, Shuzo Yajima: ; "Efficient Initial Approximation for Multiplicative Division ; and Square Root by a Multiplication with Operand Modification". IEEE ; Transactions on Computers, Vol. 46, No. 4