how to convert Visual Studio 2010 C++ .EXE project that shows a window into...
I have a Visual Studio C++ .EXE project that opens a window and display a live, grayscale image OK. I changed project to .DLL so imagine generation methods can be called (COM) by a C# project, and this...
View ArticleConvert std::string to char[]
//My function is for converting std::string to char[]void stringConvertToChar(string& str,char arr[]) //To convert std::string to char[] { char *y = new char[str.length() + 1]; strcpy_s(y,...
View Article"fatal error C1083: Cannot open include file" while compiling for x64...
Hi everyone, I recently installed Visual Studio 2012 Pro and compiled boost library with it (succesfully). Then I decided to compile some example with boost. At first everything went smooth: Win32...
View Articlenickel & dime performance gains
In my Win32 shell, its designed to print results from any task. Makes it a native Windows program and looks better than a console project.So far...LRESULT CALLBACK WndProc (HWND hwnd, UINT message,...
View ArticleApplication using SQL
My application creates and uses some databases in SQL. I have SQL in my computer and it works fine in my computer, but will it work on another computer which dosen't have SQL
View Articlehow can i trace every function call?
hi i,i'm new to VC2010. Given the source code, i'm supposed to quickly understand the behaviour the program.now how can i tweak the build configuration, so whenever it enters or leaves a function call,...
View ArticleImplement Winsock interprocess communication to synchronize a vector?
Using C++ I would like to setup interprocess communication using sockets (Winsock) between a single server and several client processes.The server and all client processes will be running on the on the...
View ArticleVisual C++ Error : Uninitialised variable
#include<stdio.h> #include<stdlib.h> #include<conio.h> void display(char *, int); int main() { char *ip; char *op[4]; int j, i=0, num=0, count[4]={0, 0, 0, 0}; printf("Enter the...
View ArticleDistinguish between launch using command line and double-click
Hi There,How would you determine whether a program is double-clicked or invoked from the command line? I am looking for vc++ way of achieving it!Thanks | Abhishek
View ArticleSeparating C++ source program into separate files
I have built a fairly complex VS C++ program which works perfectly. My problem is that the single source file is fairly long and, since I am planning to add further features, it would be convenient to...
View ArticleCannot Use Resources In Windows Forms ( Visual C++ ) .
This question is now solved . I was messing around !Thanks to all replies .
View ArticleMFC modeless dialog dll can't show tooltips normally
Hello, I met a question about the tooltips in modeless dialog dll. I use the method to set a hook in my dll. MSDN Link:"The TAB key doesn't move input focus from one control to another....
View ArticleHow to get Excel comment using Visual C++(MFC)?
hello everyone:How to get Excel comment using Visual C++(MFC)?Part of mycode is:#include "CApplication.h" #include "CWorkbooks.h" #include "CWorkbook.h" #include "CWorksheets.h" #include "CWorksheet.h"...
View ArticleHow to dispose CWinFormsControl correctly
Hi Experts,we have several ActiveX controls which are used as glue code between our Win32 application and newer .NET controls.Lately I analyzed a GDI leak and stumbled over still rooted .NET controls...
View ArticleAfter Upgrade VS2010 to VS2012 missing projects porperty page
I just started to test a migration of our solution from VS 2010 to VS 2012.Unfortunatly lots of c++ projects in the solution are failing to build.I wanted to check the configuration property pages, but...
View ArticleConnect Function always succeeds
I'm beginner in winsock programming and i witnessed a peculiar behaviour of the connect function to establish a socket connection.The socket function succeeds even though there's no valid host in the...
View Articleregex header file not found in VC 2008 Pro
I'm unable to use #include <regex>, it says header file not found. It is not there in C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include. Isn't 2008 compiler TR1 compliant? I heard it...
View Articlefatal error LNK1104: cannot open file 'libpjproject.obj
hello guys, i am facing this problem at compilation time please help me what the issue..... Error1fatal error LNK1104: cannot open file 'libpjproject.obj'waiting for your...
View ArticleDECLARE_SERIAL & IMPLEMENT_SERIAL
can anybody tell me definition of DECLARE_SERIAL and IMPLEMENT_SERIAL macro ?Mrutyunjaya
View ArticleInvisible Dialog Control Flicker
Hello all, I've created a control I've placed onto a dialog (mostly for testing purposes). The control has a transparent background. I've added code to the dialog to draw random images in...
View Article