Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

ChildWindow processes return key,but not the other keys

So I have an app that has a gdi drawn list.If I press the up down buttons,the selected item will be the up/down one,if I press enter,a new window will open.I'm trying to do the above,using code.So,if I...

View Article


Code hangs on using sendmail command of smtp ?

Hi, I m trying to send a mail via c++ code. I downloaded EASendMail component installer in ma system. Then using this i wrote a code in vc++. I m sending a mail using a gmail id.I m able to send the...

View Article


Image may be NSFW.
Clik here to view.

Different dialog box position and size with Visual C++ 2012

While porting our Win32 API application from Visual C++ 2008/2010 to Visual C++ 2012 we found strange difference in dialog box behavior on Windows 7 with Aero. Dialog boxes in applications compiled...

View Article

textout function and bitblt function failed with a HDC which get frome GetDC...

vs2010 c++ programfirst i Get a HDC by using GetDC(HWND hwnd)[note:function call success,no ReleaseDC call until program exit],stroe it as a Gloable   variable;then i use textout function to show some...

View Article

Steps to resolve LNK2019 error

Hello All,The project compiles correctly in VS 2010 but in VS 2012, I am getting the linker error as:error LNK2019: unresolved external symbol __imp__strcat_s referenced in function "int __cdecl...

View Article


built-in C++ operator+= (const int &, int)

class C2666 { public: operator int const & () const; C2666 & operator += (unsigned) const; }; void trigger () { C2666 () += 0; }1>c.cpp(7): error C2666: 'C2666::operator +=' : 2 overloads...

View Article

CArray contains only the last added element

Hi this is my code -  CStdioFile objFileOpen; CFileException fileException; CString sLine; int iNumb,iIndex=0; iNumb=GetNoOfRows(sFile); CTechCall* objTechCall=new CTechCall[iNumb]; CTechCall *ptr;...

View Article

VC++5.0 Executable files and Windows 7

Hi All,            We have an application build using MS Developer Studio 97 ( VC++ 5.0) and we are planning to upgrade the OS from XP to Windows 7. Can someone help us on the following questions 1....

View Article


Visual Studio C++ 2010 stops working after edit.

I've been using Visual C++ for about a week now and I've come across this peculiar problem ever since I started. When I write a program and debug, the compiler gives a "MC Visual C++ has stopped...

View Article


Scaling UI with DPI change of non MFC application.

My application is a plug-in developed in VC++ (win32). The solutions I could find didn't work for me. I have two options : To disable DPI changes for my DLL plugin. That means my plug-in will not be...

View Article

Problem with DDV_MinMaxInt in VS2012

Hello,I'm migrating code from VS6 to VS2012. I have to do validation of GUI text entered to see whetehr its an integer within a range. I used DDV_MinMaxInt in VS6 to do this. But the same does not work...

View Article

xp window moving

I created a popup window with vs2008 C++, build and runs successfully on win7/vista, but when I tested it on xp, moving them window left behind its trace witrhout being removed. So eventually, the...

View Article

application crash when exit

Anyone can help me on this? I have being struggle on this for days and still have no idea yet.The project which I am working on for years, it is a Cwinapp based mfc window application, but recently,...

View Article


MFC VC6,0 CFile::modeCreate??

If the CFile exists and is "read only" -  using CFile:modeCreate the OS denies access.The doc saiz that existing file will be" build" with  0 length. Not true.My guess is that SourceSave marked the...

View Article

[C++ - Class's] - about methods

i'm learning C++ with Teach YourSelf in 21 Days book. but i'm confuse in 1 thing about methods in a class:they do the functions prototypes in the class. but they do the function outside of class:class...

View Article


make a dll file from a solution sln file

I have a sln file prepared using cmake on the sourceforge distribution of plplot.Can I use Visual C++ Express 2010 or Visual  Studio to make a dll file out of this?How?I did a build on the file in the...

View Article

Opening MMDevice API

I am stuck at an early point and have tried all sorts of things without success. My aim is a WASAPI rendering program with some complications, but at this point I am trying to get an MMDeviceEnumerator...

View Article


How can i compile .c file to dll using Makefile.mak ?

I just downloaded the msys and also downloaded the ffmpeg snapshot and also downloaded MinGW Now i have this CPP file ://#define UINT64_C (uint64_t); /* #pragma comment(lib, "Gdi32.lib") #pragma...

View Article

Compare date time-vc++

Hi i have 3 time fields mrktTime, CallTime, ExitTime respectively declared as unsigned long. I need to compare is MrktTime>=CallTime and MrktTime<=ExitTime.Ex- MrktTime = 3/14/2013 15:15...

View Article

Unable to Invoke .net Com method when running it in framework4.0.

                                               SetupController m_comSetup = new SetupController();ReturnValue ret = m_comSetup.OpenScript(null, null, null, m_comData);ORType objType =...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>