Click here to Skip to main content
15,868,016 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: GetWindowRect wrong dimensions Pin
lacir30-Mar-20 1:22
lacir30-Mar-20 1:22 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov30-Mar-20 1:42
Victor Nijegorodov30-Mar-20 1:42 
GeneralRe: GetWindowRect wrong dimensions Pin
deXo-fan10-Apr-20 3:51
deXo-fan10-Apr-20 3:51 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov10-Apr-20 7:01
Victor Nijegorodov10-Apr-20 7:01 
GeneralRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan30-Mar-20 2:31
mveRichard MacCutchan30-Mar-20 2:31 
Questionc++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 4:10
ccodebase19-Feb-20 4:10 
AnswerRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 4:40
mveRichard MacCutchan19-Feb-20 4:40 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 5:52
ccodebase19-Feb-20 5:52 
ok well, the issue is i need exact functionality in C++ with a class or function that performs as the vb.net code does, i do have this that i am hard coding all the Values into,

CSV Structure is

01,-0.12343,1.34532
02,-0.62343,1.74532
03,-0.22343,1.34532
04,-0.62343,1.74532

using namespace std; 

  

int main() 

{ 

    // initialize container 

    map<int, int> mp; 

  

    // insert elements 

    mp.insert({ -0.12343, 1.34532}); /// used as example

   mp.insert({ 0.22343, 1.74532}); 

   mp.insert({ -0.12343, 1.34532}); 

   mp.insert({ -0.12343, 1.34532}); 

  

    // when 11 is present 

    auto it = mp.upper_bound(11); 

    cout << "The upper bound of key 11 is "; 

    cout << (*it).first << " " << (*it).second << endl; 

  

    // when 13 is not present 

    it = mp.upper_bound(13); 

    cout << "The upper bound of key 13 is "; 

    cout << (*it).first << " " << (*it).second << endl; 

  

    // when 17 is exceeds the maximum key, so size 

        // of mp is returned as key and value as 0. 

    it = mp.upper_bound(17); 

    cout << "The upper bound of key 17 is "; 

    cout << (*it).first << " " << (*it).second; 

    return 0; 

} 

​

9:23

The upper bound of key 11 is 12 30
The upper bound of key 13 is 14 40
The upper bound of key 17 is 4 0

GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 6:21
mveRichard MacCutchan19-Feb-20 6:21 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:26
ccodebase19-Feb-20 7:26 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 21:57
mveRichard MacCutchan19-Feb-20 21:57 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 6:35
mveRichard MacCutchan19-Feb-20 6:35 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:25
ccodebase19-Feb-20 7:25 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 7:57
ccodebase19-Feb-20 7:57 
Questionupper bounds equivalent Pin
ccodebase19-Feb-20 3:54
ccodebase19-Feb-20 3:54 
QuestionHow to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 9:19
Erich Ruth1-Jan-20 9:19 
AnswerRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 13:27
professionalphil.o1-Jan-20 13:27 
GeneralRe: How to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 14:42
Erich Ruth1-Jan-20 14:42 
GeneralRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 14:56
professionalphil.o1-Jan-20 14:56 
AnswerRe: How to remove a non-ascii character from CString Pin
Eddy Vluggen1-Jan-20 13:30
professionalEddy Vluggen1-Jan-20 13:30 
GeneralRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 14:56
professionalphil.o1-Jan-20 14:56 
GeneralRe: How to remove a non-ascii character from CString Pin
Eddy Vluggen1-Jan-20 15:55
professionalEddy Vluggen1-Jan-20 15:55 
QuestionC++ control textBox of Form1 and Form2 Pin
HeeMongKorea29-Dec-19 20:07
professionalHeeMongKorea29-Dec-19 20:07 
AnswerRe: C++ control textBox of Form1 and Form2 Pin
Richard MacCutchan29-Dec-19 22:05
mveRichard MacCutchan29-Dec-19 22:05 
GeneralRe: C++ control textBox of Form1 and Form2 Pin
HeeMongKorea16-Jan-20 0:29
professionalHeeMongKorea16-Jan-20 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.