Click here to Skip to main content
14,700,235 members
Home » Discussions » Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: GetWindowRect wrong dimensions Pin
lacir30-Mar-20 2:22
Memberlacir30-Mar-20 2:22 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov30-Mar-20 2:42
MemberVictor Nijegorodov30-Mar-20 2:42 
GeneralRe: GetWindowRect wrong dimensions Pin
deXo-fan10-Apr-20 4:51
MemberdeXo-fan10-Apr-20 4:51 
GeneralRe: GetWindowRect wrong dimensions Pin
Victor Nijegorodov10-Apr-20 8:01
MemberVictor Nijegorodov10-Apr-20 8:01 
GeneralRe: GetWindowRect wrong dimensions Pin
Richard MacCutchan30-Mar-20 3:31
mveRichard MacCutchan30-Mar-20 3:31 
Questionc++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 5:10
Memberccodebase19-Feb-20 5:10 
AnswerRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 5:40
mveRichard MacCutchan19-Feb-20 5:40 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 6:52
Memberccodebase19-Feb-20 6: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 7:21
mveRichard MacCutchan19-Feb-20 7:21 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 8:26
Memberccodebase19-Feb-20 8:26 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 22:57
mveRichard MacCutchan19-Feb-20 22:57 
GeneralRe: c++ GetUpperBound equivalent Pin
Richard MacCutchan19-Feb-20 7:35
mveRichard MacCutchan19-Feb-20 7:35 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 8:25
Memberccodebase19-Feb-20 8:25 
GeneralRe: c++ GetUpperBound equivalent Pin
ccodebase19-Feb-20 8:57
Memberccodebase19-Feb-20 8:57 
Questionupper bounds equivalent Pin
ccodebase19-Feb-20 4:54
Memberccodebase19-Feb-20 4:54 
QuestionHow to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 10:19
MemberErich Ruth1-Jan-20 10:19 
AnswerRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 14:27
mvephil.o1-Jan-20 14:27 
GeneralRe: How to remove a non-ascii character from CString Pin
Erich Ruth1-Jan-20 15:42
MemberErich Ruth1-Jan-20 15:42 
GeneralRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 15:56
mvephil.o1-Jan-20 15:56 
AnswerRe: How to remove a non-ascii character from CString Pin
Eddy Vluggen1-Jan-20 14:30
professionalEddy Vluggen1-Jan-20 14:30 
GeneralRe: How to remove a non-ascii character from CString Pin
phil.o1-Jan-20 15:56
mvephil.o1-Jan-20 15:56 
GeneralRe: How to remove a non-ascii character from CString Pin
Eddy Vluggen1-Jan-20 16:55
professionalEddy Vluggen1-Jan-20 16:55 
QuestionC++ control textBox of Form1 and Form2 Pin
HeeMongKorea29-Dec-19 21:07
professionalHeeMongKorea29-Dec-19 21:07 
AnswerRe: C++ control textBox of Form1 and Form2 Pin
Richard MacCutchan29-Dec-19 23:05
mveRichard MacCutchan29-Dec-19 23:05 
GeneralRe: C++ control textBox of Form1 and Form2 Pin
HeeMongKorea16-Jan-20 1:29
professionalHeeMongKorea16-Jan-20 1: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.