Need a bit help with std::map and / or multimaps and algorithm
Hello. Im stuck with some problem(s). Currently i have a std::map like this: Code: map<int, int> mymap; In my procedure i add some items to this. When i have no duplicates for keys, all seems to...
View ArticleCombo Box Height
May I know how to adjust the combo box height? I can adjust the combo box width and also the dropdown list height but not the combo box height. See attachment combobox.jpg/ Attached Images
View ArticleWow, it is extremely slow to load an application with windows debug symbols?
I dumped all symbols into C:\Windows\Symbols folder, It takes more than 2 minutes to load an application which really surprises me. Why and when should I use those symbols? Thanks Jack
View ArticleFile handling in c++ of files having .docx,pdf or .exe extension.
The question I have is that I want to create a file with any file format uptill .txt and wordpad this code is Ok, Butt when I try it for .docx or .pdf or .exe files the error occures in opening new...
View ArticleReceive/respond
Hello guys i have a problem in a c++ project. I have created a .dll file and hooked to an .exe I want this .dll to make a ping or to send a message like hello somewhere, and IF ping or message doesnt...
View ArticleDefine a comparator for std::map
Hi, ALL, First of all Happy New Year to everybody on the forum. Now to the problem. I am trying to define std::map<> container which will stay sorted on the value. Now depending on the key the...
View Articlegenerating dynamic Resource File in VC++
Hi Experts, I am a fresher in vc++. We want to generate dynamic resource file for VC++ where the data will come from database (Oracle). For an example, When a user log in the system, at that time if...
View ArticleA Question on template
What my purpose here is to use a template to append an item of type T to a node of a ptree (boost) Code: template<typename T> ptree& stick(ptree& tree, char *location, T const & t) {...
View ArticleIssues of getting indexes information from SQL Server
Trying to get table indexes information in SQL Server 2012 I identified a strange situation for one scenarion. I have a table that contains two indexes referenced to some fields: Field_1 and Field_3...
View ArticleVoIP Application
Can someone show how can i develop a VoIP dialer application using VC++ or C#? Is there any free application available? Liphone is developed in MingW and open source therefore, can't work on it
View ArticleFile size format
I want to display the file size somewhere, and I had succceded, but the values are slightly different from what Windows Explorer show ... I mean, I had a file, which windows explorer say that has 1,553...
View ArticleDynamic Array Length ?
Hello, How can i change or add a cell to an array without knowing its length ? (I mean that I shouldn't know the length I need to make the length dynamic so i can add a cell)we just learned Dynamic...
View Articlefopen
Hello, Thank you very much for taking time from your busy schedule to help me out. I'm using the following code: Code: FILE* file; file = fopen("logg.txt", "rb"); int DemonicRainbowUnicorn =...
View ArticleCombo Box selection.
ok, I made my window, made a drop box, but how do I know what item was selected? with buttons it's easy, since there is only one parameter, but drop down menu's have multiple so I tried making an...
View Articleuafxcwd.lib/nafxcwd.lib missing(error:1104)
I have installed visual studio 2012 xpress for desktop application. To use mfc framework also installed wdk 7.1 and include files and libraries. after that i executed the code: "...
View Article[RESOLVED] Define a comparator for std::map
Hi, ALL, First of all Happy New Year to everybody on the forum. Now to the problem. I am trying to define std::map<> container which will stay sorted on the value. Now depending on the key the...
View ArticleAbout Spin Control ..
Hi , Spin Control with float variable needs SpinControl->SetPos Function after SpinControl->SetRange. But spin control with int variable , does not need SetPos .. Why such difference ? Also pl...
View ArticleProblem with Polygon in Stroustrup's PPP book
Hi guys, I read Programming Principles and Practice using C++, Stroustrup's book. In chapter 12 and in page 441 (first example) there is this code: Code: // This is example code from Chapter 12.3 "A...
View Articleget data from input stream c++
Code: #include <fstream> #include <string> using namespace std; ifstream inf("file name"); string line; while (inf.good()) { getline(inf, line); } instead of line by...
View ArticleAbout tool-tip ..
My problem is ToolTips are not shown if any of the tool-bar menu items is disabled/inactive. They are shown when all tool bar menus are active/enabled. I am using TTS_ALWAYSTIP while creating Tool-Bar....
View Article