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

Managed C++/CLI

 
GeneralRe: interface and main in vc++2005...help please Pin
lavy288316-May-07 5:58
lavy288316-May-07 5:58 
Questionwhat is the difference in this? Pin
syedhasan15-May-07 18:32
syedhasan15-May-07 18:32 
QuestionTIMESTAMP_STRUCT from MFC to forms Pin
earlgraham15-May-07 10:02
earlgraham15-May-07 10:02 
AnswerRe: TIMESTAMP_STRUCT from MFC to forms Pin
Mark Salsbery15-May-07 13:44
Mark Salsbery15-May-07 13:44 
GeneralRe: TIMESTAMP_STRUCT from MFC to forms Pin
earlgraham16-May-07 5:31
earlgraham16-May-07 5:31 
Questionpointers and structures Pin
klutez12315-May-07 2:49
klutez12315-May-07 2:49 
AnswerRe: pointers and structures Pin
led mike15-May-07 6:15
led mike15-May-07 6:15 
Questionoutput to console in Vc++2005 Pin
lavy288315-May-07 1:55
lavy288315-May-07 1:55 
Hello... I have a function which takes my data from "Contload.xml"...and put it in the variable "Wc", how can I use this variable in the main program ...so that it be able to see it in the console.....

void readfromfile(String^ strFName,int Wc)
{
strFName = gcnew String("e:\\Contload.xml");
DataSet^ dataset = gcnew DataSet();
dataset->ReadXml(strFName);
DataRowCollection^ rows;
int Wc,Hc, Dc,idi,ix;
int id[100];
int w[100];

rows = dataset->Tables[0]->Rows;
for each (DataRow^ row in rows)
{
Wc = Convert::ToInt32(row["ContainerWidth"], System::Globalization::CultureInfo::CurrentCulture);
}
how can I cal this "Wc" in the main ...?

int main(int argc, char *argv[])
{
String^ filename = gcnew String("e:\\Contload.xml");
readfromfile(filename);
Console::WriteLine("Width: {0}",Wc);b>

lavy

AnswerRe: output to console in Vc++2005 Pin
Mark Salsbery15-May-07 5:55
Mark Salsbery15-May-07 5:55 
AnswerRe: output to console in Vc++2005 Pin
StevenS_Dev21-May-07 4:10
StevenS_Dev21-May-07 4:10 
GeneralRe: output to console in Vc++2005 Pin
lavy288321-May-07 4:12
lavy288321-May-07 4:12 
Questionmissing ; before * Pin
subramanyeswari14-May-07 22:48
subramanyeswari14-May-07 22:48 
AnswerRe: missing ; before * Pin
Mark Salsbery15-May-07 5:51
Mark Salsbery15-May-07 5:51 
Question__loctotime_t problem Pin
bouli14-May-07 21:12
bouli14-May-07 21:12 
QuestionThe good, the bad and the ugly (or C#, COM and C++/CLI) Pin
originSH14-May-07 5:11
originSH14-May-07 5:11 
Questionerror in readxml with database Pin
lavy288314-May-07 5:10
lavy288314-May-07 5:10 
AnswerRe: error in readxml with database Pin
originSH14-May-07 5:53
originSH14-May-07 5:53 
Questionreadxml with dataset Pin
lavy288314-May-07 4:18
lavy288314-May-07 4:18 
AnswerRe: readxml with dataset Pin
Hamid_RT22-May-07 2:04
Hamid_RT22-May-07 2:04 
GeneralRe: readxml with dataset Pin
lavy288322-May-07 5:30
lavy288322-May-07 5:30 
GeneralRe: readxml with dataset Pin
lavy288322-May-07 5:31
lavy288322-May-07 5:31 
GeneralRe: readxml with dataset Pin
Hamid_RT22-May-07 7:40
Hamid_RT22-May-07 7:40 
AnswerRe: AfxMessageBox and Strings!!! Pin
led mike14-May-07 4:51
led mike14-May-07 4:51 
QuestionHow to pass a function as an argument to other function Pin
subramanyeswari14-May-07 3:12
subramanyeswari14-May-07 3:12 
AnswerRe: How to pass a function as an argument to other function Pin
led mike14-May-07 4:53
led mike14-May-07 4:53 

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.