Software Development Network Logo
  • Game Technologies
  • SharePoint Products
  • Windows Forms
  • Visual C++
  • Windows Vista
  • VS Team System
  • Visual FoxPro
  • Visual Basic
  • Visual C#
  • IE Development
  • SQL Server
  • .NET Development
  • Audio and Video
  • Visual Studio
  • Microsoft ISV

Software Development Network >> Visual C++

Visual C++

New Question

Error executing link.exe... VC6
Using OLE automation to call another application
VC++ 2005 redistributable
help
Custom TcpListener class problem.
Invalid type cast
Why can I create an object to ref class on the stack in CLI?
Using AFX_MANAGE_STATE
MSDN Forum Problems
Hi, I am Anil, I am working with application that send data from pc to an HID device.

Top Answerers

kmcclung
Jehan Badshah
nobugz
BiBi MeiMei
MasterBodyman
joaomgcd
John Oliver (UK)MSP, VSIP
Jamie Thomson
Jaime Stuardo
r prasanna vignesh
DotNetServer.com
Only Title

Answer Questions

  • pnp How do I pass cin values into a constructor function

    I'm right at the beginning of my C++ journey, and I'm having trouble modifying code to do what I want! readers of SAMS will be familiar with the code example, if not the problem! I have a Class (Cat) that can be used to create Cat Objects (Frisky, Shandy, etc.) from header file cat.hpp:- //this is cat.hpp #include <iostream> class Cat { public : Cat ( int initialAge); // Constructor - initialises the class with the variable initialAge ~Cat(); // destructor - does nothing int GetAge() const { return itsAge;} // inline! void SetAge ( int age) { itsAge = age;} // inline! void Meow() { std::cout << "Meow.\n" ;} // inline! private : int itsAge; }; ...Show All

  • bobchauvin error C2064: term does not evaluate to a function

    Zoom function in microsoft visio viewer 2003 is like this: [id(0x0000001d), propput, bindable, requestedit, helpstring("property Zoom")] HRESULT Zoom([in] double pValue); but when I use the following codes to call funcitons: IViewerPtr m_Viewer( _T("VisioViewer.Viewer") ); CString strFunction("D:\\Program Files\\Microsoft Office\\Visio Viewer\\1033\\SAMP_VDX.VDX"); BSTR b = strFunction.AllocSysString(); _bstr_t b1 = b; m_Viewer->Load(b1); SysFreeString(b); double dTemp=1.6; m_Viewer->Zoom(dTemp); there is the following error, please tell me how to solve the error: error C2064: term does not evaluate to a function I appreciate your help. Hello Re: error C ...Show All

  • BogN Forms and Memory usage

    hi, i setup a simple Form with nothing on it and compiled it then ran the application, it was in Visual C++ Windows Form Application but when running the application it was using over 15.000k of memory. is this normal for an application of this type just seems a lot of memory for one item that does nothing. thanks Hello Deen, Please follow your previous thread at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=596224&SiteID=1 . Thanks, Ayman Shoukry VC++ Team Please could a Moderator delete this thread as it is a double post and the answer was solved in another section on this forum. thanks and sorry for the double post thanks, i was looking for that earlier but didnt know where it went. ...Show All

  • UmairKhan enum declaration - newbie can't do it! :)

    i'm using VS C++ 2005 native, and I can't seem to get an enum declared. I can do it in a CLI app, but not native C++. There was a larger example in my book, but I can't get a simple app that ONLY declares the enum to compile. Here's the error. Following is my code. I know the enum declaration is in the main() function; I've also tried declaring just before the main() function. Thanks in advance for any suggestions/help! Brian Error: Error 1 error C3168: 'bool' : illegal underlying type for enum c:\documents and settings\<user>\my documents\visual studio 2005\projects\c++\enum_test\enum_test\enum_test.cpp 10 Code: // enum_test.cpp // #include "stdafx.h" #include <iostream> using n ...Show All

  • Magannahan Skjellifetti msvcr80.dll Problem

    Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Thanks much everyone for the feedback. Sounds to me like its an inconsequential error that Norton will need to address in a future update to look for it in the correct dir. I read on an msn blog somewhere (sorry I cant find it again) that one should not put the dll in the system32 dir but from other posts it seems that it's possibly neede ...Show All

  • skeezwiz Help comparing strings

    I am trying to make a magic 8 ball program I cannot figure out how to compare strings here is my code #include <iostream> #include <cstring> #include <windows.h> using namespace std; int compare(string question); void cases(int num_coord); int main () { string question; cout <<"Ask the magical 8 ball!!!"<<endl; Sleep(600); cout <<"What is your question:"<<endl; cin >>question; int num_coord = compare(question); cases (num_coord); } int compare(string question) { int num_coord; if (question == "does") { num_coord = 1; } else if (question == "when") { num_coord = 2; } else if (question == &qu ...Show All

  • Candela not add an .obj file to my project

    Ih, i got this error " LINK : fatal error LNK1104: cannot open file "odbccp32.obj" compiling a code. As you can see in google, there is no solution aparently. In the same way that i delete lib files, how can i not add this file to my project Anyone who uses VS 6.0 bump! this problem has no answer, and its the only related article on google so i guess its worth the bump. You go to project/settings menu (you can also use alt+f7 hotkey) click in the link tab Make sure everything is spelt correctly on "object/library modules", filenames must have whitespaces in between. In my case the problem was i added some .lib and forgot to leave t ...Show All

  • SimonS_ Help! problem with CFile class

    This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All

  • oolon Transparent Splash Screen ?

    Hi there, how ist it possible to create Splash Screens like this I mean the transparency in the picture. (red color) And what is the best kind of file to make this GIF No, it doesent support partitial transparency... While not C++ based... take a look at this Code Project article . It includes several ways of doing different kinds of transparencies. Unfortunately it is in C#, so minor conversions may be required. This question falls outside the scope of this forum, which covers C++ language issues only. Direct further threads on the same subject to the UI newsgroup at http://msdn.microsoft.com/newsgroups . Uhmm, not exactly. I mean, how can i create a window / form / spalshscreen whic ...Show All

  • NamelessJuan nafxcwd.lib library linker error LNK2019 - help

    Hello experts, Below is the small program I am having issues with. It compiles successfully. As you see is quite small and simple program, but for some reason I am unable to link it when I tried to build it. I have also pasted the last part of the output from the linker with verbose. Hopping someone can help me out. It seems a problem with nafxcwd.lib but I am unsure. /* Setup includes */ #include <stdafx.h> #include <afxwin.h> /* Addinitional includes */ #include "ifl.h" /* Main */ int main(int argc, char** argv) { // Variables Declaration IFL_RC iRetCode = IFL_SUCCESS; HWND m_hwndMain; // Get Handle to the main window m_hwndMain = AfxGetMainWnd()->m_hWnd; // Initialize the use ...Show All

  • Heathorn Hawk Probelm about CException in release mode?

    Hi, My application works fine on debug mode, but not fine on release mode. The GPF will be happen after CException::Delete() every time. My class structure is like below. Please help me to solve this problem. Thank you! class EXPORT CApiException { CApiException (bAutoDelete):CException( bAutoDelete) {} ..... } CApiException *pError = Sender(..); <== Sender will return an error if error is happened. if (pError) { pError->ReportError(); pError->Delete(); <== GPF is happened here in release mode. } My application works fine on debug mode, but not fine on release mode. See this FAQ: Why does program work in debug mode, but fail in ...Show All

  • shafiqm LNK1104: cannot open file '..\Main.obj' problem

    Hi! Since there was no real answer in other threads about this problem i decided to make a new thread. I recently started to write some code in MS visual studio 2005 pro and im getting som quite confusing output from the liker: ------ Build started: Project: evilmonkeys, Configuration: Debug Win32 ------ Compiling... Main.cpp Linking... LINK : fatal error LNK1104: cannot open file '..\Main.obj' Build log was saved at "file://c:\evilmonkeys\BuildLog.htm" evilmonkeys - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I do not understand what the problem is Heres the debuger output .htm file content: Build Log        Build started: Proj ...Show All

  • Matt Olson "error LNK2005"

    I have the following code in my Form1.h file: #include "stdafx.h" #include <stdio.h> #pragma once struct Record { char arr[15]; }; Record theRecord; errno_t err_temp; FILE *tempfile; namespace StrToCharArr { .... //typical stuff } #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { StrToCharArray(this->textBox1->Text); } }; } My StrToCharArray.cpp function is the following: #include "stdafx.h" #include "Form1.h" using namespace StrToCharArr; void Form1::StrToCharArray(String^ str) { err_temp = tmpfile_s(&tempfile); fprintf(tempfile,"%s",str); } I am g ...Show All

  • 0xDEADBEEF Interaction with an application running in CMD

    Hi all, I have written code for an appliation which needs to interact with another application which runs in CMD. I want to receive all the information produced by the application running in CMD so that I can manipulate them and at the same time I should be able to provide input to that application. Please suggest me somehting regarding this. Thanks, yes that's what I want to do!! I will give input to my application using the keyboard, and it will actually be executed by another application which is running in CMD.exe in the background. And then I should be able to catch the output from that application in my own application. One restriction is that I won't be able to make any change in the applcation running in CMD.exe. Wil ...Show All

  • SeanC Memory allocation across the Dlls

    Hi All, I have been facing some problem with the memory allocation&deallocation across the dlls. For clarity I'm describing my problem bit elabarated: I have a COM Dll, which intern uses two dlls. (UI) <-----> COM_DLL<---->BusinessLogic.dll<--->Communication.dll. The memory allocated in communicationDll several places and freed in BusinessLogicDll several places, but when the ComDll is in release mode, and the applicatoin is crashes. But the application is built in Debug mode, everything goes fine. Also I have three versions of UI application two with MFC support and one without MFC support. I'm facing problem only with the UI-application built without MFC support, with other two absolutely n ...Show All

828384858687888990919293949596979899

©2008 Software Development Network

powered by phorum