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

Software Development Network >> Visual C++

Visual C++

New Question

The problem is : after I install this driver protocol, I can not find it in the system service of control panel.
exit on enter key
How to use CFile.OPen in specific folder("Public" folder) in Vista
Confused about function prototype signitures from C++/CLI to C#
Can you tell me what is the website for CodePlex?
How to calculate the accurate time of a section of program in VC?
I want to sort a array of a structure, is there any other function doing the job except qsort?
MFC Question
Rounding to an integer
/MTd and /clr options are incompatible. Why?

Top Answerers

d3v
LeonR
BioGeek
BigWinston
Joenormal
Hans1982
M.A.T
Jarrado
PeterVrenken
fatalist
Sci-Fi Wire
Only Title

Answer Questions

  • d2army Dll issue

    Hello! I am using windows API functions in my program , to be specific i am using the IcmpCreateFiel() and IcmpSendEcho() functions. For this i have added these hader files: - icmpapi.h - ipexport.h i also read in the documentation that "iphlpapi.lib" needs to be linked as well. So, what i have done is using the floowing path "VC 6->projects->settings->Link" i have added the "iphlpapi.lib" in the space provided for Object / Library modules . But when i run the program the following error occurs : "The procedure entry point IcmpSendEcho could not be located in the dynamic link library iphlpapi.dll" Am i missing some important step Please suggest what should be done abo ...Show All

  • Lukejs3 strange output with atan2.....what does it mean?

    my line of code is: phi=atan2(n,e.x)+atan2(e.z,e.y); and it returns this: 0012FCE43.14159 does anyone know what this output is thanks! -sharyl My interpretation: 00012FCE4 3 .14159 ^memory address ^numerical result (pi) on the stack Here's code that could produce similar output: int main( ) { double x = 3.14159; printf( "%08X%g\n" ,&x,x); return 0; } 0012FF3C3.14159 i found the problem: i was writing file_op << phi << file_op << ........; instead of: file_op << phi ; file_op << ........; thanks for all the help! Indeed, strange output... but since atan2 actually re ...Show All

  • Huson My PE Loader cannot load EXE file which bulit with VS2005.

    I need to write a Simple Loader which can run simple EXE(PE Format) file. My loader can parse PE header: IMPORT,EXPORT,RELOC...... I bulit AP.exe with VS2005, and AP.exe imported msvcr80d.dll. So when my loader parse AP.exe's import table and call LoadLibrary to load msvcr80d.dll, but it return NULL. I have searched some information on internet, and known the "manifest" file's effect. I have read http://msdn2.microsoft.com/en-us/library/ms235342.aspx Troubleshooting C/C++ Isolated Applications and Side-by-side Assemblies and related information. And I try some method to let my loader load msvcr80d.dll successful. For example: Before call LoadLibrary, I do open AP.ex ...Show All

  • lou_1 Threads.....

    I am trying to call a writeEvent function from different function,which is occupied by one thread already in the program. Thus I am trying to use this piece of code. delegate void AppendTextHandler(String ^s);//Global void phone::writeEvent(String ^msgs)//a member function. { if(richTextBox1->InvokeRequired) { AppendTextHandler ^ATH = gcnew AppendTextHandler(phone::writeEvent); richTextBox1->Invoke(ATH, new object[]{msgs}); } else richTextBox1->Text += msgs + "\n"; } I am using VC++ 2005, the error i get is as follows..... Compiling... phone.cpp .\phone.cpp(251) : error C2061: syntax error : identifier 'object' .\phone.cpp(251) : error C2143: syntax error : missing ')' before '{' .\phone.cpp(251) : er ...Show All

  • lou_1 DLL questions with Visual Studio using C++

    I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec ( dllexport ) and __declspec ( dllimport ). When I try a Windows Form Application I get lots of errors with the linker because of the CLR from what I can tell. I tried various things I read and could never get it to work. I decided to try my hand at a .def file and after reading up on how you write it up I have some questions. Can you export overloaded functions using a .def file From what I read I have to include extern "C" to keep C++ name mangling from ...Show All

  • A.Kahn Why does compiling with Unicode cause buttons to look different than with Multibyte or none??

    I want my application that was build with Visual Studio 6.0 to look the way it does when I compile with the Unicode Project Property option using Visual Studio .net 2005. But, if I compile with the Unicode option, I have to change the way I use strings throughout my application. Is there some way to get the newer visual effect (ie. buttons with rounded corners, radio buttons change with mouse-over) without having to make extensive code changes MFC application built by VS 2005 Application Wizard, has the following code in stdafx.h: #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='659 ...Show All

  • thomas woelfer Program runs slower when compiled with Visual Studio 2005 (in Release with optimization)

    Hey, I have a performance problem with the new Visual Studio 2005. My code (which is a genetic algorithm) is 3 times slower when compiled under Visual Studio 2005 compared to when I was compiling it under Visual Studio 2003. With Visual Studio 2003, it used to run in 3.0639 seconds, and now it runs in 9.0031 seconds. I run both code in Release. I tried every optimization option, and adding the /D_SECURE_SCL=0 compiler command to the project options with only minor differences. Is there any other way to get back to the speed Visual Studio 2003 It is a bit absurd to upgrade to a new compiler and get lesser performances. Thanks a lot!!! Antoine Atallah That 'infinite' loop is the correct way to implement op ...Show All

  • Tony B Regarding WAB programming

    Dear all, I'm working in a project where I have to sync mobile's contacts with the windows address book. so I need to to add/delete/modify the contacts in vCard format. i.e. from mobile I get the contacts as vCard, that vCard I have to add into the Windows Address Book. I have seen programs with wab.dll+getProcAddress combination, but it is tedius. Can any one suggest me any other method if available. Thanks in advance. Prasadmp. You might try looking at Accessing the Windows Address Book on Code Project. You should also read You cannot #include wabdefs.h with VC++ 2005 and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=238644&SiteID=1 ...Show All

  • Vivek S BuildAction Property in C++?

    I can not find the Build Action Property seen in C# on an XML file, in my C++/CLI project. I am converting a large C# control to C++/CLI. The author of the control seems to have embedded an xml file into the assembly. I need help in figuring out how to do this in C++/CLI. The property list of the file under C# is considerably different than the propery list uder C++. Among the missing is: "Build Action: Embedded Resource". Please refer me to documentation where I can learn how to embed an xml file as a C++ project resource. I'm guessing a bit because I haven't tried it but it looks like the Assembly Linker can embed a arbitrary file into an assembly. Run Al.exe with the /embed command line option as a postbuild ste ...Show All

  • Deepthi Rao problem running a window service

    i have built a window service in vc++ and installed it using command "sc create " service goes properly except that i hav fired an exe from the service on some event . that particular exe gets added to task manager but does not run as an application can anybody tell me why thanx. Hello Re: problem running a window service Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All

  • tony_davies Is this a bug of MFC ?

    When I create a SDI project leaves all settings default, I add OnSysColorChange function to CMainFrame, and add these lines of code below : CMainFrame::OnSysColorChange() { CRect rect; GetWindowRect(rect); TRACE("%d,%d,%d,%d,%d,%d",rect.left,rect.right,rect.top,rect.bottom,rect.Width(),rect.Height()); } After compiled successfully, I press "F5" to start Debug, then I right click on windowsxp desktop, then "Properties" -> "Appearance", everytime I changed "Color scheme" value, the SDI window rect would deflact 1 pixel, I can see it from the debug output window. UnionizeUniverse wrote: After compiled ...Show All

  • Michael Hotek Help with version resource

    Hi. I have a Win32 project and I have added a version resource to it. Can someone help me on how to read a value from the resource and use it in my main application Any links for reading are welcome. Thanks in advance. See http://www.codeproject.com/file/VersionInfo.asp Thanks a lot. Hope it will work... ...Show All

  • Caolan ODomhnaill Assertion failed: 0, file 'C:\MyProject\project1.cpp line 1290, (abnormal program termination), thread exited with code 3

    Hi, Can any one please help me with this run time error Assertion failed: 0, file 'C:\MyProject\project1.cpp line 1290, (abnormal program termination), Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\uxtheme.dll' ...Show All

  • mhodder Visual Studio 2005 can't find the standard include directories for C++ project

    I have just installed Visual Studio 2005 Team Edition for Software Developers and imported a project that was created in Visual C++ 6. Building the project gave hundreds of errors (C2039 'name' is not in std namespace). After a lot of hair tearing (which I just can't afford being a bit thin on top) I found that VS 2005 couldn't find the standard include files. After I added C:\Program Files\Microsoft Visual Studio 8\VC\include and C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include in the VC++ Directories under options it built correctly. So why can't VS 2005 resolve the directories $(VCInstallDir)include etc. I still have VC++6 installed as well as Visual C# 2005 Express Edition. My Windows version is Microsoft ...Show All

  • rohit_c4u About CRuntimeClass::m_lpszClassName

    Just wondering why this member is only "A null-terminated string containing the ASCII class name." The problem I am having is when I am using CMapStringToPtr::LookUp(). Parameter 1 expects LPCTSTR. When _MBCS is defined and I pass in m_lpszClassName (which is LPCSTR) it works just fine because the 1st parameter for lookup is type TCHAR which in this build will just be CHAR. However I now want to do the same thing but with UNICODE defined. Now I get the "error cannot convert LPCSTR to LPCTSTR". I know I can use MultiByteToWideChar() to convert the CHAR to WCHAR but is it really necessary for me to do this Is there some compiler setting that I am missing that will handle this Also what if I wanted to build in either ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum