Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can't resolve server Pin
RobJones19-Feb-04 9:45
RobJones19-Feb-04 9:45 
Generalconversation through voice modem Pin
30jenny19-Feb-04 8:27
30jenny19-Feb-04 8:27 
GeneralComboBox Item Selection Problem Pin
Member 12474819-Feb-04 8:01
Member 12474819-Feb-04 8:01 
GeneralRe: ComboBox Item Selection Problem Pin
l a u r e n19-Feb-04 8:25
l a u r e n19-Feb-04 8:25 
GeneralUse ::SQLConnect() method Pin
tqdo19-Feb-04 7:55
tqdo19-Feb-04 7:55 
GeneralRe: Use ::SQLConnect() method Pin
l a u r e n19-Feb-04 8:26
l a u r e n19-Feb-04 8:26 
GeneralProblem converting solution from VS 2002 Pin
Miguel Lopes19-Feb-04 7:36
Miguel Lopes19-Feb-04 7:36 
GeneralProblem in creating digital sphere (integers behavior) Pin
Anonymous19-Feb-04 7:07
Anonymous19-Feb-04 7:07 
Hi. I have write a simple c++ code that generates a digital sphere, which i will use next as a domain in a simulation algorithm. I create a text file that represents the sphere. To do this i'm writing in the text file z-layers cuts of the sphere. In the file suppose that 1 represents the solid sphere and 0 the outer.The code:

#include <stdio.h>
#include <iostream>
#include <math.h>

using namespace std;

int main(){
FILE *domainFile;

if((domainFile=fopen("sphere.txt","w"))==NULL){
cout<<"Cannot open file "<<endl;
system("pause");
="" exit(0);
="" }

="" int="" xmax="50;
" x0="xmax/2.0;"
="" ymax="50;
" y0="ymax/2.0;
" zmax="50;
" z0="zmax/2.0;
" radius="6;

" if(radius="">xmax || radius>ymax || radius>zmax){
cout<<"Error: define smaller radius"<
GeneralBuild 2003 version source code using version 2002 Pin
Marcos Rodriguez19-Feb-04 7:06
Marcos Rodriguez19-Feb-04 7:06 
GeneralRe: Build 2003 version source code using version 2002 Pin
telstar19-Feb-04 11:00
telstar19-Feb-04 11:00 
GeneralRe: Build 2003 version source code using version 2002 Pin
Marcos Rodriguez19-Feb-04 23:48
Marcos Rodriguez19-Feb-04 23:48 
GeneralRe: Build 2003 version source code using version 2002 Pin
telstar20-Feb-04 2:57
telstar20-Feb-04 2:57 
Questionhow to have different color in the same text line in MFC CStatic Control Pin
Cuu19-Feb-04 6:55
Cuu19-Feb-04 6:55 
AnswerRe: how to have different color in the same text line in MFC CStatic Control Pin
basementman19-Feb-04 7:59
basementman19-Feb-04 7:59 
GeneralRe: how to have different color in the same text line in MFC CStatic Control Pin
Cuu19-Feb-04 8:14
Cuu19-Feb-04 8:14 
GeneralRe: how to have different color in the same text line in MFC CStatic Control Pin
l a u r e n19-Feb-04 8:28
l a u r e n19-Feb-04 8:28 
GeneralRe: how to have different color in the same text line in MFC CStatic Control Pin
Anonymous19-Feb-04 14:12
Anonymous19-Feb-04 14:12 
GeneralDIALOG PROBLEM Pin
Caoimh19-Feb-04 5:25
Caoimh19-Feb-04 5:25 
GeneralRe: DIALOG PROBLEM Pin
Prakash Nadar19-Feb-04 5:35
Prakash Nadar19-Feb-04 5:35 
GeneralRe: DIALOG PROBLEM Pin
Caoimh19-Feb-04 23:42
Caoimh19-Feb-04 23:42 
GeneralRe: DIALOG PROBLEM Pin
Prakash Nadar20-Feb-04 4:15
Prakash Nadar20-Feb-04 4:15 
GeneralRe: DIALOG PROBLEM Pin
David Crow19-Feb-04 5:35
David Crow19-Feb-04 5:35 
GeneralRe: DIALOG PROBLEM Pin
Caoimh22-Feb-04 22:55
Caoimh22-Feb-04 22:55 
GeneralASCII TO HEX Pin
Caoimh19-Feb-04 5:18
Caoimh19-Feb-04 5:18 
GeneralRe: ASCII TO HEX Pin
David Crow19-Feb-04 5:38
David Crow19-Feb-04 5:38 

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.