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

Managed C++/CLI

 
GeneralCall proc inside namespace from outside the namespace Pin
Member 62566624-May-04 8:41
Member 62566624-May-04 8:41 
GeneralRe: Call proc inside namespace from outside the namespace Pin
kmcguire30-May-04 17:28
kmcguire30-May-04 17:28 
GeneralTaking input while in some form of waiting/sleeping -- plz help Pin
Makutu21-May-04 20:32
Makutu21-May-04 20:32 
GeneralRe: Taking input while in some form of waiting/sleeping -- plz help Pin
Curi0us_George27-May-04 19:19
Curi0us_George27-May-04 19:19 
GeneralRe: Taking input while in some form of waiting/sleeping -- plz help Pin
Makutu2-Jun-04 15:20
Makutu2-Jun-04 15:20 
GeneralRe: Taking input while in some form of waiting/sleeping -- plz help Pin
Curi0us_George3-Jun-04 2:03
Curi0us_George3-Jun-04 2:03 
Generalneed help !! Pin
ormax321-May-04 9:09
sussormax321-May-04 9:09 
GeneralRe: need help !! Pin
kmcguire3-Jun-04 11:41
kmcguire3-Jun-04 11:41 
<br />
#include <iostream><br />
using namespace std;<br />
// cout << [wide range of types] << [wide range of types] << endl;<br />
char a = 'a';<br />
int b = 38273;<br />
double c = 9382;<br />
char * d = "hello";<br />
cout << a << " " << b << " " << c << d << endl;<br />

---------------------------------------------------------------------------
<br />
#include "stdafx.h"<br />
#include <windows.h><br />
#include <iostream><br />
using namespace std;<br />
int main(int argc, _TCHAR* argv[])<br />
{<br />
	char * OurBuffer = new char[2048];<br />
	FILE * FileHandle;<br />
    /////////////////////////////////////////////////////////////<br />
	cout << "Reading from C:\\BOOT.INI, using a "  <br />
		 << ( sizeof(char) * 2048 ) <br />
		 << " byte buffer." <br />
		 << endl;<br />
	/////////////////////////////////////////////////////////////<br />
	cout << "Now displaying the file as it is read line by line." <br />
		 << endl;<br />
    /////////////////////////////////////////////////////////////<br />
	///// EXAMPLE:   FileHandle = fopen( "C:\\mydir\\myfile.txt", "r" )<br />
	FileHandle = fopen( "c:\\boot.ini", "r" );<br />
	while( OurBuffer[0] != 0 )<br />
	{<br />
		/////////////////////////////////////////////////////////////<br />
		OurBuffer[0] = 0;<br />
		fgets( OurBuffer, 2048 * sizeof(char), FileHandle );<br />
		cout << OurBuffer;<br />
		/////////////////////////////////////////////////////////////<br />
	}<br />
	/////////////////////////////////////////////////////////////<br />
	return 0;<br />
}<br />

---------------------------------------------------------------------------
<br />
Get a string from a stream.<br />
<br />
char *fgets( <br />
   char *string,<br />
   int n,<br />
   FILE *stream <br />
);<br />
wchar_t *fgetws( <br />
   wchar_t *string,<br />
   int n,<br />
   FILE *stream <br />
);<br />
Parameters<br />
string <br />
Storage location for data. <br />
n <br />
Maximum number of characters to read. <br />
stream <br />
Pointer to FILE structure. <br />
Return Value<br />
Each of these functions returns string. NULL is returned to indicate an error or an end-of-file condition. Use feof or ferror to determine whether an error occurred.<br />

---------------------------------------------------------------------------
<br />
Open a file.<br />
<br />
FILE *fopen( <br />
   const char *filename,<br />
   const char *mode <br />
);<br />
FILE *_wfopen( <br />
   const wchar_t *filename,<br />
   const wchar_t *mode <br />
);<br />
Parameters<br />
filename <br />
Filename. <br />
mode <br />
Type of access permitted. <br />
Return Value<br />
Each of these functions returns a pointer to the open file. A null pointer value indicates an error. <br />
----------------------------------------------------------------------------------------<br />

Generalborland c++builder vs C++(general) Pin
Andy Gunn20-May-04 22:28
Andy Gunn20-May-04 22:28 
GeneralFormatted Printing from RichTextBox class Pin
Tank_Aviator20-May-04 7:13
Tank_Aviator20-May-04 7:13 
Generalamazon upload need help... Pin
Sumit Kapoor19-May-04 19:57
Sumit Kapoor19-May-04 19:57 
QuestionHow to detect keyboard Pin
Ajay_Saraf19-May-04 19:12
Ajay_Saraf19-May-04 19:12 
GeneralC++ Compilers Pin
DarkExploi^19-May-04 12:35
sussDarkExploi^19-May-04 12:35 
GeneralRe: C++ Compilers Pin
ian mariano20-May-04 9:43
ian mariano20-May-04 9:43 
GeneralRe: C++ Compilers Pin
Member 62566624-May-04 9:48
Member 62566624-May-04 9:48 
Generali need to get the chat text of msm messanger Pin
Member 96792618-May-04 9:02
Member 96792618-May-04 9:02 
QuestionHow to get an Array allocated in Unmanamed code Pin
hasansheik18-May-04 3:43
hasansheik18-May-04 3:43 
AnswerRe: How to get an Array allocated in Unmanamed code Pin
Member 93002221-May-04 18:58
Member 93002221-May-04 18:58 
GeneralRe: How to get an Array allocated in Unmanamed code Pin
hasansheik21-May-04 20:06
hasansheik21-May-04 20:06 
GeneralRe: How to get an Array allocated in Unmanamed code Pin
Member 93002222-May-04 7:33
Member 93002222-May-04 7:33 
GeneralJava Bean Pin
selvi_saru18-May-04 1:43
selvi_saru18-May-04 1:43 
GeneralRe: Java Bean Pin
Curi0us_George27-May-04 19:29
Curi0us_George27-May-04 19:29 
QuestionErrors? Pin
Gra3y17-May-04 23:31
Gra3y17-May-04 23:31 
GeneralManaged C++ and VCF Pin
Jim Crafton17-May-04 8:38
Jim Crafton17-May-04 8:38 
GeneralRe: Managed C++ and VCF Pin
Isaac_Roh17-May-04 15:22
Isaac_Roh17-May-04 15:22 

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.