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

Software Development Network >> Visual C++

Visual C++

New Question

unsigned short vs. wchar_t in SAX2 API
CreateProcess VS2005
exporting vc++ 2005 class in vba
vs2005 closing app error
please help with variable argument lists
problem in retrieving "Time" from database using _RecordsetPtr
Switching from BETA to RELEASE VS 2005 gets me an error!
VS2005 causes computer to REBOOT!
Error in tan() function?
C++/CLI /CLR Managed Support in Native Library

Top Answerers

Codereaver
Majones
ZopoStyle
Shrek.NET
Ken Villines
NeTBaPb
Martin00
Alessandro Ferreira
airportibo
Seefer
sitemap
Only Title

Answer Questions

  • Tianyu Li Visual C++ compiler error

    When I try to build a C++ file I get an error having to do with "Unresolved external _main". I searched through all the related files and there was no such string. What would cause this The compiler/linker is looking for a main function that doesn't exist. Do you have a Main() or WinMain() method declared and accessible yes my wife is really ashlee simpson and she's a singer but she wants to do movies also Have you built this project as a DLL or is something you've built from a blank slate Under your project properties you should have a field for the project's entry point -- this should either be left blank or match the name of your DLLMain entry point. Hello Re: Visual C++ compiler error [in VC 6.0] ...Show All

  • redshock How do you compile a COM compliant C++ DLL in Visual Studio 6?

    I am trying to use a DLL written in C++ and compiled in Visual Studio 6 in .NET. Unfortunately, I cannot reference the DLL in .NET because it is not COM compliant. I am not very familiar with Visual Studio 6 and was hoping there is a fairly easy way to compile C++ code into a COM compliant DLL. The best way to create a COM object is through the ATL wizard. If you have built a DLL from such a project, you can add a reference to it in your .NET project. I would try a blank project, experiment a little, and then think about how you can wrap your objects via COM methods. Visual Studio has a right click somewhere that you can use to add properties and methods to your COM objects. ...Show All

  • Lawrence 007 createprocess based FTP fails when command file contains wildcard character

    All, Newbie, need your expertise and insite on problem I am facing. createprocess based FTP fails when command file contains file name with wildcard character ('*') to refer dynamic file name, as the file name will have datetime stamp added at the end. eg: prod_ftp_01042006112234 ---> prod_ftp_*. Below code snippet (FTPClient.cpp) contains FTP client and FTP call. It works fine when file name doesn't contain wildcard char (*), but file transfer (FTP) fails only when file name has * at the end i.e. prod_ftp_*. No error being reported from FTPClient.cpp Same FTP command (ftp -s:FTP_CMD_File,FTP_Server) works fine in command prompt. But it fails at runtime from FTPClient.cpp and no error reported. Please let me know ...Show All

  • SimonS_ MFC Activex Control - Failed to create control: Unspecified error

    Hello,    I have created an activex control in MFC 8, VS - 2005 Beta 2,    which hosts Windows Forms control in it.  I have created it as per the article by Nicola (MFC 8 (VC++ 2005 and Windows Forms).  When I test using the activex tester I get the message - Failed to create control: Unspecified error.  When I refered this object in a html page using the object tag -  It does not show the object.   I have used the /clr option.  I noticed one more thing -  When I comment out CWinFormsControl related code,  the activex object displays on the html page.  When I add the CWinformsControl code back,  it does not even go into the OnInitDialog method o ...Show All

  • nhaas Calling unmanaged dll functions in managed C++ code

    Hello, I have a windows forms application that is written in Managed C++. I'm at a point where I need to use a dll that is unmanaged. I'm just not sure how to start. I'm confused about the whole import export thing. Any pointers on how to go about this Thanks!! I understand the .lib file. But what will the include file be Is there a way to determine what the .h file is To call functions, you need to know their prototypes. Usually SDK is supplied as .dll, .lib and .h file. If you know function prototypes, you don't need h-file - you can define them yourself. If you don't know them - .lib and .dll are useless. For example, to use function from Kernel32.dll, yo ...Show All

  • bharathi_tunes Linking issues

    I have a MFC Dll. The issue seems to be precompiled headers. When I compile the project using the option "Create Precompiled Header," it works fine. However, when I later select "Use Precompiler Header," it doesn't link properly. I simply get a... error LNK2001: unresolved external symbol "int __cdecl _AfxInitManaged(void)" ( _AfxInitManaged@@YAHXZ) Using Visual Studio 2005 Professional. What seems to be the problem :| Ah, right. Well #include "stdafx.h" should work even with the source file in a sub directory, and no stdafx.h in that particular sub dir. Delete the work around header/source file you created. Hold your horses there. The fact that precompiled ...Show All

  • kevin delafield DELAYLOAD in C++/CLI

    I have C++/CLI library which is linked to unmanaged library FGCamera.lib. I want to use FGCamera.lib as delay-loaded Dll. In the Linker Properties, Input, I have FGCamera.lib in the Additional Dependencies. Now I add FGCamera.dll to Delay Loaded Dlls. Result of linking: LINK : warning LNK4199: /DELAYLOAD:FGCamera.dll ignored; no imports found from FGCamera.dll C++/CLI Dll is called from C# exe client. Delay loading is not working. How can I fix this I made the same test with unmanaged MFC project linked to this library, and got this message: LINK : fatal error LNK1194: cannot delay-load 'FGCamera.dll' due to import of data symbol '__imp__FGResolutionStr'; link without /DELAYLOAD:FGCamera.dll Cannot un ...Show All

  • khs202968 Need help! Not able to get UdpClient BeginReceive work in VC++/Could this be a complier bug!?

    Hi, I need an urgent help. I am developing a socket application in VC++ that uses asynchronous connnection. After doing search on google, I found the following link http://msdn2.microsoft.com/en-us/library/system.net.sockets.udpclient ... First of all, thanks for microsoft team for this post. However I have couple questions concerning the C++ code in the link. Before posting my questions, first let me show you how I did set up a VS2005 C++ project to test this code. To create a test project, I do following File->New->Project->(Other Languages)->Visaul C++->CLR->Class Library Fill in solution name and put in the following code. ----------------------------------------------- TestAsynCallback.h ----- ...Show All

  • mertkan65 __wchar_t and wchar_t

    Greetings, What's the difference between __wchar_t (two leading underscores) and wchar_t (zero leading underscores) Thanks http://msdn.microsoft.com/library/default.asp url=/library/en-us/wcepbguide5/html/wce50grfZcwchar_t-Wchar_tIsNativeType.asp explains the relationship between the two types. i don't know the answer for sure..but i can tell u a way.. declare instances for both data types.. and then go to defination of the datatype.. it might be wrapper typedef of wchar_t of some sort or may be same.. and wcahr_t is wide character array .. which is 2 bytes used for a character(unicode).. VC++ had initially no support for wchar_t (it was just a typedef for unsigned short). They added a switch for mak ...Show All

  • bonus Sockets

    Hello, Im looking at programming a really basic server program using Socket Programming. Only problem is I havent really used Sockets before and i was wondering these questions: Can you use Sockets in console applications Does Sockets require a library like WinAPI or DirectX - Cheers, Daniel You don’t need DirectX library for socket implementation You can make use of WinSock library function or can use MFC classes like CSocket or CAsyncSocket. Please see the codeproject’s network MultiThreaed Client Server Communication Socket Programming with MFC (part 1) Learn about the socket part for your application and console read and write operations instead of M ...Show All

  • grhomm Converting 64-bit number into string

    Hi everybody, I need to convert an unsigned long long number (64 bit) into string with C++ 2005. The number for example is: 13057201162865595358. I want to write this value in a text file, but when i try to use ultoa to convert the number the result is 292279262. Here is the code: unsigned long long mt; char buffer[64]; mt=13057201162865595358; ultoa(mt,buffer,10); The result in "buffer" is the number mentioned above. Anyone can help me Thank's in advance Andrea Your input number 13057201162865595358 is more than 8 bytes. ultoa can only convert 4 byte numbers. You can convert 64 bit numbers using _i64toa. using namespace std; int _tma ...Show All

  • R.Tutus any documentation for coding a compiler

    I have a friend who is doing a school project: coding/implementing a comipler for C or C++ Where can he find some documentation pls Thanks. First of all, go to ansi.com and buy the C++ standard document. That's a nice thing to have, regardless of how advanced the compiler should be. Second, read up on "compiler compilers", such as Yacc ( http://en.wikipedia.org/wiki/Yacc ). When you've done that, it's time to read up on code generation and binary formats. Note that this forum deals with the C++ language, as implemented by VC++ 2005. For general discussion on topics such as this, the C++ newsgroup at http://msdn.microsoft.com/newsgroups is a better fit. it s for his stupif school. I didn t know things re supposed ...Show All

  • is98 CWnd::PostMessage returns FALSE and GetLastError() returns 1816

    Hi, I have an events system in my application that allows standard delegates to be fired synchronously (on the 'throwing' thread) for events that are raised; on another worker thread, or posted into the windows message pump for a particular window if the event will cause a UI update. The system works fine in itself, however, I'm running some stress-testing of a component which raises lots of different events by having a dialog that updates in response to changes within its state, and a worker thread that I can throttle which is causing the object's state to change. When I run the thread at maximum speed (no throttling), CWnd::PostMessage - which I use in order to queue UI-handled events - starts returning FALSE and GetLastError re ...Show All

  • h1 0xc0150002 error. How do I solve it?

    Hi all. I've used the dependency walker and on profiling, I encoutnered this error for my client.exe : 0xc0150002. The error before this exception states: LDR:LdrpWalkImportDescriptor() fail to probe log4cplus.dll for manifest, ntstatus 0xc0150002. What have I missed out I have placed the log4cplus.dll in the same directory as my client.exe. The machine that I'm trying to run client.exe doesn't have VS2005 installed in it. pls give me reply for solution how can i solve 0xc0150002 error Hi all, I tried to put Microsoft.VC80.CRT.manifest into the same directory as my client.exe and it works! Now I have another error haa a 800706BA returned back to m ...Show All

  • barkingdog combox close on "enter" in vc++ dialog

    Hello everyone, I am new here and also new to vc++. I am making a dialog application using vc++. in one dialog, i have removed the "OK" and "CANCEL" button, only left the "red cross" at the right upper corner of the dialog. because i only want to use it to close the dialog. now i add a combo box into the dialog. each time when i select the combo box and press the "enter", the whole dialog close !!! does anyone know how to disable this feature i only want to close the dialog by click the "red cross". Thanks a lot. neo. I suppose you are using MFC 1. If you press enter in a dropped down combobox, the dialog will never close. Except you have some handling in PreTranslateMessage. ...Show All

8485868788899091929394959697989901

©2008 Software Development Network

powered by phorum