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

Software Development Network >> Visual C++

Visual C++

New Question

Compile assembly language program in Visual Studio 2005
Howto create startupscreen -/- borderless ?
List Control Perfomance Issue
ethernet programming
Problem with DialogBox-will not halt the program
Extremely memory efficient file sort?
Legacy C Application and .Net Framework 2
DWORD_PTR
C++/CLI serialize of class in mixed-mode assembly
Addin to build vcproject source tree

Top Answerers

George Homorozeanu
Syed Atheeque Pasha
Keithyboy1
Anand Raman - MSFT
Bandile
brent.xml
cdun2
Benj78
Markus Fritz
Se7en20
sitemap
Only Title

Answer Questions

  • David S. Anderson Giving the user a language option in VC++??

    Hello, Could any one please explain how it is possible to give the user the option to change the language of the status bar,main frame etc during runtime I create a dialog box in an SDI based MFC-application(using Visual Studio dot net 2003) and have a list box in the dialog box,with language options such as "English","French","German" etc.The default language is english,but if the user selects German,then on pressing ok the language should change to german. I heard it can be done by using "String resource".A little detailed explanation would be highly appreciated. Thank you Do you have different DLLs for each language now If not create empty DLL projects add the resource file to it. Defin ...Show All

  • pfunkmasterflex MFC Question

    (I cannot find a MFC forum here so I thought this would be the best place to post) I'm writing a program in C++ using VS.NET 2005 with the DOC/VIEW approach. I ran the wizard to generate the MFC project and I have the following .h files: MainFrm.h Resource.h Sketch.h SketchDoc.h SketchView.h stdafx.h I have the following .cpp files: MainFrm.cpp Sketch.cpp SketchDoc.cpp SketchView.cpp stdafx.cpp I have a very simple question - how I do I change the name of the window that appears I thought you go into the initInstance in Sketch.cpp and right before it shows the window, you invoke the SetWindowTitle method, but that doesn't exist on the m_pMainWnd variable, which appears to be CWnd. I hav ...Show All

  • Mike L Hayes We cannot have static friend function?

    Hello everybody I tried a lot.. and Searched on NET ... but din't get the answers.. why friend function can't be static or extern I got the answers I am not satisfied with this answers. actually this answers is hard to digest. We cannot have static friend function...is it because 1.since static member functions can access only static data members...whereas friend function can access all the members. 2.friend function also require an object to access the members...wheeras static member functions can not. 3.One more thing....since friend functions are non-member functions....and static functions are member functions And Another question is Why Static member function can't recieve this Pointer ...Show All

  • Nagaraj K Using a C# Library from C++ applications

    Does anyone know if it's possible, and if so how do I do it Alternatively, enable /clr compilation and directly use the C# library using C++/CLI. make the C# project - a COM Component. for this create an interface like give the guid here [Guid("")] public interface iTest { bool Test(); } now implement this give the CLSID here (within the quotes) [Guid(""}) public class CTest : ITest { public bool Test(){ //....do here } } in the project properties make the option for register as COM interop to yes. then use regasm tool for registering the dll and creating the tlb. regasm -1 test.dll /tlb:test.tlb Now ...Show All

  • Peter Torr - MSFT Help button get chm instead of hlp

    I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is allocated before InitInstance is called. free((void*)m_pszHelpFilePath); //Change the name of the .HLP file. //The CWinApp destructor will free the memory. m_pszHelpFilePath=_tcsdup(_T("C:\\filezilla\\filezilla.chm"));     EnableHtmlHelp(); but i just get "Failed to launch help" Note that you ...Show All

  • FJK Functions as template arguments

    I have the following code: typedef void* STACK; template <typename T, void (*S)(T* ptr)> class AutoPtr { public: int junk; }; template <typename T, void (*S)(T* ptr)> void FreeStack(STACK* stack) { // loop through all stack items and call S on each item } template <typename T, void (*S)(T* ptr)> class AutoStack : public AutoPtr<STACK, FreeStack<T,S> > { public: int junk; }; typedef void* RESOURCE; void FreeRESOURCE(RESOURCE* res) { // free the RESOURCE } int main() { AutoStack<RESOURCE, FreeRESOURCE> a; a.junk = 0; } Basically, I pass various free functions through the template. When I compile I receive: error C2440: 'specialization' : cannot convert from 'void (__cdecl *)(STACK *)' to 'vo ...Show All

  • Pradeep Gupta Paint' : cannot convert parameter 1 from 'struct HDC__ *' to 'long'

    Paint function in microsoft visio viewer 2003 is like this: [id(0x60020035), hidden, helpstring("hidden method Paint")] HRESULT Paint( [in] long HDC, [in] long X, [in] long Y, [in] long Width, [in] long Height, [in] long SrcX, [in] long SrcY); 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); m_Viewer->Paint(pDC->m_hDC ,10,10,200,200,20,20); there is the following error, please tell me how to solve ...Show All

  • Dharan Prakash Adding images

    Hi all, I'm trying to add an image to a Dialog box, I've tried to create a bitmap resource and adding it to an image control on the dialog, but I you can only add images of 256 colours, is there any way I can add a full colour image to a dialog box Cheers for any help Pete Thanks Viorel, that's spot on - I thought I had to copy and paste it into the resource editor, but you're right I can insert any bitmap, it just means I can't edit it from within Visual C++ which is fine. Thanks for that! Pete Can you please tell me how to do that Draw the image with bitblt(). What image format Bitmap (bmp) is easiest on Windows platform. valikac ...Show All

  • cdx1 Do we need .NET Framework to run MFC application and ...?

    I built an MFC application and now I have 2 questions: - Do I need .NET Framework to run MFC application built in VS 2003 or VS 2005 - How can I make the Visual Studio automatically put the library files (*.DLL) in the same folder as the executable file (*.EXE) as I compile the project Thanks in advance. Sarath. wrote: You dont need the .net frame work, if you are not using the service of the same (if your project is not a .net project) If you are only using MFC and Win32, you need to put the the files manually with the files. You can specify prebuild or post build event in the Visual Studio Project Properties. You can do the copy manually through the DOS commands. To know what are the dep ...Show All

  • Shanea DLL issue

    I am new to VC++ In VS 2005 I am trying to build a DLL project written previously in VC++ 6.0 . VC6.0 used a makefile to build the test.dll and test.lib Make file entry looks as below: Test.lib: Test.obj Test.def $(implib) -machine:$(CPU) \ -def:Test.def \ Test.obj \ -out:Test.lib Test.dll: Test.obj Test.def $(link) $(linkdebug) $(dlllflags) \ -base:0x1C000000 \ -out:Test.dll \ Test.exp Test.obj $(guilibsdll) My questions are a) What are these $(link) $(linkdebug) $(dlllflags) $(guilibsdll). Where does VC compiler picks these from b) When I build this test.dll and test.lib in VS2005, and used it in a test program I get an error message while running the RELEASE build of test.exe which says 'App ...Show All

  • Ramazan Acar .dll entry point

    Hi folks, I've been porting my code over to VS 2005 from VS 2002, and have been confronted with what appears to be a new addition that has me stumped. I'm compiling .dll's and am getting errors when attempting to use them along the lines of: "The procedure entry point _encoded_null could not be located in the dynamic link library MSVCR80.dll" Now, MSVCR80.dll exists (I had to put it on the machine myself, though), so I figure this leads back to the linker in VS 2005. I've noticed a new option referring to Entry Point and also the ability to set the /NOENTRY switch. I've not specified an Entry Point, and nor have I specified the /NOENTRY switch. Obviously this probably explains what I am seeing, right Not specified an entry point. ...Show All

  • dmk70 Converting from C to .NET C and to .NET C++?

    Newbie here. Not sure I have lost track. But I am really confused now. I have a C program and have open it with .NET VS2005. Some conversion has automatically done and now it is successfully compiled under the .NET environment. However, the file is still remained as a *.c file. I am not able to use some .NET functions like Console::WriteLine. I supposed I need to further convert it to a *.cpp file What should I do to fully convert an ANSI C program to a full .NET C++ program Please enlighten me. I promise to grade your posting. Thank you very much. There's very little hope you can ever directly translate a 'C'-style socket app to .NET, there's just too many operating system specific ca ...Show All

  • hemo Running an external .exe from C program

    Hi, I want to run an external .exe file from my C code. If i use "system" command the external exe runs in the same window. How can i run the child exe in a different window Thanks Karthik Alternatively, you could use CreateProcess, with the creation flag CREATE_NEW_CONSOLE. See http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp frame=true for more information. Of course, that would depend on *nix portability. Maybe instead of system("MyExternalExe.exe"); you should try this: system("start \"My external EXE\" MyExternalExe.exe"); I hope it helps. ...Show All

  • Heinz_Richards Problems using _fseeki64 and _ftelli64

    Hi, I am using VS 2003 and i need to call _ftelli64 and _fseeki64 in my application. However i am getting linker error error LNK2019: unresolved external symbol __ftelli64. Are these functions exported for VS 2003 build applications. Please suggest any solution Thanks MM Ansari I need to code in "C" so C++ functions (tellg) won't be of help. Is there any way i can still use _telli64 of file and not lower-level file. I tried using _lseeki64(_fileno(fp), 0, SEEK_CUR); but even this function returns me end of file. The method based on _telli64 actually gives the file position of underlying lower-level file. The FILE -based functions use a buffered i/o, therefore the results of _telli6 ...Show All

  • DMAR330 Import Native C++ dll in Managed Project

      I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can't be added to references. The syntax for loading it manually, [DllImport("ArmWrp.dll")], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting: // ArmWrp.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #ifdef _MANAGED #pragma managed(push, off) #endif BOOL APIENTRY DllMain( HMODULE hModule,                        DWORD  ul_reason_for_call,          &nb ...Show All

303132333435363738394041424344454647

©2008 Software Development Network

powered by phorum