Problem with sattelite assembly generation
hi.(hope this is the correct Forum; i was forwarded here from the moderator Forum...)I have a managed (vc2010) c++ project (named 'constants'), that contains strings in a "strings.resx" file. In the...
View Articleproblem sending application by email or skype
i am still learning visual c++I have written a windows forms application, to help a child learn English, which I want to send to my friend in china, as well as to my sister. (I have had invaluable...
View ArticleHow to set the default platform toolset
I'm in the process of migrating projects from visual studio 2010 to 2012 and having a problem with the platform toolset setting.Each of my projects (all 170 of them) have got explicit setting of...
View ArticleUsing CDHtmlDialog app, changing images (JPG,PNG) dynamically in the HTML Page
Hello all,I created a MFC dialog using CDHtmlDialog and added a HTML page with many controls and one of them is a IMAGE tag. I got a default image loaded from the hard drive displayed in the HTML page....
View Articlewhy i like openmp
i find openMP to be a real boon to working with modern multi-core processors. I can ignore the CPU cores and simply declare any suitable loop to be run in parallel with all available cores.no need for...
View Articledll problem when debugging.
When I debug my project and run, it break and show "unhandled exception at xxxx(xxx.dll) in xxx.exe:xxxx:privileged instruction". Why?
View Articlereading/writing DLL memory
If anyone can help ... in C++ I'm unsure about the basic rules of the consumer reading/writing DLL memory and DLL reading/writing consumer memory?
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 ArticleWhy won't this take input?
Hi,I can't seem to figure out why this doesn't take input:#include <iostream> #include <conio.h> #include <string> #include <vector> using namespace std; int main() { int...
View ArticleOPENFILENAME ofn;
OK given...OPENFILENAME ofn; comes from the old Win32, I was wondering what is the best usage to span XP through Windows 8.1 to open file*.TXT is the mask in mind, however I am also interested in...
View ArticleCreating a Bitmap from a Bitmap in C++
Hello, I would like to create a bitmap from other bitmaps. The C# code that worked isg.DrawImage(background, distance, 0, new Rectangle(0, 0, 1000, 1000), GraphicsUnit.Pixel); g.DrawImage(background2,...
View ArticleGetting the list of available serial ports in C++
How do I get the list of available serial ports in C++? I am able to do it in Visual Basic, but I can seem to do it in C++.Got RAM?
View Articlelet SetMonitorBrightness return FALSE
Hi,I am developing a application of monitor brightness control on computer with windows 8. The monitor has support DDC/CI, So when I used SetMonitorBrightness(), it always return TRUE. What I need to...
View ArticleCString Find return value issue
Hi All,I am getting the same return value for the following 2 statements.CString str1 = _T("Hi Hello"); int nPos = str1.Find(_T("")); //return value nPos =0; nPos = str1.Find(_T("H"));//return value...
View ArticleHow to use ?
I have this class #include "WebSocket.h" WebSocket::WebSocket(void) { WINHTTP_WEB_SOCKET_BUFFER_TYPE eBufferType; } WebSocket::~WebSocket(void) { }and the header file#pragma once #include...
View ArticleCryptBinaryToString or CryptStringToBinary?
To reproduce this result from Wikipedia base64 article:To base64 encode this string"Input ends with: any carnal pleasure."and get this result:"YW55IGNhcm5hbCBwbGVhc3VyZS4="Which function should I use?I...
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 Articleunexpected optlen size from getsockopt on Windows 7
I'm porting some code that works when compiled with VS.NET 2003 and run under XP but has different results when compiled with VS 2012 and run under Windows 7. int l_BufferSize = sizeof( BOOL );...
View ArticleDisplaying Variables
Hi, I'm very new to Visual Studio (though I have completed most of the MSDN tutorials). I have written a program in CodeBlocks, and have now moved it into Visual Studio. I am trying to create a text...
View Article