Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to connect the database through internet? Pin
basementman13-Jun-03 4:54
basementman13-Jun-03 4:54 
GeneralProcess Handle and MainWindow Pin
Arnaud Brejeon12-Jun-03 15:34
Arnaud Brejeon12-Jun-03 15:34 
GeneralRe: Process Handle and MainWindow Pin
valikac12-Jun-03 19:32
valikac12-Jun-03 19:32 
GeneralMpeg 4 player Pin
weituck12-Jun-03 14:58
weituck12-Jun-03 14:58 
GeneralRe: Mpeg 4 player Pin
John M. Drescher12-Jun-03 16:39
John M. Drescher12-Jun-03 16:39 
GeneralRe: Mpeg 4 player Pin
Churn Wuang12-Jun-03 23:37
Churn Wuang12-Jun-03 23:37 
QuestionHow to obtain column number in a file Pin
Saqib Razzaq12-Jun-03 14:15
Saqib Razzaq12-Jun-03 14:15 
AnswerRe: How to obtain column number in a file Pin
Rage12-Jun-03 21:19
professionalRage12-Jun-03 21:19 
A quite complicated solution :

Use GetSel to retrieve the caracter number.
Make a loop on LineFromChar with parameter the character number, which you decrement until LineFromChar changes.
Then, the first number minus the final one should give you the pos.

long int i,j;
m_RichEditCtrl.GetSel(&i,&j);
i=(i<j?i:j);  //our start point (this gets the current char index)

long int counter=m_RichEditCtrl.LineFromChar(-1); // gets the line
while(m_RichEditCtrl.LineFromChar(i)==counter)    // reverse parse until line changes
  i--;

long int pos=counter-i;  // that's your pos.


~RaGE();
GeneralA spell checker for C programs Pin
Jacob Navia12-Jun-03 11:03
Jacob Navia12-Jun-03 11:03 
GeneralRe: A spell checker for C programs Pin
Ryan Binns12-Jun-03 14:35
Ryan Binns12-Jun-03 14:35 
GeneralRe: A spell checker for C programs Pin
John M. Drescher13-Jun-03 1:09
John M. Drescher13-Jun-03 1:09 
GeneralRe: A spell checker for C programs Pin
Jacob Navia13-Jun-03 4:32
Jacob Navia13-Jun-03 4:32 
GeneralC Compiler Pin
Gary Kirkham12-Jun-03 10:56
Gary Kirkham12-Jun-03 10:56 
GeneralRe: C Compiler Pin
Jacob Navia12-Jun-03 11:11
Jacob Navia12-Jun-03 11:11 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 11:14
Gary Kirkham12-Jun-03 11:14 
GeneralClickety police ! Pin
Trollslayer13-Jun-03 1:40
mentorTrollslayer13-Jun-03 1:40 
GeneralRe: C Compiler Pin
Gary Kirkham13-Jun-03 4:09
Gary Kirkham13-Jun-03 4:09 
GeneralRe: C Compiler Pin
basementman12-Jun-03 11:15
basementman12-Jun-03 11:15 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 11:22
Gary Kirkham12-Jun-03 11:22 
GeneralRe: C Compiler Pin
Neville Franks12-Jun-03 11:58
Neville Franks12-Jun-03 11:58 
GeneralRe: C Compiler Pin
Gary Kirkham12-Jun-03 14:10
Gary Kirkham12-Jun-03 14:10 
GeneralRe: C Compiler Pin
Neville Franks13-Jun-03 1:36
Neville Franks13-Jun-03 1:36 
Questionwriting a datbase management system in C++? Pin
GabyGirl12-Jun-03 9:47
GabyGirl12-Jun-03 9:47 
AnswerRe: writing a datbase management system in C++? Pin
jhaga12-Jun-03 10:00
professionaljhaga12-Jun-03 10:00 
AnswerRe: writing a datbase management system in C++? Pin
crewchill12-Jun-03 12:47
crewchill12-Jun-03 12:47 

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.