Shape distortion after panning a map(document) area in MFC
Hello I have an application in VC++ MFC and it follows a document view architecture. I have an application which allows user to draw shapes, zoom, pan etc. I had drawn a shape. Now using pan...
View ArticleNot able to get Transparent Bitmap image on 64 bit Windows 7 and Windows 2008...
Hi AllI am getting a strange behaviour while creating BMP (having transparency) image on 64 bit Windows 7.Things are working fine on 32 bit "Windows 7" / "windows 2008 r2 enterprise" and also on 64 bit...
View ArticleCreating a CUDA static library by Visual Studio 2010
I'm trying to create a CUDA static library with Visual Studio 2010, but I (and I think also other users do) have some issues. In general, it seems that the IDE does not allow to fulfill the right...
View ArticleInvalid chars when converting from UTF8 to ANSI or CodePage 936
Our legacy MFC application (32 bit) is compiled using _MBCS. In windows 2003 Server (32 bit) we were able to load & Display double byte chars (Chinese simplified). We used notepad++ to convert the...
View Articlehow to use STL's string as a function argument, that has to be a C string...
normally I would dynamically allocate an array of certain size and pass it to the function, the function would fill it with values and that's ithow can I use STL's string directly in that function,...
View ArticleBoost
I have been having major problems with boost which i need to download for school, so any help would be appreciated. I have no idea where to ask a question like this because boost has little to no help...
View ArticleCleanup code in C++ console program
Hi all. This is my first question in this community.I'm working on a multithread C++ server (console program), running on Linux and Windows. I have a problem with the cleanup code on the win32 side....
View ArticleCreateProcess() Cannot Execute Batch File
CreateProcess() Cannot Execute Batch File When lpApplicationName = full path to "cmd.exe" and lpCommandLine = full path to "filename.bat" The command processor should be able to find the batch file and...
View ArticleNeed to convert a C# .net 4 project to C++ native
I'm probly not going to get anywhere with this thread but lets give it a shot...My project is around 2000 lines of highly compact code and I have optimized it as much as possible and I need it to go...
View ArticleSerial Port using VC++
Hi everyone, I am trying to write data to serial port. I am using WriteFile() - a built in function. I need to send data in integer format, but it sends data in ASCII format (CString). If I wish to...
View Articlecast an expression to string??
Hi All,I have a non-declared expressions like a function name: for example func1 , i like to cast them to their equivalent string : likechar* stringequivalent = EXPRESSIONTOSTRING(func1); //note func1...
View Articleequivalent to ref Message m in C++/winapi??
Hi All,I have a C# project that contains thisprotected override void WndProc(ref Message m) { switch (m.Msg) {case WM_INITMENU://...case WM_NCACTIVATE:if (m.WParam ==...
View Articlemacro for removing the zeros from the number??
Hi All,I have a number like 5050 i like to remove the zeros from this number using a macro NUMBER_DEL_ZEROS(x)for example NUMBER_DEL_ZEROS(5050) give us 55.how to do that? thank you very much for helping
View ArticleTo disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for...
#include<stdio.h> #include<conio.h> #define _CRT_SECURE_NO_WARNINGS void main(){int x,y,temp;printf("Enter two numbers :");scanf("%d,%d",&x,&y);printf("\nValue before swapping x=%d...
View ArticleI had LINK problem in my obj files?
Hi All,always I get LNK2001 after compiling, the unresolved externals matches the my functions which I have already defined intosource files, I don't know why objs files generate this error, Really I...
View ArticleTrouble with transfering projects.
Hi I just did a c++ camp and used visual studio 2010 c++. I downloaded this when I got back from the camp. The camp gave us flash drives so we could copy our projects and bring them home. When i got...
View ArticleCMake and Visual Studio build errors
I never use VS or any of the microsoft platform really, so it doesn't surprise me to be in this position. After trying for days to get tulip to build on my machine, I can't get it to work. I've...
View ArticleVS C++ 2013 RC - Error: DataVisualization
This is on a fresh install of VS 2013 RC, and I chose .NET 4.5.1 and x64 platform. The following line generates an error.System::Windows::Forms::DataVisualization::Charting::Chart ^chart; The word...
View ArticleIs it the END of MFC/COM/ATL
Hi, From past quite sometime i have been working on MFC/Win32 API. Also i have started working on COM/ATL. I have been seeing the changes, the invention of .NET and now as been .NET 3.0 it looks...
View ArticleResizing CMFCReBar
Have a VS2010 MFC GUI project. In CMainFrame::OnCreate, call Create on CMFCReBar, then create CDialog, then AddBar the CDialog to the CMFCReBar, then EnableDocking on the CMFCReBar, then DockPane the...
View Article