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

Managed C++/CLI

 
QuestionConvert From C# VS2010 - get_Item & set_Value in C++/CLI Pin
Paramu19731-Apr-18 18:14
Paramu19731-Apr-18 18:14 
QuestionHow to programmatically add columns to wpf datagrid with MVVM? Pin
Member 135455647-Feb-18 22:09
Member 135455647-Feb-18 22:09 
SuggestionRe: How to programmatically add columns to wpf datagrid with MVVM? Pin
Maciej Los7-Feb-18 22:29
mveMaciej Los7-Feb-18 22:29 
QuestionDetecting option '-Gr' in MSVC Pin
Gisle Vanem26-Jan-18 12:53
Gisle Vanem26-Jan-18 12:53 
AnswerRe: Detecting option '-Gr' in MSVC Pin
Randor 11-Feb-18 16:50
professional Randor 11-Feb-18 16:50 
GeneralRe: Detecting option '-Gr' in MSVC Pin
Gisle Vanem11-Feb-18 21:46
Gisle Vanem11-Feb-18 21:46 
GeneralRe: Detecting option '-Gr' in MSVC Pin
Randor 12-Feb-18 11:19
professional Randor 12-Feb-18 11:19 
QuestionIMPLEMENTING AND EXERCISING A FRACTION CLASS Pin
Member 1362061912-Jan-18 12:42
Member 1362061912-Jan-18 12:42 
AnswerRe: IMPLEMENTING AND EXERCISING A FRACTION CLASS Pin
Richard MacCutchan12-Jan-18 22:18
mveRichard MacCutchan12-Jan-18 22:18 
QuestionReal-Time push server in C++ may i use it as unmanaged dlls so i can work on it using C# ? Pin
Ali Al-Masry4-Jan-18 2:02
Ali Al-Masry4-Jan-18 2:02 
AnswerRe: Real-Time push server in C++ may i use it as unmanaged dlls so i can work on it using C# ? Pin
John Schroedl5-Jan-18 14:27
professionalJohn Schroedl5-Jan-18 14:27 
QuestionC++/CLI and .Net Entity Framework Pin
SheepSpeech4-Dec-17 0:20
SheepSpeech4-Dec-17 0:20 
QuestionMessage Closed Pin
27-Nov-17 21:16
Member 1354502927-Nov-17 21:16 
AnswerRe: project $50 reward need in 24 hours Pin
Pete O'Hanlon27-Nov-17 21:18
mvePete O'Hanlon27-Nov-17 21:18 
QuestionISSUE - TCP/IP sockets in MFC VS2017 Pin
D.Manivelan21-Nov-17 1:22
D.Manivelan21-Nov-17 1:22 
Hi,
I have a server client application using TCP/IP sockets in MFC VS2017. Originally i have written the code in VS2008. Kindly see the below code which sends the data to client. But this same code gives me some problem in MFC VS2017.
In the below code when I assign the value 190.000015f to a local variable, its taking the value whereas when I assign it to the union member variable
C++
UNI.S.fTestValue1
and
C++
UNI.S.fTestValue2
, it showing some junk value. Please help me to fix the problem
C++
unsigned char* CSendValue :: SendLiveValues()
{
union USendLive
	{
		struct SSend
		{
			float fTestValue1;
			float fTestValue2;	
			char cChr;			
		}S;						
		unsigned char Buffer[LIVEUNISIZE];
	}UNI;

	memset(UNI.Buffer,0,LIVEUNISIZE);
	
	float fLocalValue;
	float fTest;

	fTest 		        = 190.000015f;

	fLocalValue	        = fTest;   		//190.000015    // Correct value
	UNI.S.cChr 	        = 'c';			//'Ô'           // Junk value - Wrong
	UNI.S.fTestValue1 	= fTest;		//6.360e-39#DEN // Junk value - Wrong
	UNI.S.fTestValue2 	= 190.000015f;		//1.401e-45#DEN // Junk value - Wrong

        return UNI.Buffer;    
}

AnswerRe: ISSUE - TCP/IP sockets in MFC VS2017 Pin
Jochen Arndt21-Nov-17 1:59
professionalJochen Arndt21-Nov-17 1:59 
AnswerRe: ISSUE - TCP/IP sockets in MFC VS2017 Pin
jschell22-Nov-17 9:05
jschell22-Nov-17 9:05 
QuestionTo sort an array of integer's with recursive functions ? Pin
Tarun Jha18-Nov-17 3:46
Tarun Jha18-Nov-17 3:46 
GeneralRe: To sort an array of integer's with recursive functions ? Pin
PIEBALDconsult18-Nov-17 3:56
mvePIEBALDconsult18-Nov-17 3:56 
SuggestionTo find hcf of n number by using only loops. Pin
Tarun Jha4-Nov-17 2:20
Tarun Jha4-Nov-17 2:20 
GeneralRe: To find hcf of n number by using only loops. Pin
Richard MacCutchan4-Nov-17 21:10
mveRichard MacCutchan4-Nov-17 21:10 
GeneralRe: To find hcf of n number by using only loops. Pin
Tarun Jha7-Nov-17 6:20
Tarun Jha7-Nov-17 6:20 
GeneralRe: To find hcf of n number by using only loops. Pin
Richard MacCutchan7-Nov-17 7:00
mveRichard MacCutchan7-Nov-17 7:00 
QuestionIs every C# feature available in C++/Managed ? Pin
Maximilien11-Oct-17 7:26
Maximilien11-Oct-17 7:26 
AnswerRe: Is every C# feature available in C++/Managed ? Pin
Richard MacCutchan11-Oct-17 9:50
mveRichard MacCutchan11-Oct-17 9:50 

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.